Can't install Nextcloud on Debian 9 via Snap - [start snap-core-7270.mount] failed

Hello,

I upgraded my server on Debian 9 precisely to install Nextcloud via Snap. I’ve installed Snap, then updated, upgraded and rebooted everything to hell. But every time I try to perform the command, this happens:

snap install nextcloud
error: cannot perform the following tasks:
-Mount snap “core” (7270) ([start snap-core-7270.mount] failed with exit status 1: Job for snap-core-7270.mount failed.
See “systemctl status snap-core-7270.mount” and “journalctl -xe” for details.
)

and installation stops.

Does anyone have an idea on how to solve the problem, please ?

Thanks by advance for your time !

I would start with checking the logs referenced by the error message.

Hi, thanks for your answer. Here is what I got:

– Unit snap-core-7270.mount has begun starting up.
Aug 09 11:38:51 ns364271 systemd[1]: snap-core-7270.mount: Mount process exited, code=exited status=32
Aug 09 11:38:51 ns364271 systemd[1]: Failed to mount Mount unit for core.
– Subject: Unit snap-core-7270.mount has failed
– Defined-By: systemd
– Support: https://www.debian.org/support

– Unit snap-core-7270.mount has failed.

– The result is failed.
Aug 09 11:38:51 ns364271 systemd[1]: snap-core-7270.mount: Unit entered failed state.
Aug 09 11:38:51 ns364271 /usr/lib/snapd/snapd[718]: task.go:303: DEBUG: 2019-08-09T11:38:51Z ERROR [start snap-core-7270.mount] failed with exit status 1: Job for snap-core-7270.mount failed.
See “systemctl status snap-core-7270.mount” and “journalctl -xe” for details.
Aug 09 11:38:51 ns364271 /usr/lib/snapd/snapd[718]: taskrunner.go:353: DEBUG: Running task 101 on Undo: Download snap “core” (7270) from channel “stable”

And I don’t know how to interpret nor fix this.

Okay, I’m not too sure about that one either. I haven’t used snap a whole lot, but I can tell you that the snap system uses a sandbox in the file system with some interesting permissions. something in that is most likely what it’s trying to mount, so the problem could be with the snap setup itself.

I use mainly Ubuntu Server which has snap preinstalled, so I don’t know what needs to be done to install it manually, but I would definitely look there.

Well, I guess I will go ask on the Snapcraft forums, and keep you posted if I get an answer.

Thank you for your help, still !

EDIT : I tried to run “snap install nextcloud” again, and now the error is with snap-core-7396.mount, that’s what I get when I run a systemcl:

â—Ź snap-core-7396.mount - Mount unit for core
Loaded: loaded (/etc/systemd/system/snap-core-7396.mount; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-08-19 12:23:00 UTC; 19s ago
Where: /snap/core/7396
What: /var/lib/snapd/snaps/core_7396.snap
Process: 27836 ExecMount=/bin/mount /var/lib/snapd/snaps/core_7396.snap /snap/core/7396 -t squashfs (code=exited, status=32)

Aug 19 12:23:00 ns364271 systemd[1]: Mounting Mount unit for core…
Aug 19 12:23:00 ns364271 systemd[1]: snap-core-7396.mount: Mount process exited, code=exited status=32
Aug 19 12:23:00 ns364271 systemd[1]: Failed to mount Mount unit for core.
Aug 19 12:23:00 ns364271 systemd[1]: snap-core-7396.mount: Unit entered failed state.