cannot change profile for the next exec call: No such file or directory

Bug #1760514 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Cris Dywan

Bug Description

I have hit this a bunch of times recently on my 16.04 KDE Neon machine.
It only happens if I set SNAPCRAFT_CONTAINER_BUILDS=1, run a build (which fails) and then re-run the build again. Here you can see the end of a failure, me re-running and it failing, then me doing a clean and re-running and it works.

alan@KinkPad-K450:~/src/cointop$ snap version
snap 2.32.1
snapd 2.32.1
series 16
neon 16.04
kernel 4.13.0-37-generic
alan@KinkPad-K450:~/src/cointop$ snapcraft --version
snapcraft, version 2.40+git3.b6ed5ac

  File "/snap/snapcraft/1337/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 363, in build
    script_runner.run(scriptlet=self._part_properties.get('prepare'))
  File "/snap/snapcraft/1337/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/_scriptlets.py", line 43, in run
    run([scriptlet_path], cwd=self._builddir)
  File "/snap/snapcraft/1337/lib/python3.6/site-packages/snapcraft/internal/common.py", line 64, in run
    subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs)
  File "/snap/snapcraft/1337/usr/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/sh', '/tmp/tmplp53fzcu', '/tmp/tmpm286qh9h']' returned non-zero exit status 128.
You can anonymously report this issue to the snapcraft developers.
No other data than this traceback and the version of snapcraft in use will
be sent.
Would you like send this error data? [y/N]: n
Stopping local:snapcraft-cointop
alan@KinkPad-K450:~/src/cointop$ snapcraft
Using default LXD remote because SNAPCRAFT_CONTAINER_BUILDS is set to 1
Device /root/build_cointop removed from snapcraft-cointop
Waiting for a network connection...
Network connection established
Mounting /home/alan/src/cointop into container
Device /root/build_cointop added to snapcraft-cointop
cannot change profile for the next exec call: No such file or directory
Stopping local:snapcraft-cointop
alan@KinkPad-K450:~/src/cointop$ snapcraft clean
Deleting local:snapcraft-cointop
Cleaning up priming area
Cleaning up staging area
Cleaning up parts directory
alan@KinkPad-K450:~/src/cointop$ snapcraft
Using default LXD remote because SNAPCRAFT_CONTAINER_BUILDS is set to 1
Creating snapcraft-cointop
Device fuse added to snapcraft-cointop
Waiting for a network connection...
Network connection established
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

perhaps related to bug 1687079 but maybe not?

Revision history for this message
Brett Sutton (bsutton) wrote :

Just had this same problem.

SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft clean

 snapcraft --version
snapcraft, version 2.40.1

snap version
snap 2.32.1
snapd 2.32.1
series 16
ubuntu 17.10
kernel 4.13.0-37-generic

performing the clean also fixed the problem for me.

Revision history for this message
Brett Sutton (bsutton) wrote :

And my exact error is:

SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft

Using default LXD remote because SNAPCRAFT_CONTAINER_BUILDS is set to 1
Device /root/build_orion-monitor removed from snapcraft-orion-monitor
Waiting for a network connection...

Network connection established
Mounting /home/bsutton/git/orionmonitor/snap-projects/installer into container
Device /root/build_orion-monitor added to snapcraft-orion-monitor
cannot change profile for the next exec call: No such file or directory
Stopping local:snapcraft-orion-monitor

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

Christian, please triage.

Changed in snapcraft:
assignee: nobody → Christian Dywan (kalikiana)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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