Package: apt-cacher-ng
Version: 3.7.4-1+b2
OS: Debian GNU/Linux 12 (bookworm)

When multiple systems attempt a package installation through apt-cacher-ng, 
some are returned a 503 error due to what appears to be a problem with 
simultaneous access. It appears that apt-cacher-ng is attempting to backup the 
repo index file multiple times with the same name. The problem does not happen 
when systems install packages at different times.

Relative apt-cacher-ng logs (NOTE: I have already checked file permissions as 
the log says):
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|I|5008|11.0.0.12|centos/7/os/x86_64/repodata/repomd.xml
1735621847|O|4008|11.0.0.12|centos/7/os/x86_64/repodata/repomd.xml
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!
1735621847|O|742|11.0.0.12|centos/7/centosplus/x86_64/repodata/repomd.xml
Tue Dec 31 05:10:47 2024|Failure to move file 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml out of 
the way or cannot create 
/var/cache/apt-cacher-ng/centos/7/centosplus/x86_64/repodata/repomd.xml.1735621847
 - errno: File exists
Tue Dec 31 05:10:47 2024|Error creating file item for 
centos/7/centosplus/x86_64/repodata/repomd.xml -- check file permissions!

In our case, the simultaneous access is caused by execution via ansible and 
throttling those operations is highly undesirable due to environment scale and 
time considerations. Is there an option to disable this backup operation 
altogether and simply overwrite the index file or to pull the index only once 
despite multiple requests?




Reply via email to