OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Intermittent "ojs2: Database connection failed!"

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Intermittent "ojs2: Database connection failed!"

Postby aef » Thu May 09, 2013 12:45 am

OJS/Apache and MySQL are on on different Linux machines.
Most times they work fine.
Several times a day apache error_log reports "ojs2: Database connection failed!".
So far I found no consistency in those failures.

How can I get php session_id for those failed connections to match with MySQL general_log?
What are other ways to find what is going on with the database server during those connection failures?

Thanks
aef
 
Posts: 2
Joined: Thu May 09, 2013 12:12 am

Re: Intermittent "ojs2: Database connection failed!"

Postby asmecher » Thu May 09, 2013 8:37 am

Hi aef,

You ought to be able to configure MySQL to log connection attempts; the existing MySQL logs may already capture the problem. The most likely cause is MySQL limiting the number of concurrent connections.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Intermittent "ojs2: Database connection failed!"

Postby aef » Thu May 09, 2013 7:45 pm

Thank you Alec,

In MySQL general_log I see OJS connection attempts with session_id.
However not all the records have a time stamp.

Our Apache error_log does not show the session_id. That looks like this
[Fri May 10 13:49:55 2013] [error] [client 192.168.10.50] ojs2: Database connection failed!

Can I get session_id in Apache logs or PHP logs or OJS logs? To match with MySQL log records.

Regards,
Andrey
aef
 
Posts: 2
Joined: Thu May 09, 2013 12:12 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests