Environment: NS8 on Debian 11.7.0 on 2 nodes installed from ISO in Proxmox
After finishing the Nextcloud migration the ns8-action is stuck at 33%
NS8 /var/log/messages:
May 14 10:59:45 node1 nextcloud1[5627]: New nextcloud instance
May 14 10:59:45 node1 nextcloud1[5627]: Installing with MySQL database
May 14 10:59:45 node1 nextcloud1[5627]: Starting nextcloud installation
May 14 10:59:46 node1 podman[6141]: 2023-05-14 10:59:46.433832585 +0200 CEST m=+0.799223614 container exec 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.23.1)
May 14 10:59:46 node1 traefik1[818]: 192.168.3.159 - - [14/May/2023:08:59:45 +0000] "GET /cluster-admin/api/module/nextcloud1/task/fa3b3bd6-350b-4728-bde8-f4e560a8ffbf/context HTTP/2.0" 200 348 "-" "-" 1008 "ApiServer-https@redis" "http://127.0.0.1:9311" 540ms
May 14 10:59:46 node1 nextcloud1[5627]: Your data directory is not writable.
May 14 10:59:46 node1 nextcloud1[5627]: Permissions can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/26/go.php?to=admin-dir_permissions.
May 14 10:59:46 node1 nextcloud1[5627]:
May 14 10:59:46 node1 nextcloud1[5627]: An unhandled exception has been thrown:
May 14 10:59:46 node1 nextcloud1[5627]: Exception: Environment not properly prepared. in /var/www/html/lib/private/Console/Application.php:167
May 14 10:59:46 node1 nextcloud1[5627]: Stack trace:
May 14 10:59:46 node1 nextcloud1[5627]: #0 /var/www/html/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
May 14 10:59:46 node1 nextcloud1[5627]: #1 /var/www/html/occ(11): require_once('/var/www/html/c...')
May 14 10:59:46 node1 nextcloud1[5627]: #2 {main}Retrying install...
May 14 10:59:47 node1 podman[6141]: 2023-05-14 10:59:47.025479881 +0200 CEST m=+1.390871123 container exec_died 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, execID=8dd5b68a68fe49abd76cb26c22d94e38e7ea14d0e4d2fa22f032e02d163b55a2)
May 14 10:59:50 node1 traefik1[818]: 192.168.3.159 - - [14/May/2023:08:59:50 +0000] "GET /cluster-admin/api/module/nextcloud1/task/fa3b3bd6-350b-4728-bde8-f4e560a8ffbf/context HTTP/2.0" 200 348 "-" "-" 1009 "ApiServer-https@redis" "http://127.0.0.1:9311" 34ms
May 14 10:59:52 node1 podman[6213]: 2023-05-14 10:59:52.350181755 +0200 CEST m=+0.158254766 container exec 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.23.1)
May 14 10:59:52 node1 podman[6213]: 2023-05-14 10:59:52.76967327 +0200 CEST m=+0.577746329 container exec_died 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, execID=ad06f44664c0f5970f8eeef777fd27aeb5e5f63662546a12cd7baca4c186309a)
May 14 10:59:55 node1 traefik1[818]: 192.168.3.159 - - [14/May/2023:08:59:55 +0000] "GET /cluster-admin/api/module/nextcloud1/task/fa3b3bd6-350b-4728-bde8-f4e560a8ffbf/context HTTP/2.0" 200 348 "-" "-" 1010 "ApiServer-https@redis" "http://127.0.0.1:9311" 41ms
May 14 10:59:57 node1 nextcloud1[5627]: Your data directory is not writable.
May 14 10:59:57 node1 nextcloud1[5627]: Permissions can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/26/go.php?to=admin-dir_permissions.
May 14 10:59:57 node1 nextcloud1[5627]:
May 14 10:59:57 node1 nextcloud1[5627]: An unhandled exception has been thrown:
May 14 10:59:57 node1 nextcloud1[5627]: Exception: Environment not properly prepared. in /var/www/html/lib/private/Console/Application.php:167
May 14 10:59:57 node1 nextcloud1[5627]: Stack trace:
May 14 10:59:57 node1 nextcloud1[5627]: #0 /var/www/html/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
May 14 10:59:57 node1 nextcloud1[5627]: #1 /var/www/html/occ(11): require_once('/var/www/html/c...')
May 14 10:59:57 node1 nextcloud1[5627]: #2 {main}Retrying install...
May 14 10:59:58 node1 podman[6288]: 2023-05-14 10:59:58.036521913 +0200 CEST m=+0.140257827 container exec 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.23.1)
May 14 10:59:58 node1 podman[6288]: 2023-05-14 10:59:58.485609322 +0200 CEST m=+0.589345498 container exec_died 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, execID=47cf8aae802184614bd57ce1a4a34f7578065ab3caa130a63bc4c271f9883909)
May 14 10:59:59 node1 traefik1[818]: 192.168.3.159 - - [14/May/2023:08:59:59 +0000] "POST /api/v4/users/status/ids HTTP/2.0" 200 123 "-" "-" 1011 "mattermost1-https@redis" "http://127.0.0.1:20009" 1ms
May 14 11:00:00 node1 traefik1[818]: 192.168.3.159 - - [14/May/2023:09:00:00 +0000] "GET /cluster-admin/api/module/nextcloud1/task/fa3b3bd6-350b-4728-bde8-f4e560a8ffbf/context HTTP/2.0" 200 348 "-" "-" 1012 "ApiServer-https@redis" "http://127.0.0.1:9311" 16ms
May 14 11:00:03 node1 podman[6357]: 2023-05-14 11:00:03.75769704 +0200 CEST m=+0.149970212 container exec 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.23.1)
May 14 11:00:04 node1 podman[6357]: 2023-05-14 11:00:04.213279391 +0200 CEST m=+0.605552601 container exec_died 2f9a80bdcd0ca96f4ffc6ecedb2d2a46068f17aaae0c2e7d19713d83cc0cc9fc (image=ghcr.io/nethserver/nextcloud-app:1.0.0, name=nextcloud-app, execID=95ac36fe8503864e7b8569713dbc80a5077181a17e2ea5f0bc5c81b8c4563c28)
May 14 11:00:05 node1 traefik1[818]: 192.168.3.159 - - [14/May/2023:09:00:05 +0000] "GET /cluster-admin/api/module/nextcloud1/task/fa3b3bd6-350b-4728-bde8-f4e560a8ffbf/context HTTP/2.0" 200 348 "-" "-" 1013 "ApiServer-https@redis" "http://127.0.0.1:9311" 22ms
May 14 11:00:07 node1 nextcloud1[5627]: Your data directory is not writable.
May 14 11:00:07 node1 nextcloud1[5627]: Permissions can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/26/go.php?to=admin-dir_permissions.
May 14 11:00:07 node1 nextcloud1[5627]:
May 14 11:00:07 node1 nextcloud1[5627]: An unhandled exception has been thrown:
May 14 11:00:07 node1 nextcloud1[5627]: Exception: Environment not properly prepared. in /var/www/html/lib/private/Console/Application.php:167
May 14 11:00:07 node1 nextcloud1[5627]: Stack trace:
May 14 11:00:07 node1 nextcloud1[5627]: #0 /var/www/html/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
May 14 11:00:07 node1 nextcloud1[5627]: #1 /var/www/html/occ(11): require_once('/var/www/html/c...')
May 14 11:00:07 node1 nextcloud1[5627]: #2 {main}Retrying install...
NS7 side:
Copied command from cockpit:
[root@testserver ~]# echo '{"app":"nethserver-nextcloud","action":"finish","migrationConfig":{"virtualHost":"nextcloud.ns8.domain.tld"}}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-ns8-migration/migration/update | jq
{
"progress": "0.00",
"time": "0.0",
"exit": 0,
"event": "migration-sync",
"state": "running",
"step": 0,
"pid": 0,
"action": ""
}
rsync: failed to connect to 10.5.4.1 (10.5.4.1): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(126) [sender=3.1.2]
EDIT:
In Alma Linux 9.2 I got the same repeating error after finishing the Nextcloud migration:
May 14 23:06:05 alma1 nextcloud1[3546]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
May 14 23:06:05 alma1 nextcloud1[3546]: You may use your browser or the occ upgrade command to do the upgrade
May 14 23:06:05 alma1 nextcloud1[3546]: {"reqId":"DKabknPACivnokn2x2ty","level":3,"time":"2023-05-14T21:06:05+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/var/www/html/data/data_dir_writability_test_64614d3d2b366.tmp): Failed to open stream: Permission denied at /var/www/html/lib/private/legacy/OC_Util.php#581","userAgent":"--","version":"25.0.6.1","data":{"app":"PHP"}}
May 14 23:06:05 alma1 nextcloud1[3546]: parse error: Invalid numeric literal at line 1, column 5
May 14 23:06:05 alma1 nextcloud1[3546]: {"reqId":"DKabknPACivnokn2x2ty","level":3,"time":"2023-05-14T21:06:05+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/var/www/html/data/nextcloud.log): Failed to open stream: Permission denied at /var/www/html/lib/private/Log/File.php#84","userAgent":"--","version":"25.0.6.1","data":{"app":"PHP"}}
May 14 23:06:06 alma1 nextcloud1[4821]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
May 14 23:06:06 alma1 nextcloud1[4821]: You may use your browser or the occ upgrade command to do the upgrade
May 14 23:06:06 alma1 nextcloud1[4821]: {"reqId":"3S9yi0NI72nJjlATLzMM","level":3,"time":"2023-05-14T21:06:06+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/var/www/html/data/data_dir_writability_test_64614d3e2d1b9.tmp): Failed to open stream: Permission denied at /var/www/html/lib/private/legacy/OC_Util.php#581","userAgent":"--","version":"25.0.6.1","data":{"app":"PHP"}}
May 14 23:06:06 alma1 nextcloud1[4821]: Your data directory is not writable.
May 14 23:06:06 alma1 nextcloud1[4821]: Permissions can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/26/go.php?to=admin-dir_permissions.
May 14 23:06:06 alma1 nextcloud1[4821]:
May 14 23:06:06 alma1 nextcloud1[4821]: An unhandled exception has been thrown:
May 14 23:06:06 alma1 nextcloud1[4821]: Exception: Environment not properly prepared. in /var/www/html/lib/private/Console/Application.php:167
May 14 23:06:06 alma1 nextcloud1[4821]: Stack trace:
May 14 23:06:06 alma1 nextcloud1[4821]: #0 /var/www/html/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
May 14 23:06:06 alma1 nextcloud1[4821]: #1 /var/www/html/occ(11): require_once('/var/www/html/c...')
May 14 23:06:06 alma1 nextcloud1[4821]: {"reqId":"3S9yi0NI72nJjlATLzMM","level":3,"time":"2023-05-14T21:06:06+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/var/www/html/data/nextcloud.log): Failed to open stream: Permission denied at /var/www/html/lib/private/Log/File.php#84","userAgent":"--","version":"25.0.6.1","data":{"app":"PHP"}}
May 14 23:06:06 alma1 nextcloud1[4821]: #2 {main}Installing of nextcloud failed!```