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

fix #2150 dpkg frontend lock #2151

Merged
merged 4 commits into from
May 25, 2020
Merged

fix #2150 dpkg frontend lock #2151

merged 4 commits into from
May 25, 2020

Conversation

Mte90
Copy link
Member

@Mte90 Mte90 commented May 15, 2020

Summary:

fix #2150

@update-docs
Copy link

update-docs bot commented May 15, 2020

Thanks for opening this pull request! Make sure CHANGELOG.md gets updated with this change, additionally any docs that need updated can be found at https://github.com/Varying-Vagrant-Vagrants/varyingvagrantvagrants.org

GitHub
The VVV docs and website. Contribute to Varying-Vagrant-Vagrants/varyingvagrantvagrants.org development by creating an account on GitHub.

@msaggiorato
Copy link
Member

What's the condition that #2150 happens on? Seems like a failed provisioner right? Or a machine that was force halted during the install process.

If that is the case, should we be removing the locks? Or forcing the user to force recreate the machine, just to avoid any potential problems with failed provisions.

@Mte90
Copy link
Member Author

Mte90 commented May 19, 2020

I think that is a provisioner fail previously but is the only way to fix it is to remove the file. On my debian system I do the same.

@macgraphic
Copy link

macgraphic commented May 21, 2020

I added the line to provision.sh

  # fix https://github.com/Varying-Vagrant-Vagrants/VVV/issues/2150
  rm /var/lib/dpkg/lock*

But I am still getting the same error on a 'vagrant up --provision'

default:  * Installing apt-get packages...
    default: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
    default: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
    default:  * Installing apt-get packages returned a failure code, cleaning up apt caches then exiting

To correct or to start VVV, I then run vagrant reload --provision

@Mte90
Copy link
Member Author

Mte90 commented May 21, 2020

I tested now the pr (because I had that problem) and worked.
Did you added that line to the right line? Are you using the develop branch or switched to the pr one?

@tomjn
Copy link
Member

tomjn commented May 21, 2020

Is there an apt or dpkg based way of clearing it? Removing the file works but if there's a better way, similar to how you can run svn cleanup then that might help avoid any strange issues encountered

@tomjn
Copy link
Member

tomjn commented May 21, 2020

Also can we get a changelog update?

@Mte90
Copy link
Member Author

Mte90 commented May 21, 2020

Changelog updated and no there isn't any way.
Remove that files is the only way to fix it with apt (debian user talking), the lock files are crate by linux processes but they are not removed if the process itself is killed (like libreoffice or vim) so you have to remove it manually.

@tomjn tomjn changed the title fix #2150 fix #2150 dpkg frontend lock May 25, 2020
@Mte90 Mte90 merged commit 8a9ea97 into develop May 25, 2020
@Mte90 Mte90 deleted the Mte90/2150 branch May 25, 2020 13:46
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

Successfully merging this pull request may close these issues.

Unable to acquire the dpkg frontend lock
4 participants