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

install script from omnitruck fails when dpkg/yum/etc is temporarily locked #318

Open
sparr opened this issue May 7, 2020 · 1 comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@sparr
Copy link

sparr commented May 7, 2020

Version:

current at https://omnitruck.chef.io/install.sh

Environment:

I am running the script on Ubuntu 18.04 but the problem being described here is OS-agnostic and applies to all installation methods that use a package manager that uses a lock so that two package processes cannot run at once.

Scenario:

I am attempting to install chef using the install.sh script, coincidentally at the same time as another process is using dpkg (or another package manager).

Steps to Reproduce:

  1. launch a long/slow dpkg or yum process
  2. in another shell, run install.sh

Expected Result:

install script waits for dpkg/yum to become unlocked

Actual Result:

   Installing chef 
   installing with dpkg...
   dpkg: error: dpkg frontend is locked by another process
   Installation failed
   Version: 
@sparr sparr added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels May 7, 2020
@Tensibai
Copy link
Contributor

The main problem with waiting that I see is that it can hang infinitely if the lock is due to a crash in the package manager.

Would need an exponential backoff and a limited number of retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants