Installation failure of a large snap on a core device with a small /tmp

Trying to install a development build snap on a brand new Dell Gateway but the snap install command reports an error due to /tmp running out of space. The snap is a pretty big web app including tomcat and jdk (~600MB in total). When I start the /tmp has ~940MB free so not sure why its running out of space. I’ve also tried setting environment variables to move the tmp dir but no joy.

I’ve looked at the snap command, but cant see any other options there that would help.

Anyone got any ideas or even know why its using /tmp in the first place?

there are a few bugs around this …
namely https://bugs.launchpad.net/snappy/+bug/1536864
of which the result was that with ubuntu core 16 snaps from the store do not get unpacked anymore at all …

for sideloading local snaps using the --dangerous option there is sadly still a requirement to unpack them though, to work around this you can enforce a larger /tmp via something like:

sudo mount -t tmpfs -o remount,size=1024M /tmp

but that indeed only goes as far as you have ram available.

1 Like

Note this one as well: https://bugs.launchpad.net/snapd/+bug/1667865

2 Likes

Many thanks for the quick response. I gave it a go and after trying 1536M the snap actually installed. Looks like it needs twice the tmp space of the snap to work or something similar?

Thanks again.