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
Provisioning error - apt-get update - lock error #3
Comments
Never seen that happening before, and indeed its somewhat odd. The network should be available at that point because vagrant is using it to run those commands in a SSH connection. Maybe the logs inside that 2nd node have the reason? |
i guess the nodes are not ready for the
i am trying to investigate this issue with an up / down loop see:
|
like you said before, it really seems that something else is trying to use apt-get, maybe there's a systemd unit that does automatic updates / checks at boot? |
yes I think so too, that another process is blocking apt the provision.sh should check if apt is running, and wait for it if it is not "free" something like this:
|
lgtm:
|
it looks good to be used in the terminal but I'm afraid it might not work when started from vagrant (it does not emulate a terminal). did you understood what was/is using apt-get? |
As a workaround you can run the following. It's slow because it's serial, but it'll get the job done.
|
Hi @rgl
i have a weird issue: i think it only occurs sporadically
pve2: E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
maybe its a race-condition .. the network is not available yet on the node and he trying to upgrade packages ? or there is an running apt upgrade behind the scene and so he failed ?
i am wondered about this occurs on the second node ...
see screenshot:
kind regards
matthias
The text was updated successfully, but these errors were encountered: