PacketFence - BTS - PacketFence
View Issue Details
0001097PacketFenceerror-handlingpublic2010-10-21 16:082015-02-13 15:26
obilodeau 
obilodeau 
normalmajoralways
closedopen 
1.9.0 
 
0001097: prevent thread from dying when connecting to MySQL
database code doesn't trap die on connection

Oct 21 16:01:15 pfsetvlan(25) FATAL: unable to connect to database: Can't connect to local MySQL server 
through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/pf/lib/pf/traplog.pm line 87
 (pf::db::db_connect)
thread failed to start: unable to connect to database: Can't connect to local MySQL server through socket 
'/var/lib/mysql/mysql.sock' (2) at /usr/local/pf/lib/pf/traplog.pm line 87 (0000001)
    (W threads)(S) The entry point function of threads->create() failed for some reason.


Properly handling this case would allow us to restart mysql without restarting PacketFence.
No tags attached.
Issue History
2010-10-21 16:08obilodeauNew Issue
2010-10-21 16:08obilodeauStatusnew => assigned
2010-10-21 16:08obilodeauAssigned To => obilodeau
2010-10-21 16:09obilodeauNote Added: 0001729
2010-11-19 14:24obilodeauTarget Version1.9.2 => 2.0.0
2011-01-18 09:47obilodeauTarget Version2.0.0 => 2.0.1
2011-01-26 15:30obilodeauTarget Version2.0.1 => 2.0.2
2011-03-03 15:19obilodeauTarget Version2.0.2 => +1
2015-02-13 15:26lmunroNote Added: 0003734
2015-02-13 15:26lmunroStatusassigned => closed

Notes
(0001729)
obilodeau   
2010-10-21 16:09   
implement in try { ... } catch { ... } since we already pulled Try::Tiny earlier
(0003734)
lmunro   
2015-02-13 15:26   
Old issues.
Most are not relevant to PF 4 and up.

Let's reopen the ones that matter when we move to github.