snapcraft unable to find snap/snapcraft.yaml file

Bug #1869542 reported by keshavbhatt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Undecided
Unassigned

Bug Description

snapcraft --debug failed to find snapcraft.yaml files after one or two builds,
and drops to VM's shell afterward.
the only solution for this seems to be `snapcraft clean` which causing deletion of VM and creation of new one. This is annoying and seems like a bug.

snapcraft --version
snapcraft, version 3.11+git9.ga8ad6574

multipass --version
multipass 1.1.0
multipassd 1.1.0

`snapcraft --debug
Launching a VM.
snapd 2.43.3 from Canonical✓ refreshed
Could not find snap/snapcraft.yaml. Are you sure you are in the right directory?
To start a new project, use `snapcraft init` `

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

Can you log an issue on Multipass and reference this bug?

Changed in snapcraft:
status: New → Triaged
Revision history for this message
keshavbhatt (keshavnrj) wrote :

I will, I noticed that switching off the VM completely before building snap prevent this issue. so, basically its seems like issue about snapcraft and multipass interaction between each other.

I will report this issue to multipass issue tracker and update my post with link.
Thanks.

Revision history for this message
Chris Patterson (cjp256) wrote :

Can you share any other steps you are taking to help reproduce and perhaps even the project itself? I cannot reproduce locally and I've tried a variety of things...

Revision history for this message
Chris Patterson (cjp256) wrote :

Also, I noticed multipass "stable" is 1.2.0. Can you update multipass and see if it fixes your issue? I know that they have had some bug fixes in the past that may help here..

`snap refresh multipass --stable`

Revision history for this message
keshavbhatt (keshavnrj) wrote :

Am refreshing multipass to stable version. Will update this issue if this happen on 1.2.0 .

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.