Problem: Nextcloud, the server encountered an internal error

Problem

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

Environment

UCS: 5.0-1 errata251

Solution

If postgres functions normally Check if postgress is listening 172.17.42.1,

root@yourserver:~# ucr search  postgres9/listenaddress

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

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

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

Mastodon