I am trying to install NC 12 on a Synology DS 216j with Apache 2.2, PHP 5.6, MariaDB 10 following this guide:
After starting the setup I get the following message:
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver:
SQLSTATE[HY000][2002] No such file or directory
OK, thank you. I hold my hands up the information is there and I missed it!
My suggestion, for noobs like me, would be to lay out the information in the order that the set up screen requests the information as it may be a little simpler to understand.
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…
My nextcloud installation was part of HomeAssistant setup, where nextcloud is docker addon (installed through supervisor). Anyways, long story short what I needed to do is run docker ps and see the name of my mariadb container which in my case is addon_core_mariadb. Specifying it worked
I have the exact same issue. Internal server error after an update and several things haves changed in the setup since my original install and now I’m totally lost because of this issue.
Throwing in two suggestions resulting from my time-consuming but in the end successful second deployment via docker-compose on a debian server which might be helpful in one or another case:
assign a valid PUID + GUID to both within the environment variables of nextcloud and database containers and make sure that mounted directories are chowned by the user
specify the IP:PORT of the database with a / within the initial setup on the nextcloud web installer