Cannot pack "/root/prime": mksquashfs call failed

Hello everyone. I am trying to snap an app and everytime, I get this multipass error

Failed to create snap, snap command failed:
stdout:

stderr:
error: cannot pack "/root/prime": mksquashfs call failed: Could not create destination file: Operation not permitted

We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: no
Run the same command again with --debug to shell into the environment if you wish to introspect this failure. 

I have no idea, if it’s multipass or snapcraft, that’s causing the issue. snapcraft --use-lxd seems to be working fine, but I want to use the multipass.

Here is my multipass version:

hiransarkar@hiransarkar-MS-7C09:~$ multipass --version
multipass   1.11.0
multipassd  1.11.0
hiransarkar@hiransarkar-MS-7C09:~$ 

And here are the contents of my snapcraft.yaml

Thanks.

Turns out this issue is because multipass or snapcraft didn’t have permission to create the snap file, in that particular directory. I have updated the permission and its working now.

Thanks.