<?php
$OC_Version = array(22,2,2,0);
$OC_VersionString = '22.2.2';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
'nextcloud' =>
array (
'21.0' => true,
'22.0' => true,
'22.1' => true,
'22.2' => true,
),
'owncloud' =>
array (
'10.5' => true,
),
);
$OC_Build = '2021-11-12T15:56:53+00:00 dad659ae720e3138a3c13580777e7a5cf4cf8743';
$vendor = 'nextcloud';
Operating system and version (eg, Ubuntu 20.04): Centos
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25
PHP version (eg, 7.4): 7.4
The issue you are facing: Nextcould try to connect on postgres servr port 5432 while 5434 is configured
Is this the first time you’ve seen this error? Y
The output of your Nextcloud log in Admin > Logging:
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432? in /var/www/nuage/lib/private/DB/Connection.php:87
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
grep db ./config/config.php
‘dbtype’ => ‘pgsql’,
‘dbname’ => ‘petitnuage’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘5434’,
‘dbtableprefix’ => ‘oc_’,
Yesterday, everything was working perfectly. I did not…, I think I did not…, do anything special since my last connection.
So, how does nextcloud look for a 5432 port while it is configured for 5434 one since the beginning a year ago !
Thanks for your help.