Config.php not available after "snap install nextcloud" on pi5 with bookworm (raspbian lite x64)

Nextcloud version (eg, 20.0.5): 27.1.8snap1
Operating system and version (eg, Ubuntu 20.04): Raspberry Pi OS Lite 12 (bookworm)
Apache or nginx version (eg, Apache 2.4.25): /2.4.57 (Debian)
PHP version (eg, 7.4): 8.2.7

The issue you are facing:

I am installing via snap and every step that comes after

snap install nextcloud

seems to fail.

The config file does not get created, there is no config.php at /var/snap/nextcloud/current/nextcloud

nextcloud.occ returns a "command not found"
nextcloud.manual-install returns a "command not found"
accesing the ip of the pi5 displays the default apache landing page

So it seems the installation is borked somehow, but I don’t know where to start. I would assume raspbian lite is missing some dependencies required by nextcloud-snap?

I am getting a

[FAILED] snap.nextcloud.redis-server.service

during boot, seems to be related to not having a swap partition defined by default in raspbian.

nextcloud.redis-server[1497]: <jemalloc>: Unsupported system page size

This was fixed by adding

kernel=kernel8.img

to

/boot/firmware/config.txt

the config files are now present in

/var/snap/nextcloud/current/nextcloud/config

I still can’t proceed with the installation, bash missing comands.

I have made a fresh install, making sure:

  • a swap partition was present
  • added kernel=kernel8.img in /boot/firmware/config.txt

I can now install the snap and can access the web interface.

But all CLI commands are missing, for example:

nextcloud.enable-https lets-encrypt

I will make a new thread.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.