Page 1 of 1

Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 14 Oct 2023, 01:45
by kdewald
Hi!

I've been trying to set up OpenCATS within a docker environment and I'm running against the following error (See attached screenshots)
"Cannot connect to database" - "No such file or directory"

Is there a way I can get logs from PHP that I can inspect to see what's going on?

I've also included my entire docker compose setup to test this, which can be run using `docker compose up --build`

Thanks for the help! I'm looking forward to test this out :D

Re: Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 12 Feb 2024, 06:49
by poodleburger
connections gameI'm also wondering what happened because I seem to be having the same problem as you.

Re: Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 16 Feb 2024, 13:39
by manuel
Could it be he's and maybe you also are using not PHP7.2 but a higher not tested version .?

Re: Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 16 Feb 2024, 18:59
by kdewald
That's why I included the Dockerfile I was using, to make sure I an get a reproducible build.

Re: Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 17 May 2024, 09:42
by rosiewilsonnsjh
connections game You can try using a debugging tool like xdebug to step through your application code and identify the root cause of the issue. This can be set up in your Docker environment as well.

Re: Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 04 Jul 2024, 05:33
by bekeanloinse
Ensure that the xdebug extension is installed and enabled in your Docker container. You typically do this by including the appropriate commands in your Dockerfile or docker-compose.yml file.
wordle

Re: Error during installation: "Cannot connect to database" - "No such file or directory"

Posted: 26 Jun 2025, 02:37
by Sarahli88
It's interesting how subtle environment issues can cause database connection problems. I wonder if anyone has considered if the error might be related to some kind of sprunki phase transition affecting the database availability during the setup process. Has anyone checked the database server logs directly?