Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[regression][macos] Restarting daemon while tray GUI is running can hang the daemon #3142

Closed
townsend2010 opened this issue Jun 28, 2023 · 4 comments · Fixed by #3154
Closed
Assignees
Labels
Milestone

Comments

@townsend2010
Copy link
Contributor

townsend2010 commented Jun 28, 2023

A regression has been reported where restarting multipassd while the system tray GUI is running will cause the daemon to not respond to requests after it starts.

It has been narrowed down to this error in the log:

E0627 10:12:08.657058000 6136393728 tcp_server_posix.cc:245]           Failed getpeername: Invalid argument

gRPC seems to get in a bad way only on the Mac when this occurs. It seems this correlates with this change: canonical/grpc@447bd66

To work around this issue, please do the following:

% launchctl unload /Library/Application\ Support/com.canonical.multipass/Resources/com.canonical.multipass.gui.autostart.plist
% sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist
% sudo launchctl load -w /Library/LaunchDaemons/com.canonical.multipassd.plist
@samie
Copy link

samie commented Jul 5, 2023

Can't fully confirm, but this seems to correlate with the host machine network change. Even reboot does not help until I did sudo dscacheutil -flushcache.

@townsend2010 townsend2010 added this to the 1.12.2 milestone Jul 7, 2023
@supersid1695
Copy link

@townsend2010 any workaround for this issue? @samie solution didn't actually work for me.

System: M1 Pro
OS: ventura 13.4.1

@townsend2010
Copy link
Contributor Author

@supersid1695 Yes, you need to do what I posted in #3140 (comment).

I will add those instructions in this issue's description as well.

townsend2010 pushed a commit that referenced this issue Jul 10, 2023
There is a regression seen on macOS in the latest gRPC branch we used
for the 1.12 release.  The gRPC branch has been updated to revert the
problematic commits.

Fixes #3142
bors bot added a commit that referenced this issue Jul 10, 2023
3154: [3rd-party] Update gRPC branch r=ricab a=townsend2010

There is a regression seen on macOS in the latest gRPC branch we used for the 1.12 release.  The gRPC branch has been updated to revert the problematic commits.

Fixes #3142



Co-authored-by: Chris Townsend <christopher.townsend@canonical.com>
townsend2010 added a commit that referenced this issue Jul 10, 2023
3154: [3rd-party] Update gRPC branch r=ricab a=townsend2010

There is a regression seen on macOS in the latest gRPC branch we used for the 1.12 release.  The gRPC branch has been updated to revert the problematic commits.

Fixes #3142



Co-authored-by: Chris Townsend <christopher.townsend@canonical.com>
townsend2010 added a commit that referenced this issue Jul 11, 2023
3154: [3rd-party] Update gRPC branch r=ricab a=townsend2010

There is a regression seen on macOS in the latest gRPC branch we used for the 1.12 release.  The gRPC branch has been updated to revert the problematic commits.

Fixes #3142



Co-authored-by: Chris Townsend <christopher.townsend@canonical.com>
@huyz
Copy link

huyz commented Jul 13, 2023

@townsend2010's workaround wasn't sufficient for me. I also had to do @samie's sudo dscacheutil -flushcache and multipass started working again for me.

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

Successfully merging a pull request may close this issue.

4 participants