korgalore bug: Feed state not found for lch@ list
Hey,
pipx korgalore on Ubuntu 25.10:
package korgalore 0.5.1, installed using Python 3.13.7
I see JMAP korgalore errors on kgl pull:
File
"/home/krzk/.local/share/pipx/venvs/korgalore/lib/python3.13/site-packages/korgalore/pi_feed.py", line 227, in find_epochs
raise PublicInboxError(f"No existing epochs found in {epochs_dir}.")
korgalore.PublicInboxError: No existing epochs found in /home/krzk/.local/share/korgalore/lch/git.
Full trace:
https://pastebin.com/aUAz1jjf
Config file:
-------------------------
[targets.personal]
type = 'jmap'
server = 'https://api.fastmail.com'
username = 'me....'token_file = '~/.config/korgalore/fastmail-token.txt'
### Deliveries ###
[deliveries.ksummit]
feed = 'https://lore.kernel.org/ksummit'
target = 'personal'
labels = ['LKML/ksummit']
[deliveries.lch]
feed = 'https://lore.kernel.org/lch'
target = 'personal'
labels = ['LKML/lch']
[deliveries.linux-samsung-soc]
feed = 'https://lore.kernel.org/linux-samsung-soc' target = 'personal'
labels = ['LKML/linux-samsung-soc']
[deliveries.tools]
feed = 'https://lore.kernel.org/tools'
target = 'personal'
labels = ['LKML/tools']
[deliveries.workflows]
feed = 'https://lore.kernel.org/workflows'
target = 'personal'
labels = ['LKML/workflows']
-------------------------
If lch entry is commented out, everything works fine and it pulls 4 deliveries. It fails only if there is lch, which is different server:
https://subspace.kernel.org/lists.linux.dev.html
Best regards,
Krzysztof
Quoted 6 lines · Krzysztof Kozlowski
File
"/home/krzk/.local/share/pipx/venvs/korgalore/lib/python3.13/site-packages/korgalore/pi_feed.py", line 227, infind_epochs
raisePublicInboxError(f"No existing epochs found in {epochs_dir}.")
korgalore.PublicInboxError: No existing epochs found in/home/krzk/.local/share/korgalore/lch/git.
I *think* this is from the code that wrongly assumes this is a migration from the previous data structure during korgalore-0.1 days and then falls on its face.
I added a fix in master and stable-0.5.y -- would you be able to clone that and try?
git clone https://git.kernel.org/pub/scm/utils/korgalore/korgalore.git
cd korgalore
git checkout stable-0.5.y (or use master)
pipx install --force .
-K
Quoted 12 lines · Konstantin Ryabitsev
Quoted 6 lines · Krzysztof Kozlowski
File
"/home/krzk/.local/share/pipx/venvs/korgalore/lib/python3.13/site-packages/korgalore/pi_feed.py", line 227, infind_epochs
raisePublicInboxError(f"No existing epochs found in {epochs_dir}.")
korgalore.PublicInboxError: No existing epochs found in/home/krzk/.local/share/korgalore/lch/git.I *think* this is from the code that wrongly assumes this is a migration from the previous data structure during korgalore-0.1 days and then falls on its face.
Quoted 7 lines
I added a fix in master and stable-0.5.y -- would you be able to clone that and try?
git clone https://git.kernel.org/pub/scm/utils/korgalore/korgalore.git
cd korgalore
git checkout stable-0.5.y (or use master)
pipx install --force .
Unfortunately not much better:
pipx uninstall korgalore
pipx install .
installed package korgalore 0.6.dev0, installed using Python 3.13.7
kgl pull
korgalore.StateError: Feed state not found:/home/krzk/.local/share/korgalore/lch/korgalore.feed
File
"/home/krzk/.local/share/pipx/venvs/korgalore/lib/python3.13/site-packages/korgalore/lore_feed.py", line 77, in clone_epoch
raise RemoteError(f"Git clone failed: {output.decode()}")
korgalore.RemoteError: Git clone failed:
Full log:
https://pastebin.com/pPNmhjBt
Same with stable branch:
installed package korgalore 0.5.2.dev0, installed using Python 3.13.7
I just added lch entry to edit config and removed any leftovers (rm -fr /home/krzk/.local/share/korgalore/lch/).
Best regards,
Krzysztof
Quoted 4 lines · Krzysztof Kozlowski
"
/home/krzk/.local/share/pipx/venvs/korgalore/lib/python3.13/site-packages/korgalore/lore_feed.py", line 77, inclone_epoch
raiseRemoteError(f"Git clone failed: {output.decode()}")
korgalore.RemoteError: Git clone failed:
Ah, so in this particular case I wasn't testing with the actual --shallow parameter, which is why I couldn't reproduce the failure. The problem here is that the lch list doesn't have any messages since November 2025, so when we try to clone it with --shallow-since=1.week.ago, we get a clone failure.
There is a workaround for this situation in both master and stable-0.5.y, and I can confirm that setting up the lch list works without a crash now.
If you can confirm, I will tag 0.5.2 for the release.
-K
Quoted 11 lines · Konstantin Ryabitsev
Quoted 4 lines · Krzysztof Kozlowski
"
/home/krzk/.local/share/pipx/venvs/korgalore/lib/python3.13/site-packages/korgalore/lore_feed.py", line 77, inclone_epoch
raiseRemoteError(f"Git clone failed: {output.decode()}")
korgalore.RemoteError: Git clone failed:Ah, so in this particular case I wasn't testing with the actual --shallow parameter, which is why I couldn't reproduce the failure. The problem here is that the lch list doesn't have any messages since November 2025, so when we try to clone it with --shallow-since=1.week.ago, we get a clone failure.
Quoted 4 lines
There is a workaround for this situation in both master and stable-0.5.y, and I can confirm that setting up the lch list works without a crash now.
If you can confirm, I will tag 0.5.2 for the release.
I tried master branch and works, thanks!
Best regards,
Krzysztof