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

failed to obtain exit status for remote process #552

Closed
popey opened this issue Dec 20, 2018 · 5 comments
Closed

failed to obtain exit status for remote process #552

popey opened this issue Dec 20, 2018 · 5 comments

Comments

@popey
Copy link

popey commented Dec 20, 2018

Was just trying to build a snap when:-

$ snapcraft 
Launching a VM.
Launched: snapcraft-olive                                                       
mount failed: The following errors occurred:
error mounting "/var/cache/snapcraft/snaps": failed to obtain exit status for remote process: 'id -u'
$ multipass version
multipass  2018.10.1
multipassd 2018.10.1

No idea what I did to make this happen.

@popey
Copy link
Author

popey commented Dec 20, 2018

I worked around this with snap disable multipass / snap enable multipass

@townsend2010
Copy link
Contributor

townsend2010 commented Dec 20, 2018

@popey,

Please upgrade multipass to the latest, just released version in beta. I hopefully put a fix in there that avoids this.

@townsend2010
Copy link
Contributor

By the way, the new version should be 2018.12.1. Please try it and report back if you see this again.

Thanks!

@Saviq Saviq closed this as completed Feb 22, 2019
@abulka
Copy link

abulka commented Mar 18, 2019

I just got this "failed to obtain exit status for remote process" error out of the blue. I had been building snaps for a few days. Can no longer build snaps. I am on the latest Ubuntu 18.04. Tried rebooting Ubuntu - no help.

$ multipass version
multipass  v0.5
multipassd v0.5

not sure why the versions are different to the multipass 2018.10.1 etc. numbering?

Anyway, the snap disable multipass / snap enable multipass trick above failed for me, because multipassd seemed to get hosed and I wasn't sure how to restart it:

$ snapcraft
Launching a VM.
launch failed: cannot connect to the multipass socket                           
Please ensure multipassd is running and '/run/multipass_socket' is accessible
An error occurred when trying to launch the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.

$ snap enable multipassd
snap "multipassd" is not installed

So I

sudo snap remove multipass 
sudo snap install multipass --beta --classic

and things seemed to start working again. But then running snapcraft I got the same error I started with:

Launching a VM.
Launched: snapcraft-rubber-band-async                                           
mount failed: The following errors occurred:
error mounting "/var/cache/snapcraft/snaps": failed to obtain exit status for remote process 'id -u': timeout
An error occurred when trying to mount using 'multipass': returned exit code 2. 

also getting

mount failed: The following errors occurred:
error mounting "/var/cache/snapcraft/snaps": failed to obtain exit status for remote process 'which sshfs': timeout

P.S. Installing multipass from --edge led to snapcraft just locking up. So I'm sticking with beta.

Any ideas?

@abulka
Copy link

abulka commented Mar 20, 2019

For the benefit of this thread, snap restart multipass fixes the issue for me.

Whenever it comes back as a problem (as it periodically does for me), I run that command again, and then I can run snapcraft again.

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

No branches or pull requests

4 participants