Nextcloud 22.2.0.2 Internal Server error nach Aufspielen einer img-Datei

Hallo,

Ich nutze NC auf einem Raspi 4. Nachdem gestern meine SD-Karte defekt war wollte ich ein Image von letzter Woche auf eine andere Karte ziehen.
Beim starten von Nextcloud erhielt ich die Meldung “Internal Server Error”.

In der Error.log fand ich folgende Einträge:

#0 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/html/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/h" while reading response header from upstream, client: 92.116.149.116, server: cloud.burre.de, request: "GET /remote.php/dav/calendars/rainer/abfallkalender-1/?export HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "cloud.burre.de"
2021/11/08 11:00:24 [error] 707#707: *19 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught 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/html/lib/private/DB/Connection.php:87
Stack trace:
#0 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/html/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/h" while reading response header from upstream, client: 92.116.149.116, server: cloud.burre.de, request: "GET /remote.php/dav/calendars/rainer/abfallkalender-1/?export HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "cloud.burre.de"

Ich benutze PostgreSQL als DB.

Meine config.php:

<?php
$CONFIG = array (
  'instanceid' => 'oci52nowjach',
  'passwordsalt' => 'oYqbQDAeHyPn83Z082ibBvWUArmCpg',
  'secret' => 'H6dYMiE4sAGPqJQGOyEWRJlSF8WZkjpYI5yxFk1lpV9RSQjm',
  'trusted_domains' => 
  array (
    0 => 'myDomain.de',
    1 => '192.168.2.*',
  ),
  'datadirectory' => '/media/shares/cloud/data',
  'dbtype' => 'pgsql',
  'default_phone_region' => 'DE',
  'version' => '22.2.0.2',
  'overwrite.cli.url' => 'https://myDomain.de',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'DBPASS',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'log_type' => 'file',
  'logtimezone' => 'Europe/Berlin',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'logfilemode' => 416,
  'loglevel' => 2,
  'log_rotate_size' => 104857600,
  'syslog_tag' => 'Nextcloud',
  'theme' => '',
  'updater.release.channel' => 'stable',
);

Gruß
Rainer