This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186281 - Regularly unavailable nb.org site due to DB errors
Summary: Regularly unavailable nb.org site due to DB errors
Status: VERIFIED WORKSFORME
Alias: None
Product: www
Classification: Unclassified
Component: Admin (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Marco Walther
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 08:06 UTC by Martin Fousek
Modified: 2011-11-16 14:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
DB exceptions log from May 25, 26 (127.74 KB, application/octet-stream)
2010-05-26 15:02 UTC, Jan Pirek
Details
DB exceptions from 2010-05-28 to 31 (49.28 KB, application/octet-stream)
2010-05-31 07:30 UTC, Jan Pirek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2010-05-18 08:06:25 UTC
A little bit more than once daily nb.org site isn't accessible because of this DB error:
Problem clening up old session data: SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'nbxdbsha' (4)

I asked Honza P. for information how often is the site unavailable and it was eight times in last week (it means 10/5 - 17/5). 

It's happening in various times - yesterday (17/5) it was about 9:30am, on Friday (14/5) 3:28pm PRG time. Every outage takes about 5 minutes.
Comment 1 Martin Fousek 2010-05-18 08:08:53 UTC
corresponding kenai issue for that: http://kenai.com/jira/browse/KENAI-1995
Comment 2 Jan Pirek 2010-05-25 13:07:00 UTC
update: for better tracking, the PHPstack is now logging all DB exceptions to the logfile. I provided the kenai team with the file location.. 

Now we should know real scope of those outages...

honza
Comment 3 Martin Fousek 2010-05-26 11:43:33 UTC
I'm attaching data of incidents in 21/5-25/5 (till was done logging of these issues) which were detected and sent by email from @pingability site:
21/5 - 1 the same incident, 22/5 - 1, 23/5 - 1, 24/5 - 3, 25/5 - 4
Comment 4 Jan Pirek 2010-05-26 15:02:18 UTC
Created attachment 99498 [details]
DB exceptions log from May 25, 26

This is the log of DB exceptions. Showing all requests which failed due to some DB issue
Comment 5 Marco Walther 2010-05-26 15:23:10 UTC
Honza,

would you be able to add some more logging on the exception? I would be interested to know why it failed:-(

Some catch blocks like mentioned in:
http://zend-framework-community.634137.n4.nabble.com/Suddenly-two-of-my-sites-using-Zend-Db-stop-working-td673581.html

or something, with some info about the found exception: Network, too many clients, ..., ???

Thanks,
-- Marco
Comment 6 Jan Pirek 2010-05-26 16:01:03 UTC
Hi Marco, I added better catch block as suggested on Zend_Db documentation.

Let's see the result tomorrow.

honza
Comment 7 Jan Pirek 2010-05-31 07:30:25 UTC
Created attachment 99667 [details]
DB exceptions from 2010-05-28 to 31

DB exceptions from 2010-05-28 to 31, after I changed the catch block and switched from DB_Pdo to Mysqli DB adapter
Comment 8 Martin Fousek 2010-06-17 06:38:50 UTC
On 16/06 by NB6.9 release (higher load) was the site unavailable at least 8 times again.

Did the improved logging help for better identification of the issue?
Comment 9 Vince Kraemer 2011-07-12 16:25:03 UTC
Since Lea doesn't work for Oracle or on Kenai anymore, we might want to reassign this to an actual person that can and might do something to resolve the problem...

I do not know who that person would be...  If I did, these issues would be assigned to them when I committed this comment.
Comment 10 Marian Mirilovic 2011-11-16 13:58:43 UTC
Works for now - so closing
Comment 11 Martin Fousek 2011-11-16 14:01:16 UTC
Agree, looks that it's already fixed.