race condition when running snapcraft

Bug #1986949 reported by Alfonso Sanchez-Beato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

There might be a race while installing snapcraft inside an lxd container:

$ snapcraft
Launching instance...
cannot snap-exec: cannot exec "/snap/snapcraft/x1/bin/python": no such file or directory
Failed to execute pack in instance.
Full execution log: '/home/abeato/.cache/snapcraft/log/snapcraft-20220818-141344.948836.log'

But running it again it was fine:

$ snapcraft
Launching instance...
Executed: skip pull base (already ran)
Executed: skip pull consoleconf-deb (already ran)
Executed: skip pull probert-deb (already ran)
Executed: update sources for bootstrap (source changed)
Executed: skip pull splash-theme (already ran)
Executed: skip overlay base (already ran)
Executed: skip overlay consoleconf-deb (already ran)
Executed: skip overlay probert-deb (already ran)
Executed: update overlay for bootstrap ('PULL' step changed)
Executed: skip overlay splash-theme (already ran)
...

I've attached the log output.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This looks more like a potential snapd issue considering that /snap/snapcraft/x1/bin/python is dereferenced from metadata in meta/snap.yaml

affects: snapcraft → snapd
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.