-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
failing repositories getting disabled #628
Comments
That is just a warning message from python3-debian, it is not an error. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913274 for the background to the warning. |
This link says that the problem has long been fixed in the python3-debian 0.1.34 version. Now I have the current version 0.1.49 installed on my Debian 12 system. |
It is just a warning, it is not related to your repos failing. Do you have the log output where the repos are failing? |
The problem with updating some repositories is floating. One day the same repository can update successfully, and on another day it does not update. For example, today at 7 am using the systemd timer, an update of the Patchman server was launched with the command "/usr/bin/patchman --all --force" Now the web interface of the Patchman server shows that 2 repositories have mirrors that are not responding However, the log does not show any obvious update errors for these repositories.
|
Is it possible to somehow enable debugging of repository update processing? |
Are there no progressbars running for the OS updates? |
There is a progress bar if we run the update command manually:
But as we can see, the command is executed instantly, and the repository data is not actually updated, even though we specified the --force option. |
The bad thing about this whole situation is that the mirror properties have a counter of unsuccessful updates, which when it reaches 28 simply makes the mirror useless because it stops updating it. This is a very strange decision, since nothing is written about this in the patchman documentation and this limit is not put into the configuration file, but simply hardcoded. And as we understand, even with a successful update, this counter of unsuccessful updates is not reset. If we have an unstable Internet and the repository update process cannot update the mirrors from time to time, then over time (when the counter reaches 28) this leads to the fact that all mirrors will quietly stop updating at all. Correct me if I'm wrong. |
You are correct. IIRC the original logic was something like "if an upstream mirror is unavailable for a month, it should be disabled or replaced with a better mirror, and this will help people notice". Happy to add a configurable value here instead and/or to reset the fail count if a mirror if it becomes available again. |
Could also represent the fail count as a percentage of access failures, and have the mirror disabled upon reaching a certain failure threshold? |
I don't see any point in disabling the mirror. If our Internet provider or Internet access equipment is unstable, the mirror may be unavailable periodically. In this case, the counter will increase, as is happening with us now. The administrator already sees in the dashboard that there are repositories with which there are accessibility problems. In my opinion, this is enough. |
The original use-case was for folks using mirrorlists where mirrors periodically drop off completely and don't come back. In that case, it makes sense to disable the mirror and pick another mirror from the mirrorlist. This requires no intervention or monitoring from the user. Your use-case is one not considered before, but it also makes sense. I have added a configurable in #635 if you would like to test it? |
Can you please build a new version of the deb package with these changes? |
Hello
Sometimes some repositories are not updated.
Please tell me how to diagnose the cause of the problem.
The text was updated successfully, but these errors were encountered: