Skip to content
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

Investigate fix for contention on apt locks #13

Open
ScottG489 opened this issue Oct 11, 2021 · 0 comments
Open

Investigate fix for contention on apt locks #13

ScottG489 opened this issue Oct 11, 2021 · 0 comments

Comments

@ScottG489
Copy link
Owner

In the pre_tasks we do an apt update twice since for whatever reason this seemed to help avoid problems with these locks. This is something that isn't natively supported by the ansible package playbook. More information can be found here:

ansible/ansible#25414

The best solution from that issue seemed to be the following:

- name: Wait for any possibly running unattended upgrade to finish
  raw: systemd-run --property="After=apt-daily.service apt-daily-upgrade.service" --wait /bin/true

So it would be worth seeing how that works.

The main benefit here is that we would save having to do an update twice in a row, although this doesn't take up much time relatively. It also just seems like a solution that makes sense since I'm not exactly sure why the double updated fixes things.

If the above code is implemented we should keep a close eye on future builds running into the problem again since the current solution has been working pretty reliably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant