From: Longina P. <lo...@sd...> - 2013-05-22 11:50:19
|
However not so good. The problem persists: apache doesn't start : crm maintenance -mode enabled reboot -f crm maintenance-mode disabled (pacemaker starts services) Apache starts as OS service - not inside openqrm script. ---- [Wed May 22 12:10:16 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured - - resuming normal operations [Wed May 22 12:10:45 2013] [error] [client 10.112.9.249] File does not exist: /var/www/openqrm/base/img/{userlan g}.gif, referer: http://10.123.2.7/openqrm/base/index.php [Wed May 22 12:10:45 2013] [error] [client 10.112.9.249] File does not exist: /var/www/openqrm/base/img/{userlan g}.gif, referer: http://10.123.2.7/openqrm/base/index.php [Wed May 22 12:10:56 2013] [error] [client 10.112.9.249] File does not exist: /var/www/openqrm/base/img/{userlan g}.gif, referer: http://10.123.2.7/openqrm/base/index.php?base=storage [Wed May 22 12:10:56 2013] [error] [client 10.112.9.249] File does not exist: /var/www/openqrm/base/img/{userlan g}.gif, referer: http://10.123.2.7/openqrm/base/index.php?base=storage [Wed May 22 12:14:23 2013] [error] [client 10.112.9.249] PHP Fatal error: Call to a member function SetFetchMod e() on a non-object in /usr/share/openqrm/web/base/include/openqrm-database-functions.php on line 112, referer: http://10.123.2.7/openqrm/base/index.php?base=storage [Wed May 22 12:14:28 2013] [error] [client 10.112.9.249] PHP Warning: mysql_pconnect(): Link to server lost, un able to reconnect in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 383, referer: http://10.123.2.7/op enqrm/base/index.php?base=storage [Wed May 22 12:14:28 2013] [error] [client 10.112.9.249] PHP Fatal error: Call to a member function SetFetchMod e() on a non-object in /usr/share/openqrm/web/base/include/openqrm-database-functions.php on line 112, referer: http://10.123.2.7/openqrm/base/index.php?base=storage [Wed May 22 12:14:28 2013] [error] [client 10.123.2.10] PHP Warning: mysql_pconnect(): Link to server lost, una ble to reconnect in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 383 ---- root@qrm1:/var/log/apache2# ls -l /var/www total 4 lrwxrwxrwx 1 root root 50 May 14 15:18 cloud-portal -> /usr/share/openqrm/plugins/cloud/cloud-portal/web/ -rw-r--r-- 1 root root 177 Apr 5 12:36 index.html lrwxrwxrwx 1 root root 23 Apr 5 12:37 openqrm -> /usr/share/openqrm/web/ ---- That link resolves only after corosync/pacemaker| | | drbd/openqrm-ha| | (fs/ip/openqrm) have been started. /etc/rc2.d S19corosync -> ../init.d/corosync S50pacemaker -> ../init.d/pacemaker .. S91apache2 -> ../init.d/apache2 Apache should start before openqrm....maybe inside openqrm-ha script??? Med venlig hilsen Longina Przybyszewska Systemprogrammør, IT-service Tlf. +45 6550 2359 Mobil +45 6011 2359 Fax +45 6550 2467 Email lo...@sd... Web http://www.sdu.dk/ansat/longina Adr. Campusvej 55, 5230 Odense M SYDDANSK UNIVERSITET _______________________________________________________________ Campusvej 55 * 5230 * Odense M * Tlf. +45 6550 1000 * www.sdu.dk -----Original Message----- From: Longina Przybyszewska Sent: 22. maj 2013 12:52 To: openqrm-user Subject: RE:[Openqrm-user] apache doesn't start after reboot Yes, after reboot I have to remove maintanance mode, and let pacemaker start services or do it manually; The strange thing is that after first reboot en del of processes drbd/mysql/ip could start ; After second reboot machine is clean. Strange strange Thanks, sorry for bothering you Med venlig hilsen Longina Przybyszewska Systemprogrammør, IT-service Tlf. +45 6550 2359 Mobil +45 6011 2359 Fax +45 6550 2467 Email lo...@sd... Web http://www.sdu.dk/ansat/longina Adr. Campusvej 55, 5230 Odense M SYDDANSK UNIVERSITET _______________________________________________________________ Campusvej 55 * 5230 * Odense M * Tlf. +45 6550 1000 * www.sdu.dk -----Original Message----- From: Jan Steding [mailto:st...@an...] Sent: 22. maj 2013 12:35 To: Longina Przybyszewska Cc: openqrm-user Subject: Re: [Openqrm-user] apache doesn't start after reboot Hi Longina, Am 22.05.2013 12:24, schrieb Longina Przybyszewska: > Hi, > > I run into strange problems - after rebooting openqrm node, apache > doesn't start. > > Openqrm runs in HA setup > > Drbd/fs/ip/Mysqld started > > In apache2.log: > > [Wed May 22 10:53:57 2013] [error] [client 10.123.2.11] PHP Warning: > mysql_pconnect(): Can't connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) in > /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 383 > > [Wed May 22 10:53:57 2013] [error] [client 10.123.2.11] PHP Fatal > error: Call to a member function SetFetchMode() on a non-object in > /usr/share/openqrm/web/base/include/openqrm-database-functions.php on > line 112 > > [Wed May 22 10:53:57 2013] [error] [client 10.112.9.249] PHP Warning: > mysql_pconnect(): Can't connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) in > /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 383, referer: > http://10.123.2.7/openqrm/base/index.php?base=event&event_filter=activ > e&event_action=select&event_msg=Acknowledged%20Event%2013691453905083% > 3Cbr%3E > > [Wed May 22 10:53:57 2013] [error] [client 10.112.9.249] PHP Fatal > error: Call to a member function SetFetchMode() on a non-object in > /usr/share/openqrm/web/base/include/openqrm-database-functions.php on > line 112, referer: > http://10.123.2.7/openqrm/base/index.php?base=event&event_filter=activ > e&event_action=select&event_msg=Acknowledged%20Event%2013691453905083% > 3Cbr%3E > > [Wed May 22 10:53:58 2013] [error] [client 10.123.2.10] PHP Warning: > mysql_pconnect(): Can't connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) in > /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 383 > > Any ideas? It Hasn't happen before - > > Mysqld is configured to have db on drbd disk /usr/share/openqrm/mysql > > /var/run/mysqld/mysqld.sock exists; is configured to be on local disk. > > I restarted node in crm maintenance-mode with 'reboot -f' > > End part of dmesg| less > > [ 16.159785] init: isc-dhcp-server main process ended, respawning > > [ 16.242126] init: isc-dhcp-server main process (1790) terminated with > status 1 > > [ 16.242155] init: isc-dhcp-server main process ended, respawning > > [ 16.319068] init: isc-dhcp-server main process (1797) terminated with > status 1 > > [ 16.319099] init: isc-dhcp-server main process ended, respawning > > [ 16.386298] init: isc-dhcp-server main process (1804) terminated with > status 1 > > [ 16.386324] init: isc-dhcp-server respawning too fast, stopped > > [ 16.525636] init: mysql post-start process (1514) terminated with > status 1 > > [ 16.544234] init: mysql main process (1945) terminated with status 1 > > [ 16.544263] init: mysql main process ended, respawning > > [ 17.549385] init: mysql post-start process (1946) terminated with > status 1 > > [ 17.567173] init: mysql main process (2011) terminated with status 1 > > [ 17.567201] init: mysql respawning too fast, stopped > > [ 20.282092] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready > > If I start apache manually have again access to openqrm. what is the status of drbd-overview and /proc/drbd ? BR Jan |