-
Notifications
You must be signed in to change notification settings - Fork 20
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
Repo dies and DB files get corrupted when switching from 5.3.0 non-multi to multiple-versions-debian #16
Comments
Thanks for the report! It is well written. I will look into fixing it when I have time (currently busy with too many different stuff). Test case (see |
I got hit by this problem too. I reset the db/ dir to what it was before, but I left the conf/distributions file with my new changes still there, Then, rerepro check would fail with:
I had to remove all traces of bionic-archive from the distributions file, reset the db directory (again), |
|
The problem
Users start complaining so you go check that and see that your repo is half-dead, dist files became really small, for example:
dists/buster/main/binary-amd64/Packages
may become just a few kilobytes of size when it has to be much bigger in big repos. People stop seeing packages in the repo's "index", but deb files are there still.reprepro check
returns:The cause
When you update
reprepro
binary to a newer version and then executeincludedeb
after that - dist files start containing only what you have just added. After that you may runreprepro check
and start seeing the error message above.The thing is that originally there is no
db/packagenames.db
file and it is created on first run, but it's somehow already broken.To avoid that issue
Hold your breath, don't add anything YET ... Once reprepro binary is updated simply do
reprepro check
. After that do whatever you want.If already broken!
Don't worry, it seems that you don't have to have a backup this time!
To FIX everything, simply:
db/packagenames.db
reprepro check
to populatedb/packagenames.db
in a right wayreprepro export
to re-generate those almost-empty dist files so they are good and healthy and heavy.The text was updated successfully, but these errors were encountered: