cannot build snap in Arch Linux

Bug #1837268 reported by Jorge Javier Araya Navarro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

after install snapd from AUR ( https://aur.archlinux.org/packages/snapd/ ) and then install snapcraft with snap (sudo snap install snapcraft --classic) I'm unable to build a snap.

% sudo snapcraft -d build
Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Launching a VM.
Launched: snapcraft-emacs-git-shackraseaslug
2019-07-20T03:06:44Z INFO Waiting for restart...
core 16-2.39.3 from Canonical✓ installed
snapcraft 3.6 from Canonical✓ installed
[1] 8064 segmentation fault sudo snapcraft -d build

if I try again the same command the following is shown:

% sudo snapcraft -d build
Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Launching a VM.
mount failed: The following errors occurred:
"snapcraft-emacs-git-shackraseaslug:/var/cache/snapcraft/snaps" is already mounted
An error occurred with the instance when trying to mount with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.

I then check multipass:

% sudo multipass list
Name State IPv4 Image
snapcraft-emacs-git-shackraseaslugDelayed Shutdown 10.240.249.116 Ubuntu Snapcraft builder for Core 18
divine-skater Running 10.240.249.40 Ubuntu 18.04 LTS

if I start snapcraft-emacs-git-shackraseaslug and run the same build command again the same error is thrown

Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1837268] [NEW] cannot build snap in Arch Linux

On 7/20/19 12:10 AM, Jorge Javier Araya Navarro wrote:
> % sudo snapcraft -d build

Out of curiosity, why do you use sudo?

Revision history for this message
Jorge Javier Araya Navarro (shackraseaslug) wrote :

no particular reason, it what looked to work fine and snapcraft did not complain about sudo

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Isn't the error coming from inside the VM at this point?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

The error seems to be coming from running the multipass commands, cannot say for sure, would need an arch install to verify. Is there a core dump that we could look into?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.