-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aptly 1.4.0+ds1-6ubuntu0.1 breaks mirror handling: Error decoding remote repo: EOF #1399
Comments
since this is not an aptly upstream build, I think it is best to report this to ubuntu. maybe some build dependency does not match ? |
Thanks for the blazing fast response! I was afraid you said that, and it makes sense, but I figured bringing it up here as well, as users might pop by. I will look into reporting it to Ubuntu, and will report back, if/what I can learn. If anyone else has ideas and thoughts, do let me know. P.S.: @neolynx While I have your attention: Any hints towards how I might be able to remove those "empty" mirror entries, which seem to cause the |
aptly 1.4.0 is already quite old. one way might be to use the latest 1.6.0 CI build of aptly, which has a lot of issues fixed. Otherwise go back to the working version from ubuntu. With a known good version, you can try running It would be a good idea to backup the .aptly/db directory, in case things go wrong. if you have such a backup already, you might be able to compare the 2 dbs. hope this helps ! |
Thanks for the hints, we will look into them (already thought about some, actually). I appreciate you taking the time, thank you! |
Im hitting the same issue on 22.04 with 1.6.0 CI build. Im going to double check I used the right packages but it still seems to be present in the latest release and its an issue that came out of nowhere since it was working fine before a few days ago even with outdated aptly packages.
Can confirm that does work. I still have the old copy of the aptly dir, so ill put it back and try the db cleanup. [edit] db cleanup/recover commands didnt help, it still produces the same EOF error. |
@ju2wheels I am glad it is reproducible across releases, which means, it is most certainly an Ubuntu issue. Do you have means to file a bug report with them? I currently lack both the time and an account to do so. |
Its reproducible once it happens and you have a corrupted leveldb, but I really dont think it originated with the aptly side (aside from the fact that it maybe could have been caused by an unhandled exception). I have a few thousand devices running aptly in Docker on container start running on 18.04, 20.04, and 22.04 base with the default aptly version for each upstream distro. I have aptly on RPi 4 18.04 that hasnt yet corrupted its leveldb and its still perfectly able to mirror packages from the upstream Ubuntu 18.04 mirror but I did have this device off for most of last week. Only 10 of my devices started hitting this EOF issue all starting on Nov 25. My current theory is something happened to upstream repos last week and caused an unhandled exception in aptly which led to the corrupted leveldb but I dont know anything about this code base to be able to confirm that. But it looks like from your comment that you were mirroring Debian. Im still looking through my logs to see if i can identify the first occurrence on one of my 10 devices and see if it raised a more useful exception before the leveldb EOF errors started showing up. Just to add that in my case im getting two EOF errors: Error decoding mirror: EOF and Error decoding remote repo: EOF I do have a Launchpad account so I can open a ticket later if you guys want. |
is this happening on arm4 devices only ? or also on amd64 ? |
The 10 devices im currently hitting the issue on are all amd64 and mirroring only amd64. |
ok, it is not architecture specific then. I think there is little aptly can do, I hope ubuntu can fix the build. shall we close this issue ? |
Ive already started deploying 1.6.0 to my devices to try to figure out if this is an issue there or not. I was also able to to find up to 174 devices showing similar logs of leveldb errors of the form
except for these it seems aptly is able to recover unlike with the EOF errors. So IMO, given that my devices are in people's homes with varying level of network connectivity stability, it does kind of point back to the fact that upstream (here whether it be network level or repo level) issues are contributing to some of these corruption issues in aptly. I havent yet had a chance to start interrupting the network on my Docker containers and forcibly restarting/interrupting aptly mirroring to see if I can reproduce any of these EOF or leveldb errors to appear on 1.6.0 but thats my next step. |
that sounds like a big problem indeed. |
In my case, installing aptly from official repository over ubuntu package fixed problem. Everything (mirroring/snapshotting/publishing) seems to be okay. This might not work if database is highly corrupted (i guess), e.g. when there is mirror with no name, like in OP post, in my case i just was not able to update mirror. |
Detailed Description
After
aptly
was updated by unattended upgrades from1.4.0+ds1-6
to1.4.0+ds1-6ubuntu0.1
mirror management was broken. The symptom were constant messages like this:Error decoding remote repo: EOF
Context
We use
aptly
in our CI, and it creates several mirrors and snapshots in one go.After the upgrade, we saw this behavior:
The remarkable things from my point of view:
Error decoding remote repo: EOF
*
We downgraded back to
1.4.0+ds1-6
and the commands now finish again successfully. However, we still see the aforementioned messages.Quite frankly, I do not really know where to look, so I am happy for any hints as to how to fix this.
Possible Implementation
Your Environment
Ubuntu 22.04.05 LTS
The update notes for
1.4.0+ds1-6ubuntu0.1
merely mention this:The text was updated successfully, but these errors were encountered: