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: 08 Jul 2024, 06:27
by highkentish
To debug the "Cannot connect to database" error in your Docker setup for OpenCATS, check PHP logs. Use docker-compose logs php or inspect logs directly within the PHP container (docker-compose exec php tail -f /var/log/php/error.logbasketball stars).