-
Notifications
You must be signed in to change notification settings - Fork 31
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
Breaking compatibility with old db? #86
Comments
The downloader functionality has changed a lot recently. It might affect the way prefetcher works. As of your question
Once upstream has a newer database file then pacoloco will download it. Let me know if you see different behaviour. |
The behaviour I see is that all downloads fail on the client, which then discards pacoloco for further downloads. Is there any migration that should be done on the db to work with the newer version? |
It might be easier to debug the issue if you provide a way to reproduce the problem. What is the step by step instructions to get this problem? |
Suddenly today after a reboot it worked. I write here a small sample of logs that show the issue. It is much more a log readibility issue rather than a real issue.
Then the real issue warning came out:
Weird things happened afterwards as I requested a db update on a pacman client:
An url for download was available even if there were no urls for that repository. How could this be possible? The same thing happened with the other dbs:
But, something even harder to understand is how could have possibly completed a prefetch with no urls! Here are the logs:
Now, after a reboot I use reflector to update mirrorlists. I noticed that reflector failed on the previous run, thus providing an empty mirrorlist (my fault ofc). After the reboot, everything went smoothly, no issues whatsoever. Imho I'd suggest to replace the It is just a minor issue but it would have helped a lot finding the issue earlier imho. |
To prevent issues with invalid mirrolist I thing we need to update urls, err := parseMirrorlistURLs(file)
if err == nil {
r.URLs = urls
}
if len(urls) == 0 {
return nil, fmt.Errorf("mirrolist file %v contains no urls")
}
return urls, err |
I just tried to update to the new master branch. I see those errors:
Does the recent commits break compatibility with the older db?
Is it correct to serve cached db files when they exist?
Is there something that can be done to update the db?
The text was updated successfully, but these errors were encountered: