apt clients stuck on parallel access
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 22.04.1 LTS; apt-cacher-ng; 3.7.4-1build1
If multiple clients (tested: 10-20) accessing the apt-cacher-ng very simultaneously with the very same requests (orchestrated by ansible here), one or more of the apt-get clients seems to stuck infinity. I don't see any related logs on the client side, only the processes running without consuming CPU-Time:
_apt 82650 82271 0 12:55 ? 00:00:00 /usr/lib/
_apt 82651 82271 0 12:55 ? 00:00:00 /usr/lib/
_apt 82653 82271 0 12:55 ? 00:00:00 /usr/lib/
_apt 82808 82271 0 12:55 ? 00:00:00 /usr/lib/
On the apt-cacher-ng side, I see something in the apt-cacher.err:
Mon Aug 8 12:55:34 2022|Failure to move file /data/apt-
Mon Aug 8 12:55:34 2022|Error creating file item for ubuntu.
The file permission are _not_ the problem, it seems to be a kind of race-condition?
I don't even know if it's related, because I get such error-messages even on a successful run withouts stuck clients:
Mon Aug 8 13:28:57 2022|/data/
Mon Aug 8 13:28:57 2022|/data/
Mon Aug 8 13:28:57 2022|/data/
Mon Aug 8 13:28:57 2022|Failure to move file /data/apt-
Mon Aug 8 13:28:57 2022|Error creating file item for ubuntu.
Mon Aug 8 13:28:57 2022|Failure to move file /data/apt-
Mon Aug 8 13:28:57 2022|Error creating file item for ubuntu.
Mon Aug 8 13:28:57 2022|Failure to move file /data/apt-
Mon Aug 8 13:28:57 2022|Error creating file item for ubuntu.
Mon Aug 8 13:28:57 2022|/data/
Mon Aug 8 13:28:58 2022|/data/
Status changed to 'Confirmed' because the bug affects multiple users.