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

Multipass seems to delete my instances, "cannot connect to the multipass socket", and gives me the screen "waiting for daemon" #3721

Closed
weluvgoatz opened this issue Oct 9, 2024 · 7 comments
Labels

Comments

@weluvgoatz
Copy link

Describe the bug
After I have used the multipass GUI a couple times, it seems to freeze up, and then I am greeted with the message "waiting for daemon", which lasts indefinitely, even if I close and re-open the program.

To Reproduce
How, and what happened?

  1. Open the Multipass GUI
  2. Do some stuff in Multipass for a while.....
  3. After using it a couple times, upon startup, my instances are all seemingly deleted and I get the "waiting for daemon" message.

Expected behavior
I expected Multipass to start up and not give me this message and let me access my previously used instances.

Logs
It won't let me put the log file, for some reason. Should I attach a screenshot, or upload the file elsewhere, or something?

Additional info

  • OS: Windows 10 Home
  • multipass version 1.14.0
  • multipass info I am unable to access it. I will explain below.
  • multipass get local.driver Same as above.

Additional context
Here is a screenshot of what I am experiencing. Apologies if my information is not helpful, I am extremely new to this (and Ubuntu in general) and am only using it for a class that requires it.
image

Also, every time I try to run a multipass command in CMD, it fails, because I get this error:
image

After a little bit of searching, I am assuming this is related to #3142 .

@weluvgoatz weluvgoatz added bug needs triage Issue needs to be triaged labels Oct 9, 2024
@sharder996
Copy link
Contributor

Hi @weluvgoatz, it looks like the Multipass service has crashed due to some unknown error. A quick fix might just be to restart it (Services->Multipass->restart service). However, to determine what went wrong we will need the logs as a first step. This document explains where to find the logs on Windows. You can select and export the logs as a txt file and simply paste the contents in a comment here or create a paste on pastebin.

@sharder996 sharder996 removed the needs triage Issue needs to be triaged label Oct 9, 2024
@weluvgoatz
Copy link
Author

I tried restarting the service, but it looks like it's been stuck at this screen for a bit:
image

I read that document, but was unaware I could export it as a txt file, so I did that. Thanks!
Logs.txt

@sharder996
Copy link
Contributor

If it's stuck in the Stopping state, you will need to force stop the service which you can do by ending the multipassd.exe process in task manager. Or, you can simply restart your machine.

As for the logs, I'm not immediately seeing anything pointing to the original error. If the problem persists after restarting the service (as described above), the logs around the time the service is starting up/crashing/some problem occurring would be helpful.

@weluvgoatz
Copy link
Author

Okay, a somewhat-odd workaround I managed to find is using Services to restart it, but this is only reliable about half the time. However, in the situations that it does work, my instances and associated files do return.

As for what you said about the logs, the ones I sent was everything associated with my usage of Multipass today.

Anyway, I appeared to find a workaround, but if the problem arises again and the workaround does not work anymore I will come back.

@mdorier
Copy link

mdorier commented Dec 11, 2024

I'm hitting the same problem on a Mac M2 Max after updating to 1.14.1. Any solution? The UI keeps showing Waiting for daemon, over and over again. I can't do anything. What's the Mac equivalent of the workaround above?

@sharder996
Copy link
Contributor

@mdorier Restart the Multipass daemon?

launchctl kickstart -k /Library/LaunchDaemons/com.canonical.multipassd.plist

@mdorier
Copy link

mdorier commented Dec 11, 2024

Can't try it anymore. I uninstalled and reinstalled a bunch of times, it ended up working eventually but I lost my VM in the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants