Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 27.0.1_1.6.36
Operating system and version (eg, Ubuntu 20.04): Truenas Scale
Apache or nginx version (eg, Apache 2.4.25): 1.23.3
PHP version (eg, 7.4): replace me
The issue you are facing:
After installing the new version, I can’t start the application because it gets stuck in an error in the nextcloud-posrgres POD with the attached error.
I have tried deleting the application and containers, and install in the same path, but I get the same error.
I understand that it may be a permissions problem, if so how come it worked with the previous version?
Any suggestions?
Thanks.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install the new version 27.0.1_1.6.36.
The output of your Nextcloud log in Admin > Logging:
2023-07-26T13:13:06.393384417Z The files belonging to this database system will be owned by user "postgres".
2023-07-26T13:13:06.393415136Z This user must also own the server process.
2023-07-26T13:13:06.393420828Z
2023-07-26T13:13:06.393479609Z The database cluster will be initialized with locale "en_US.utf8".
2023-07-26T13:13:06.393493682Z The default database encoding has accordingly been set to "UTF8".
2023-07-26T13:13:06.393504711Z The default text search configuration will be set to "english".
2023-07-26T13:13:06.393509375Z
2023-07-26T13:13:06.393512958Z Data page checksums are disabled.
2023-07-26T13:13:06.393516674Z
2023-07-26T13:13:06.393604694Z fixing permissions on existing directory /var/lib/postgresql/data ... ok
2023-07-26T13:13:06.394067440Z creating subdirectories ... ok
2023-07-26T13:13:06.394176022Z selecting dynamic shared memory implementation ... posix
2023-07-26T13:13:06.404749987Z selecting default max_connections ... 100
2023-07-26T13:13:06.415291136Z selecting default shared_buffers ... 128MB
2023-07-26T13:13:06.428316025Z selecting default time zone ... Etc/UTC
2023-07-26T13:13:06.428906295Z creating configuration files ... ok
2023-07-26T13:13:06.519252519Z running bootstrap script ... ok
2023-07-26T13:13:06.800139770Z performing post-bootstrap initialization ... ok
2023-07-26T13:13:07.164408229Z syncing data to disk ... ok
2023-07-26T13:13:07.164535139Z
2023-07-26T13:13:07.164481646Z initdb: warning: enabling "trust" authentication for local connections
2023-07-26T13:13:07.164645340Z You can change this by editing pg_hba.conf or using the option -A, or
2023-07-26T13:13:07.164683708Z --auth-local and --auth-host, the next time you run initdb.
2023-07-26T13:13:07.164562866Z
2023-07-26T13:13:07.164785280Z Success. You can now start the database server using:
2023-07-26T13:13:07.164812894Z
2023-07-26T13:13:07.164838048Z pg_ctl -D /var/lib/postgresql/data -l logfile start
2023-07-26T13:13:07.164864254Z
2023-07-26T13:13:07.251907782Z waiting for server to start....2023-07-26 13:13:07.251 UTC [47] LOG: starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2023-07-26T13:13:07.264457180Z 2023-07-26 13:13:07.264 UTC [47] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-26T13:13:07.296586629Z 2023-07-26 13:13:07.296 UTC [48] LOG: database system was shut down at 2023-07-26 13:13:06 UTC
2023-07-26T13:13:07.317405943Z 2023-07-26 13:13:07.317 UTC [47] LOG: database system is ready to accept connections
2023-07-26T13:13:07.398384962Z done
2023-07-26T13:13:07.398449773Z server started
2023-07-26T13:13:11.871002918Z CREATE DATABASE
2023-07-26T13:13:11.872417861Z
2023-07-26T13:13:11.872888410Z
2023-07-26T13:13:11.872949537Z /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2023-07-26T13:13:11.872971522Z
2023-07-26T13:13:11.875507982Z 2023-07-26 13:13:11.875 UTC [47] LOG: received fast shutdown request
2023-07-26T13:13:11.880923872Z waiting for server to shut down....2023-07-26 13:13:11.880 UTC [47] LOG: aborting any active transactions
2023-07-26T13:13:11.883576006Z 2023-07-26 13:13:11.883 UTC [47] LOG: background worker "logical replication launcher" (PID 54) exited with exit code 1
2023-07-26T13:13:11.883691226Z 2023-07-26 13:13:11.883 UTC [49] LOG: shutting down
2023-07-26T13:13:11.953245241Z 2023-07-26 13:13:11.953 UTC [47] LOG: database system is shut down
2023-07-26T13:13:11.976299545Z done
2023-07-26T13:13:11.976468345Z server stopped
2023-07-26T13:13:11.977008893Z
2023-07-26T13:13:11.977079738Z PostgreSQL init process complete; ready for start up.
2023-07-26T13:13:11.977122294Z
2023-07-26T13:13:12.308507472Z 2023-07-26 13:13:12.308 UTC [1] LOG: starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2023-07-26T13:13:12.308576879Z 2023-07-26 13:13:12.308 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-07-26T13:13:12.308590057Z 2023-07-26 13:13:12.308 UTC [1] LOG: listening on IPv6 address "::", port 5432
2023-07-26T13:13:12.552690602Z 2023-07-26 13:13:12.552 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-26T13:13:12.578966960Z 2023-07-26 13:13:12.578 UTC [75] LOG: database system was shut down at 2023-07-26 13:13:11 UTC
2023-07-26T13:13:12.593018979Z 2023-07-26 13:13:12.592 UTC [1] LOG: database system is ready to accept connections
2023-07-26T13:14:26.540463256Z 2023-07-26 13:14:26.540 UTC [212] FATAL: password authentication failed for user "oc_admin"
2023-07-26T13:14:26.540512557Z 2023-07-26 13:14:26.540 UTC [212] DETAIL: Role "oc_admin" does not exist.
2023-07-26T13:14:26.540518361Z Connection matched pg_hba.conf line 99: "host all all all md5"
2023-07-26T13:14:26.547502411Z 2023-07-26 13:14:26.547 UTC [213] FATAL: password authentication failed for user "oc_admin"
2023-07-26T13:14:26.547533802Z 2023-07-26 13:14:26.547 UTC [213] DETAIL: Role "oc_admin" does not exist.
2023-07-26T13:14:26.547539159Z Connection matched pg_hba.conf line 99: "host all all all md5"
2023-07-26T13:14:31.410444169Z 2023-07-26 13:14:31.410 UTC [214] FATAL: password authentication failed for user "oc_admin"
2023-07-26T13:14:31.410553272Z 2023-07-26 13:14:31.410 UTC [214] DETAIL: Role "oc_admin" does not exist.
2023-07-26T13:14:31.410580314Z Connection matched pg_hba.conf line 99: "host all all all md5"
2023-07-26T13:14:31.417423252Z 2023-07-26 13:14:31.417 UTC [215] FATAL: password authentication failed for user "oc_admin"
2023-07-26T13:14:31.417497208Z 2023-07-26 13:14:31.417 UTC [215] DETAIL: Role "oc_admin" does not exist.
2023-07-26T13:14:31.417578694Z Connection matched pg_hba.conf line 99: "host all all all md5"
2023-07-26T13:14:36.398204921Z 2023-07-26 13:14:36.398 UTC [216] FATAL: password authentication failed for user "oc_admin"
2023-07-26T13:14:36.398242064Z 2023-07-26 13:14:36.398 UTC [216] DETAIL: Role "oc_admin" does not exist.
2023-07-26T13:14:36.398260610Z Connection matched pg_hba.conf line 99: "host all all all md5"
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,
),
),
'instanceid' => 'ochzeb2yjwem',
'passwordsalt' => '0i26CGMGnPXL/QeLVHmhLRiD0cZqRY',
'secret' => 'q6Eb7/hAjeJzcxeIK5yhaApJtihHNEvZWVxtqB7mwBcSeG+s',
'trusted_domains' =>
array (
0 => '192.168.0.140:9002'
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'version' => '27.0.1.2',
'overwrite.cli.url' => 'http://192.168.0.140:9002',
'dbname' => 'nextcloud',
'dbhost' => 'nextcloud-postgres:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_admin',
'dbpassword' => 'uPo7Wqo1nJZ0EhgITwlh1h4wfI5saa',
'installed' => true,
'updater.secret' => '$2y$10$JsndYOEAJjcQ3HXXB9MbDOeVbAzdoNebDxj8eywx.cRErIYn..ooW',
'loglevel' => 2,
'maintenance' => false,
);
The output of your Apache/nginx/system log in /var/log/____
:
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{"reqId":"eqWWPZ1nUscezh5Lk1rB","level":3,"time":"2023-07-26T12:34:08+00:00","remoteAddr":"172.16.0.1","user":"--","app":"remote","method":"GET","url":"/status.php","message":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","userAgent":"kube-probe/1.25","version":"","exception":{"Exception":"OCP\\HintException","Message":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Config.php","line":143,"function":"writeData","class":"OC\\Config","type":"->","args":[]},{"file":"/var/www/html/lib/private/SystemConfig.php","line":145,"function":"setValue","class":"OC\\Config","type":"->","args":["instanceid","ocyv3fjho7dk"]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":889,"function":"setValue","class":"OC\\SystemConfig","type":"->","args":["instanceid","ocyv3fjho7dk"]},{"file":"/var/www/html/lib/base.php","line":444,"function":"getInstanceId","class":"OC_Util","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":708,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":1180,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/status.php","line":37,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Config.php","Line":266,"Hint":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","CustomMessage":"--"}}
{"reqId":"nIS4abf7tKRKSfyytZNz","level":3,"time":"2023-07-26T12:34:13+00:00","remoteAddr":"172.16.0.1","user":"--","app":"remote","method":"GET","url":"/status.php","message":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","userAgent":"kube-probe/1.25","version":"","exception":{"Exception":"OCP\\HintException","Message":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Config.php","line":143,"function":"writeData","class":"OC\\Config","type":"->","args":[]},{"file":"/var/www/html/lib/private/SystemConfig.php","line":145,"function":"setValue","class":"OC\\Config","type":"->","args":["instanceid","ocwgn5trdoog"]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":889,"function":"setValue","class":"OC\\SystemConfig","type":"->","args":["instanceid","ocwgn5trdoog"]},{"file":"/var/www/html/lib/base.php","line":444,"function":"getInstanceId","class":"OC_Util","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":708,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":1180,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/status.php","line":37,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Config.php","Line":266,"Hint":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","CustomMessage":"--"}}
{"reqId":"ojcQOfOuBuevtp7XIdhu","level":3,"time":"2023-07-26T12:34:18+00:00","remoteAddr":"172.16.0.1","user":"--","app":"remote","method":"GET","url":"/status.php","message":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","userAgent":"kube-probe/1.25","version":"","exception":{"Exception":"OCP\\HintException","Message":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Config.php","line":143,"function":"writeData","class":"OC\\Config","type":"->","args":[]},{"file":"/var/www/html/lib/private/SystemConfig.php","line":145,"function":"setValue","class":"OC\\Config","type":"->","args":["instanceid","ociyhz1rcsej"]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":889,"function":"setValue","class":"OC\\SystemConfig","type":"->","args":["instanceid","ociyhz1rcsej"]},{"file":"/var/www/html/lib/base.php","line":444,"function":"getInstanceId","class":"OC_Util","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":708,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":1180,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/status.php","line":37,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Config.php","Line":266,"Hint":"Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php","CustomMessage":"--"}}