nextcloud: File not found.
When I tried to access Nextcloud today, I was given a page that just says "File not found." Also, the "Access URL" diagnostics are failing.
Attempting to repair the app results in the following error:
Error running action: nextcloud..setup(): CalledProcessError(1, ["podman", "exec", "--user", "www-data", "nextcloud-freedombox", "/var/www/html/occ", "maintenance:update:htaccess"])
Stdout:
│ nextcloud-freedombox
│ e78c107f9506490ccd13d7c4c58e0616207ee0788d74f3adeb041671924cdb8d
│
│ Set mode for background jobs to 'cron'
│ System config value htaccess.RewriteBase set to string /nextcloud
│ System config value htaccess.IgnoreFrontController set to boolean true
│ Error updating .htaccess file, not enough permissions, not enough free space or "overwrite.cli.url" set to an invalid URL?
Stderr:
║ Failed to stop nextcloud-freedombox-volume.service: Unit nextcloud-freedombox-volume.service not loaded.
║ Trying to pull docker.io/library/nextcloud:stable-fpm...
║ Getting image source signatures
║ Copying blob sha256:9c76e06bf7fd290d23427a0d954d83319263c9f2e4bad77c0ad54539b8656079
║ Copying blob sha256:f11c1adaa26e078479ccdd45312ea3b88476441b91be0ec898a7e07bfd05badc
║ Copying blob sha256:91c1fd48de30b16f5766e6ac96a6fe3c0b3241c34c93fe82ddc8a8536729dd53
║ Copying blob sha256:c3b3bda7c6d1ae6620633030596609872e7f2b102e3f274f02c71ee92e136cb7
║ Copying blob sha256:65a68eb681dd3cc5f145cf854bf049843298d6ee06c3259ddff5bf4793710a80
║ Copying blob sha256:dd3170f7239b4119b0087afdcc4da90ada42ff8fe7d409f9545146ec0cdff07f
║ Copying blob sha256:9999e322735d813d68bc7f17023e85ff5fe0500a5e9d40f186dab18c46fbe37e
║ Copying blob sha256:01bbb892568abf567e6497e28d08a75f1fee631804226d217c31d29ce316e683
║ Copying blob sha256:7688859f738e0a20d1f3cbad0adb7e75ff8ae7847006bead3dba899dce9f49ef
║ Copying blob sha256:0ec9d1bf51ee94f2f7304476f1b58cb1ce3e4ab8fdb768759b2d2a14c386029e
║ Copying blob sha256:a48b56f4d9a28cc6f3b9a416e95f1a3cff7076a5a1fa855f15c7893e45c27501
║ Copying blob sha256:eb24d93c88e79b6ac82262aec5a84db14953086a2858e94a5d49dd9f1b7acddb
║ Copying blob sha256:fb371d4df37cc6156ef975d23ed640fb9ccc9c255320722157f9978d8b0e04c0
║ Copying blob sha256:4672f0369a02330fd908a8115187f3338106025af088079a0a21fe48086efb72
║ Copying blob sha256:fffbd9baf02356f8c555ea67283aaecd11bebe581dd51b5e7b3b78022877183a
║ Copying blob sha256:61b87b122d3b9c51a552077a23423cffb5231e0425125dea98165282d22e7501
║ Copying config sha256:e78c107f9506490ccd13d7c4c58e0616207ee0788d74f3adeb041671924cdb8d
║ Writing manifest to image destination
║ Storing signatures
Action traceback:
╞ File "/usr/lib/python3/dist-packages/plinth/actions.py", line 331, in _privileged_call
╞ return_values = func(*arguments['args'], **arguments['kwargs'])
╞ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╞ File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 68, in setup
╞ _nextcloud_setup_wizard(database_password)
╞ File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 252, in _nextcloud_setup_wizard
╞ _run_occ('maintenance:update:htaccess')
╞ File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 86, in _run_occ
╞ return _run_in_container('/var/www/html/occ', *args, **kwargs)
╞ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╞ File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 81, in _run_in_container
╞ return subprocess.run(command, capture_output=capture_output, check=check)
╞ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╞ File "/usr/lib/python3.11/subprocess.py", line 571, in run
╞ raise CalledProcessError(retcode, process.args,
I can see there are .htaccess files in the following locations:
root@freedombox:/var/lib/nextcloud# locate .htaccess | grep nextcloud | xargs ls -al
-rw-r--r-- 1 nobody nogroup 495 Jun 25 06:10 /var/lib/containers/storage/overlay/1cc03b5502baa38b6207dd5aa2add5db2ce693db16fc4473c9697d4ffd537a9c/merged/usr/src/nextcloud/config/.htaccess
-rw-r--r-- 1 nobody nogroup 3954 Jun 25 06:10 /var/lib/containers/storage/overlay/1cc03b5502baa38b6207dd5aa2add5db2ce693db16fc4473c9697d4ffd537a9c/merged/usr/src/nextcloud/.htaccess
-rw-r--r-- 1 nobody nogroup 495 Jun 25 06:10 /var/lib/containers/storage/overlay/35ccdd3454f774e19cc12166c8126129479957e94e3bf571e0bbed1136477bb4/diff/usr/src/nextcloud/config/.htaccess
-rw-r--r-- 1 nobody nogroup 3954 Jun 25 06:10 /var/lib/containers/storage/overlay/35ccdd3454f774e19cc12166c8126129479957e94e3bf571e0bbed1136477bb4/diff/usr/src/nextcloud/.htaccess
-rw-r--r-- 1 nobody nogroup 495 Jun 25 06:10 /var/lib/containers/storage/overlay/3f75595783f311c93e849c62360aa42c6b1ef80ffaae9b29506adb20ac5ef4e3/diff/usr/src/nextcloud/config/.htaccess
-rw-r--r-- 1 nobody nogroup 3954 Jun 25 06:10 /var/lib/containers/storage/overlay/3f75595783f311c93e849c62360aa42c6b1ef80ffaae9b29506adb20ac5ef4e3/diff/usr/src/nextcloud/.htaccess
-rw-r--r-- 1 www-data www-data 495 Jun 9 09:13 /var/lib/containers/storage/volumes/nextcloud-freedombox/_data/config/.htaccess
-rw-r--r-- 1 www-data www-data 542 Jul 4 00:05 /var/lib/containers/storage/volumes/nextcloud-freedombox/_data/data/.htaccess
-rw-r--r-- 1 www-data www-data 3954 Jul 4 00:04 /var/lib/containers/storage/volumes/nextcloud-freedombox/_data/.htaccess
-rw-r--r-- 1 www-data www-data 495 Jun 9 09:13 /var/lib/nextcloud/config/.htaccess
-rw-r--r-- 1 www-data www-data 542 Jul 4 00:05 /var/lib/nextcloud/data/.htaccess
-rw-r--r-- 1 www-data www-data 3954 Jul 4 00:04 /var/lib/nextcloud/.htaccess
Edited by James Valleroy