Hey,
sadly, I am currently facing problems with my nextcloud (official app) install on trueNAS. Hopefully, someone can help me.
Nextcloud version (eg, 20.0.5): 25.0.1
Operating system and version (eg, Ubuntu 20.04): TrueNAS-SCALE-22.02.4
Apache or nginx version (eg, Apache 2.4.25): Official TrueNAS App (Apache)
PHP version (eg, 7.4): 8.1.13
The issue you are facing:
The Nextcloud App wont start properly. The containers say deployed, however the web UI shows
"
Error
Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php
"
Is this the first time you’ve seen this error? Y
Steps to replicate it:
- Starting the App
The output of your Nextcloud log in Admin > Logging: Not available! Instead the Nextcloud app log
2022-12-23 16:38:08.173064+00:00Conf remoteip disabled.
2022-12-23 16:38:08.173102+00:00To activate the new configuration, you need to run:
2022-12-23 16:38:08.173107+00:00service apache2 reload
2022-12-23 16:38:08.264247+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.1.47. Set the 'ServerName' directive globally to suppress this message
2022-12-23 16:38:08.271374+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.1.47. Set the 'ServerName' directive globally to suppress this message
2022-12-23 16:38:08.284928+00:00[Fri Dec 23 16:38:08.284851 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.1.13 configured -- resuming normal operations
2022-12-23 16:38:08.284947+00:00[Fri Dec 23 16:38:08.284879 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
2022-12-23 16:38:25.063440+00:00127.0.0.1 - - [23/Dec/2022:16:38:24 +0000] "GET / HTTP/1.1" 503 2752 "https://192.168.178.200/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15"
2022-12-23 16:43:26.161378+00:00127.0.0.1 - nils [23/Dec/2022:16:43:26 +0000] "GET /status.php HTTP/1.1" 500 397 "-" "Mozilla/5.0 (Macintosh) mirall/3.6.4git (build 12826) (Nextcloud, osx-22.1.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2022-12-23 16:43:55.228300+00:00127.0.0.1 - - [23/Dec/2022:16:43:55 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 359 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15"
2022-12-23 16:43:55.228376+00:00127.0.0.1 - - [23/Dec/2022:16:43:55 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 359 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15"
2022-12-23 16:43:55.232891+00:00127.0.0.1 - - [23/Dec/2022:16:43:55 +0000] "GET /csrftoken HTTP/1.1" 503 2752 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15"
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'passwordsalt' => 'XXX',
'secret' => 'XXX',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.178.200',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'version' => '25.0.1.1',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'nextcloud-postgres:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_nils',
'dbpassword' => 'XXX',
'installed' => true,
'instanceid' => 'XXX',
'overwritehost' => '192.168.178.200:9001',
'overwriteprotocol' => 'https',
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'maintenance' => true,
);
I wasn’t able to find any more logs useful information or non-empty logs…
Everything started with two files that could not be deleted in the web ui (“unable to delete …”) and sync client (" Server replied ‘423 Locked’ to DELETE ‘https://…’ "). There, I tried following the guide File is locked - how to unlock. Shortly after, I was met by even more problems, as explained above.
All data in the Nextcloud (except for the “deck” app) is backed up and safe. I was so far not able to back up the deck app after the general problem arose…
I would be happy for any help/information provided, as this is quite frustrating directly before Christmas. Thanks a lot in advance.
Cheers, Nils