Problem: Nextcloud, the server encountered an internal error


Nextcloud presents the following error:

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

After making sure that apache and the UCS enviroment is working we check the Nextcloud container:

root@yourserver:~# univention-app shell nextcloud
root@nextc-52345553:/# cd /var/www/html/
root@nextc-52345553:/# sudo -u www-data ./occ status

The following message ocure:

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 "" and accepting
TCP/IP connections on port 5432? in /var/www/html/lib/private/DB/Connection.php:85


UCS: 5.0-1 errata251


If postgres functions normally Check if postgress is listening,

root@yourserver:~# ucr search  postgres9/listenaddress

And set it if necessary
(Keep in mind other crucial ports!)

root@yourserver:~# ucr set  postgres9/listenaddress=','

This topic was automatically closed after 24 hours. New replies are no longer allowed.