Open 89ao opened 1 year ago
Howdy - Can we also get your bandersnatch.conf added to the PR so that your usage can be confirmed / added to tests etc. etc. please.
@cooperlees here is my bandersnach.conf
[mirror]
directory = /opt/bandersnatch
storage-backend = filesystem
master = https://pypi.org/
json = true
timeout = 300
workers = 3
hash-index = false
stop-on-error = false
delete-packages = true
compare-method = stat
log-config = /conf/bandersnatch-log.conf
[plugins]
enabled =
blocklist_project
blocklist_release
regex_project
[blocklist]
packages =
uselesscapitalquiz
tf-nightly-gpu
tf-nightly
tensorflow-io-nightly
tf-nightly-cpu
pyagrum-nightly
appium
[filter_regex]
packages =
.+-nightly.*
issue happens again,when i check banderlogfile.log,It seems to be no error,but the /yum/pip/todo file always keep these "no longer exist" packages ,this leads to the inability to perform new synchronization tasks.
Recently our pypi repo has been out of sync many times. Please help me solve this problem. @cooperlees
bandersnatch version:6.0.0
[root@VM_21_104_centos /data/home/motorao/bandersnatch]# tail -n 10 /yum/pip/banderlogfile.log
2023-05-31 19:02:01 bandersnatch.package: INFO zhanlan1 no longer exists on PyPI
2023-05-31 19:02:01 bandersnatch.package: INFO Fetching metadata for package: zlkj (serial 18121307)
2023-05-31 19:02:01 bandersnatch.package: INFO zhanlanpkg no longer exists on PyPI
2023-05-31 19:02:01 bandersnatch.package: INFO Fetching metadata for package: zwhrce (serial 18119235)
2023-05-31 19:02:01 bandersnatch.package: INFO zhanlanu no longer exists on PyPI
2023-05-31 19:02:01 bandersnatch.package: INFO zlkj no longer exists on PyPI
2023-05-31 19:02:01 bandersnatch.package: INFO zwhrce no longer exists on PyPI
2023-05-31 19:02:01 bandersnatch.simple: INFO Generating global index page.
2023-05-31 19:02:06 bandersnatch.mirror: INFO 0 packages had changes
2023-05-31 19:02:06 bandersnatch.mirror: INFO Writing diff file to mirrored-files
So, what I believe is happening here is you've ran a sync and it failed somehow, but during the time between your sync and the next, some of these packages in your todo
file got deleted from PyPI. So it seems we get stuck into this loop of always trying to see if it has "come back".
I think we could introduce behavior to get out of this loop. But since this has been the behavior for a long time I think we have to gate it via a config option or CLI option.
I'd accept adding a config/CLI option (like --cleanup-todo) to allow deleting of these packages from the todo
list if they raise PackageNotFound
(aka, are not found on PyPI anymore).
cleanup_todo = false/true
- Default: falseYour manual workaround for now is to just remove all the "no longer exists on PyPI" packages from your todo
file or just remove your todo file.
Looks good to me , looking forward to the update. :)
As shown in the following log, I initially found that the packages "oreo" and "spanishconjugator" were not updated, but after checking the log, I found that "oreo" was missing and "spanishconjugator" failed to pass the verification. The problem is that the failure of the subtasks' updates should not hinder the overall task's operation. Otherwise, the task will be stuck in a loop at these two packages forever.
Please help me resolve these issues.