Best practice forum (Archived)

Random (?) Error: Database connection failed

 
Patrick Staengle
Random (?) Error: Database connection failed
de Patrick Staengle - Monday, 3 de July de 2017, 07:04
 

Hi everyone,

I've set up a installation of Totara 2.9.9 on my webserver and encountered the following error, which appears sometimes, randomly as it seems:



I alrealy took a look here , but it doesn't seem to be a problem with the config.php, since the site is running just fine and really smooth until this error appears out of nowhere. I tried to reproduce it, but I didn't find a way to force the error to appear, which makes finding a solution almost impossible.

Any advice on how to solve this problem would be greatly appreciated!

Thank you very much

Best regards
Patrick


Craig Eves
Re: Random (?) Error: Database connection failed
de Craig Eves (Totara Support) - Tuesday, 4 de July de 2017, 14:53
Grupo Totara

Hi Patrick

This does sound like the server configuration isn't quite right - there are settings in the config fields that can be changed depending on the database used. eg max_connections.

The error logs of the database server and web  server should be able to provide some more information on the connection error such as too many clients already. Are you able to contact your partner to have a look at this?

regards

Craig


Patrick Staengle
Re: Random (?) Error: Database connection failed
de Patrick Staengle - Wednesday, 5 de July de 2017, 22:47
 

Hi Craig,

thank you for getting back to me.

As it tourned out our webserver had only 1GB of RAM allocated to our totara installation, after upgrading to 4GB everything works without any issues.

Best Regards,
Patrick