-
Notifications
You must be signed in to change notification settings - Fork 657
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
Stale dnsmasq.pid can prevent IP allocation due to PID clash #1741
Comments
Hi @jocado, thanks for the very useful report. Indeed something we overlooked and need to address! |
A couple of updates after internal discussion:
|
Thanks! |
@ricab Hi, I am running into this issue when trying to launch. I am wondering if you guys found a "quick fix" for the issue. I am trying to develop on Ubuntu 20.04 inside of VirtualBox. Thanks |
Hi @dlbeck, yeah this got fixed in v1.5.0. Are you using an earlier version? |
Hi, I'm also getting this problem, just installed multipass using snap, version info below:
I do get the following warning, but I dubt it has something to do with this: Tried both a normal launch and with cloud init, same result. |
Looks like it might be that yes, thanks :) |
Describe the bug
If a stale
dnsmasq.pid
exists from a previous execution and another running process has the PID, instances fail to boot properly with the error:PID allocation on systems that don't reboot often means this is unlikely, but if you reboot daily [ for instance ] , it becomes much more likely. I have seen it happen , so it is at least possible :)
To Reproduce
Reboot a system
If you are unlucky, and one of the running PIDs matches the contents of
dnsmasq.pid
, then dnsmasq will not start instances fail to launch.To reliably reproduce:
Stop multipassd
echo {PID_OF_A_RUNNING_PROCESS} > /var/snap/multipass/common/data/multipassd/network/dnsmasq.pid
Start multipassd
Try and launch an instance
Expected behavior
dnsmasq.pid
should either be purge onmultipassd
stop, or additional logic added to check for a process signature that matches dnsmaq fore assuming dnsmaqk is running.Instances should still be able to launch. A non-technical user will find it hard to debug this issue, and it could the cuase of some other tickets I've seen:
#1653
#1584
Logs
Also see this in the service logs:
Additional info
Ubuntu 18.04.5
multipass 1.4.0
multipassd 1.4.0
The text was updated successfully, but these errors were encountered: