Well for my efforts. I bought a nextcloud box and was a little miffed that is supposed to only use a RPi2. Well that is why the included card did not boot. Oh well. Not adverse to rolling my own I thought no probs I used the Ubuntu Core build for RPi3 and just install and configure snaps myself. How hard can it be?
Well nextcloud seems to be there
snap find nextcloud
Name Version Developer Notes Summary
nextcloud 11.0.0snap3 nextcloud - Nextcloud Server
spreedme 0.29.2snap1 nextcloud - Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
qownnotes 17.01.4 pbek - Plain-text file notepad with markdown support and ownCloud integration
Cool. Just a quick snap install nextcloud then. No errors so I should be able to just login to the web interface right? Umm wrong.
Maybe I need to just get it to listen on an interface ?
snap set nextcloud listen=127.0.0.1
error: cannot perform the following tasks:
- Run configure hook of "nextcloud" snap (snap "nextcloud" has no "configure" hook)
Ouch! That does not look right?
Ahh wait look there are some files in /snap/bin that might help.
drwxr-xr-x 2 root root 4096 Jan 12 20:24 .
drwxr-xr-x 10 root root 4096 Jan 12 20:24 ..
lrwxrwxrwx 1 root root 13 Jan 12 11:31 nextcloud.disable-https -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 11:31 nextcloud.enable-https -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 11:31 nextcloud.mysql-client -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 11:31 nextcloud.occ -> /usr/bin/snap
Ahh well nextcloud.occ is what we use to configure from the command line isn’t it? Done that many times before on server installations.
Cannot write into "config" directory!
This can usually be fixed by giving the webserver write access to the config directory
Whoops… did I just make a rookie mistake and assume all snaps are root owned?!
sudo -u www-data ./nextcloud.occ
2017/01/12 22:20:01.270467 cmd_run.go:175: WARNING: cannot create user data directory: cannot create "/var/www/snap/nextcloud/550": mkdir /var/www: read-only file system
failed to create user data directory. errmsg: Read-only file system
Err… WTF? Am I missing something here? How can the snap config be read only to www-data and root does not have permissions to it either?
Well that is as far as I have gotten today. So if anyone want to weigh in what might be wrong I am all ears.