trailofbits / algo

Set up a personal VPN in the cloud
https://blog.trailofbits.com/2016/12/12/meet-algo-the-vpn-that-works/
GNU Affero General Public License v3.0
28.95k stars 2.32k forks source link

Algo configuration stopped because APT is performing a unattended-upgrade #14335

Open tanc7 opened 3 years ago

tanc7 commented 3 years ago

fatal: [45.32.73.221]: FAILED! => {"cache_update_time": 1635353729, "cache_updated": true, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'strongswan' -o APT::Install-Recommends=yes' failed: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5043 (unattended-upgr)\nE: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?\n", "rc": 100, "stderr": "E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5043 (unattended-upgr)\nE: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?\n", "stderr_lines": ["E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5043 (unattended-upgr)", "E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"], "stdout": "", "stdout_lines": []}

Is there a way I can change the setup scripts to "wait" for the upgrades to be done?

jackivanov commented 3 years ago

We could add a retry to every apt task, as there's no in-module implementation

iaacautomation commented 2 years ago

Or check if dpkg is running and only starts when its not.

floydspace commented 2 months ago

this could be added in troubleshooting docs