Kann nextcloud nicht als snap auf debian stretch installieren

Hallo,

ich möchte auf einem rpi3 auf dem ein debian stretch läuft vorzugsweise nextcloud als snap alternativ auch als docker image installieren.

Als Grundsystem verwende ich OpenMediaVault 4, welches wie gesagt auf debian stretch mit dem Kernel 4.9.80-v7+ läuft.

Wenn ich dann die Snap Variante starten möchte, bekomme ich folgendes im syslog angezeigt:

Mar 19 19:28:00 storage nextcloud.mysql[27773]: Starting MySQL
Mar 19 19:28:00 storage nextcloud.mysql[27773]:  *
Mar 19 19:28:00 storage nextcloud.mysql[27773]: sed: can't read /var/snap/nextcloud/5633/mysql/root.ini: No such file or directory
Mar 19 19:28:00 storage nextcloud.mysql[27773]: Checking/upgrading mysql tables if necessary...
Mar 19 19:28:00 storage nextcloud.mysql[27773]: mysql_upgrade: [ERROR] Could not open required defaults file: /var/snap/nextcloud/5633/mysql/root.ini
Mar 19 19:28:00 storage nextcloud.mysql[27773]: mysql_upgrade: [ERROR] Fatal error in defaults handling. Program aborted!
Mar 19 19:28:00 storage nextcloud.mysql[27773]: Upgrade process encountered error and will not continue.
Mar 19 19:28:00 storage /usr/bin/snap[27819]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Mar 19 19:28:00 storage nextcloud.mysql[27819]:  * MySQL server process #27565 is not running!
Mar 19 19:28:03 storage nextcloud.php-fpm[27720]: Obtaining nextcloud mysql credentials...
Mar 19 19:28:03 storage nextcloud.php-fpm[27720]: Timed out while attempting to obtain nextcloud mysql password. This isn't unusual when starting up for the first time after an install or an upgrade. Will try again.
Mar 19 19:28:03 storage systemd[1]: snap.nextcloud.php-fpm.service: Main process exited, code=exited, status=1/FAILURE
Mar 19 19:28:03 storage systemd[1]: snap.nextcloud.php-fpm.service: Unit entered failed state.
Mar 19 19:28:03 storage systemd[1]: snap.nextcloud.php-fpm.service: Failed with result 'exit-code'.
Mar 19 19:28:03 storage systemd[1]: snap.nextcloud.php-fpm.service: Service hold-off time over, scheduling restart.
Mar 19 19:28:03 storage systemd[1]: Stopped Service for snap application nextcloud.php-fpm.
Mar 19 19:28:03 storage systemd[1]: Started Service for snap application nextcloud.php-fpm.
Mar 19 19:28:03 storage /usr/bin/snap[28053]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Mar 19 19:28:13 storage nextcloud.php-fpm[28053]: Obtaining nextcloud mysql credentials...
Mar 19 19:28:13 storage nextcloud.php-fpm[28053]: Timed out while attempting to obtain nextcloud mysql password. This isn't unusual when starting up for the first time after an install or an upgrade. Will try again.
Mar 19 19:28:13 storage systemd[1]: snap.nextcloud.php-fpm.service: Main process exited, code=exited, status=1/FAILURE
Mar 19 19:28:13 storage systemd[1]: snap.nextcloud.php-fpm.service: Unit entered failed state.
Mar 19 19:28:13 storage systemd[1]: snap.nextcloud.php-fpm.service: Failed with result 'exit-code'.
Mar 19 19:28:14 storage systemd[1]: snap.nextcloud.php-fpm.service: Service hold-off time over, scheduling restart.
Mar 19 19:28:14 storage systemd[1]: Stopped Service for snap application nextcloud.php-fpm.
Mar 19 19:28:14 storage systemd[1]: Started Service for snap application nextcloud.php-fpm.
Mar 19 19:28:14 storage /usr/bin/snap[28119]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Mar 19 19:28:24 storage nextcloud.php-fpm[28119]: Obtaining nextcloud mysql credentials...
Mar 19 19:28:24 storage nextcloud.php-fpm[28119]: Timed out while attempting to obtain nextcloud mysql password. This isn't unusual when starting up for the first time after an install or an upgrade. Will try again.
Mar 19 19:28:24 storage systemd[1]: snap.nextcloud.php-fpm.service: Main process exited, code=exited, status=1/FAILURE
Mar 19 19:28:24 storage systemd[1]: snap.nextcloud.php-fpm.service: Unit entered failed state.
Mar 19 19:28:24 storage systemd[1]: snap.nextcloud.php-fpm.service: Failed with result 'exit-code'.
Mar 19 19:28:24 storage systemd[1]: snap.nextcloud.php-fpm.service: Service hold-off time over, scheduling restart.
Mar 19 19:28:24 storage systemd[1]: Stopped Service for snap application nextcloud.php-fpm.
Mar 19 19:28:24 storage systemd[1]: Started Service for snap application nextcloud.php-fpm.
Mar 19 19:28:24 storage /usr/bin/snap[28180]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Mar 19 19:28:31 storage systemd[1]: snap.nextcloud.mysql.service: State 'stop-sigterm' timed out. Killing.
Mar 19 19:28:31 storage systemd[1]: snap.nextcloud.mysql.service: Killing process 27803 (mysqld_safe) with signal SIGKILL.
Mar 19 19:28:31 storage systemd[1]: snap.nextcloud.mysql.service: Killing process 28002 (mysqld) with signal SIGKILL.
Mar 19 19:28:31 storage systemd[1]: snap.nextcloud.mysql.service: Unit entered failed state.
Mar 19 19:28:31 storage systemd[1]: snap.nextcloud.mysql.service: Failed with result 'timeout'.
Mar 19 19:28:31 storage systemd[1]: snap.nextcloud.mysql.service: Service hold-off time over, scheduling restart.
Mar 19 19:28:31 storage systemd[1]: Stopped Service for snap application nextcloud.mysql.
Mar 19 19:28:31 storage systemd[1]: Started Service for snap application nextcloud.mysql.
Mar 19 19:28:31 storage /usr/bin/snap[28231]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Mar 19 19:28:31 storage nextcloud.mysql[28231]: 2018-03-19T18:28:31.867946Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
Mar 19 19:28:31 storage nextcloud.mysql[28231]: 2018-03-19T18:28:31.875917Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
Mar 19 19:28:31 storage nextcloud.mysql[28231]: 2018-03-19T18:28:31.879572Z 0 [ERROR] Aborting
Mar 19 19:28:31 storage nextcloud.mysql[28231]: Starting MySQL

Wenn ich es nun mit dem docker image probiere (habe die snap vorher deinstalliert), dann bekomme ich folgendes angezeigt.

docker logs -f nextcloudpi
/run-parts.sh: line 43: /etc/services-enabled.d/010lamp: Permission denied
/run-parts.sh: line 43: /etc/services-enabled.d/020nextcloud: Permission denied
Init done 

Habt ihr eine Idee woran das liegen könnte?

Viele Grüße

Ok, ich musste es einfach nochmal probieren. Keine Ahnung, warum es beim ersten Mal nicht geklappt hat.