Nextcloud installation: Error while trying to create admin user

Hello.

I have used nextcloud with docker along with nextcloud, mariadb and swag some weeks for now.
Yesterday I pulled the newest image of nextcloud with the tag latest.
Then there always was an internal server error and I wasn’t able to connect to nextcloud any more.
I tried the whole day to get it to work. Nothing.
Then I decided to install all new.
I have deleted all the volumes and installed everything from the beginning.
Now, I am not able to create an user account any more.

Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again

As localhost I defined the name of the docker image of the db, which is nextclouddb in my case.
It doesn’t work any more.

I have searched the internet and I think this is not a specific error of nextcloud, it is an php problem, but I don’t know how to solve it…

2 Likes