you mean it still complains about /proc/*/mounts ?
you are jumping back and forth between topics here, this is very hard to follow … could you work on one thing at a time ?
@ogra the adjust program to not access '@{PROC}/@{pid}/mounts' arises when I run the snap out of current project directory. This can be fixed by manually connecting to the mount-observe interface.
after fixing this, I run the snap and got the cp: cannot open './ca-certificates.crt' for reading: Permission denied.
However, if I run the snap in the current project directory that contains the .crt file, then it works. But in the apparmor, it says adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON.
so now I need a way to place the .crt to a location from where it should be available at the time of snap run as suggessted by @lucyllewy.
can you please guide where should I place the file?
thanks
the first lines seem to come from some hacks that raspbian does to /etc/ld.so.preload (forcing to preload that library even though snaps can simply not access it due to confinement) … you can ignore them, they should be harmless…
the python error looks like some error in your code trying to create a directory somewhere …
That’s likely not what you want. You need to ideally build on the target architecture. The block above tells snapcraft that it can build on either amd64 or armhf and that the resulting snap binaries will be runnable on both amd64 and armhf.
That means if you build on amd64 snapcraft will set that the snap can run on armhf (in addition to amd64) even though the binaries are only amd64.
Conversely if you build on armhf snapcraft will set that the snap can run on amd64 (in addition to armhf) even though the binaries are only armhf.
it looks to me like it’s trying to parse python3 (an ELF binary) with an interpreter of some kind, possibly python3 recursively, which obviously isn’t going to work because it’s supposed to execute directly.
Do you perchance have python3 specified twice in your command line?
I’m wondering why it shows amd64 under Arch? I am expecting to see armhf as I only specified this in architectures.
is this an issue that causes the aforementioned errors or it is just because I’m creating the snap on ubuntu?
I could not make it work for Raspbian and switched to Ubuntu core now but still getting the same error.
I have created a very simple test case, can you guys please be kind enough to have look at this issue: