Project

General

Profile

Actions

Idea #20938

open

Fix apt lock failure in test-provision-debian10

Added by Brett Smith 8 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Deployment
Target version:
Start date:
Due date:
Story points:
-

Description

Since August 2, this job has failed way more often than it succeeded. Since August 18, it seems to succeed about once every 3 runs. It typically fails because apt-get cannot acquire its database lock:

+ OS_ID=debian
+ echo 'Detected distro: debian'
Detected distro: debian
+ case ${OS_ID} in
+ DEBIAN_FRONTEND=noninteractive
+ apt -o DPkg::Lock::Timeout=120 update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/buster-backports.list:1
Build step 'Execute shell' marked build as failure

No data to display

Actions

Also available in: Atom PDF