Re: [OpenSIPS-Users] opensips dead
Guys thank you all for your help. I was able to locate and restart the mysql instance and was able to restart opensips, thank you so much. /etc/init.d/opensips start Starting opensips: [ OK ] On Sat, Feb 8, 2014 at 3:04 PM, Schneur Rosenberg wrote: > If OpenSIPS is set to use mysql then yes its a reason not to start > On Feb 8, 2014 11:53 PM, "Freddi Guerrero" wrote: > >> Thanks for responding and for the help. I am checking on this as well, >> would this be a reason for opensips service not starting? >> >> >> -Original Message- >> From: users-boun...@lists.opensips.org [mailto: >> users-boun...@lists.opensips.org] On Behalf Of Ovidiu Sas >> Sent: Saturday, February 08, 2014 1:44 PM >> To: OpenSIPS users mailling list >> Subject: Re: [OpenSIPS-Users] opensips dead >> >> >> Your logs are telling you that the db is not up. >> >> Check if your MySQL server is up and running. >> >> >> >> Regards, >> >> Ovidiu Sas >> >> >> >> On Sat, Feb 8, 2014 at 4:20 PM, Freddi Guerrero >> wrote: >> >> > >> >> > >> >> > Hi guys, after I rebooted my server I am unable to start osips. >> >> > >> >> > I get msg "opensips dead but subsys locked" >> >> > >> >> > Here are some of the logs, im new to all this so im wondering if >> >> > someone can point me in the right direction, as it appears to be cfg >> file related? >> >> > >> >> > [root@osips ~]# tail -f /var/log/messages Feb 8 13:20:59 osips >> >> > /usr/sbin/opensips[3931]: INFO:textops:hname_fixup >> >> > : using hdr type name >> >> > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: >> >> > ERROR:db_mysql:db_mysql_ >> >> > connect: driver error(2003): Can't connect to MySQL server on >> '192.168.1.13' >> >> > ( 111) >> >> > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: >> >> > ERROR:db_mysql:db_mysql_ >> >> > new_connection: initial connect failed Feb 8 13:20:59 osipsr >> >> > /usr/sbin/opensips[3931]: ERROR:core:db_do_init: c ould not add >> >> > connection to the pool Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: >> >> > ERROR:usrloc:register_ud >> >> > omain: failed to open database connection Feb 8 13:20:59 osips >> >> > /usr/sbin/opensips[3931]: ERROR:registrar:domain_f >> >> > ixup: failed to register domain >> >> > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:fix_actions: >> >> > fixing failed (code=-1) at cfg line 493 Feb 8 13:20:59 osips >> >> > /usr/sbin/opensips[3931]: CRITICAL:core:fix_expr: >> >> > fix_actions error >> >> > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:main: >> >> > failed to fix configuration with err code -1 Feb 8 13:20:59 osips >> >> > opensips: INFO:core:daemonize: pre-daemon process exiting with -1 >> >> > >> >> > Here is lines 492-493 >> >> > >> >> > xlog("L_NOTICE", "*!!!New user location : $hdr(Contact) >> !!! >> >> > @ \n"); >> >> > if (!save("location")) >> >> > >> >> > >> >> > ___ >> >> > Users mailing list >> >> > Users@lists.opensips.org >> >> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > >> >> >> >> >> >> >> >> -- >> >> VoIP Embedded, Inc. >> >> http://www.voipembedded.com >> >> >> >> ___ >> >> Users mailing list >> >> Users@lists.opensips.org >> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- Thanks, Freddi Guerrero "weakness in attitude becomes weakness of character" -Albert Einstein ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips dead
If OpenSIPS is set to use mysql then yes its a reason not to start On Feb 8, 2014 11:53 PM, "Freddi Guerrero" wrote: > Thanks for responding and for the help. I am checking on this as well, > would this be a reason for opensips service not starting? > > > -Original Message- > From: users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] On Behalf Of Ovidiu Sas > Sent: Saturday, February 08, 2014 1:44 PM > To: OpenSIPS users mailling list > Subject: Re: [OpenSIPS-Users] opensips dead > > > Your logs are telling you that the db is not up. > > Check if your MySQL server is up and running. > > > > Regards, > > Ovidiu Sas > > > > On Sat, Feb 8, 2014 at 4:20 PM, Freddi Guerrero > wrote: > > > > > > > > > Hi guys, after I rebooted my server I am unable to start osips. > > > > > > I get msg "opensips dead but subsys locked" > > > > > > Here are some of the logs, im new to all this so im wondering if > > > someone can point me in the right direction, as it appears to be cfg > file related? > > > > > > [root@osips ~]# tail -f /var/log/messages Feb 8 13:20:59 osips > > > /usr/sbin/opensips[3931]: INFO:textops:hname_fixup > > > : using hdr type name > > > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: > > > ERROR:db_mysql:db_mysql_ > > > connect: driver error(2003): Can't connect to MySQL server on > '192.168.1.13' > > > ( 111) > > > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: > > > ERROR:db_mysql:db_mysql_ > > > new_connection: initial connect failed Feb 8 13:20:59 osipsr > > > /usr/sbin/opensips[3931]: ERROR:core:db_do_init: c ould not add > > > connection to the pool Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: > > > ERROR:usrloc:register_ud > > > omain: failed to open database connection Feb 8 13:20:59 osips > > > /usr/sbin/opensips[3931]: ERROR:registrar:domain_f > > > ixup: failed to register domain > > > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:fix_actions: > > > fixing failed (code=-1) at cfg line 493 Feb 8 13:20:59 osips > > > /usr/sbin/opensips[3931]: CRITICAL:core:fix_expr: > > > fix_actions error > > > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:main: > > > failed to fix configuration with err code -1 Feb 8 13:20:59 osips > > > opensips: INFO:core:daemonize: pre-daemon process exiting with -1 > > > > > > Here is lines 492-493 > > > > > > xlog("L_NOTICE", "*!!!New user location : $hdr(Contact) > !!! > > > @ \n"); > > > if (!save("location")) > > > > > > > > > ___ > > > Users mailing list > > > Users@lists.opensips.org > > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > > > > > > > > -- > > VoIP Embedded, Inc. > > http://www.voipembedded.com > > > > ___ > > Users mailing list > > Users@lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips dead
Thanks for responding and for the help. I am checking on this as well, would this be a reason for opensips service not starting? -Original Message- From: users-boun...@lists.opensips.org [mailto: users-boun...@lists.opensips.org] On Behalf Of Ovidiu Sas Sent: Saturday, February 08, 2014 1:44 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] opensips dead Your logs are telling you that the db is not up. Check if your MySQL server is up and running. Regards, Ovidiu Sas On Sat, Feb 8, 2014 at 4:20 PM, Freddi Guerrero wrote: > > > Hi guys, after I rebooted my server I am unable to start osips. > > I get msg "opensips dead but subsys locked" > > Here are some of the logs, im new to all this so im wondering if > someone can point me in the right direction, as it appears to be cfg file related? > > [root@osips ~]# tail -f /var/log/messages Feb 8 13:20:59 osips > /usr/sbin/opensips[3931]: INFO:textops:hname_fixup > : using hdr type name > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: > ERROR:db_mysql:db_mysql_ > connect: driver error(2003): Can't connect to MySQL server on '192.168.1.13' > ( 111) > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: > ERROR:db_mysql:db_mysql_ > new_connection: initial connect failed Feb 8 13:20:59 osipsr > /usr/sbin/opensips[3931]: ERROR:core:db_do_init: c ould not add > connection to the pool Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: > ERROR:usrloc:register_ud > omain: failed to open database connection Feb 8 13:20:59 osips > /usr/sbin/opensips[3931]: ERROR:registrar:domain_f > ixup: failed to register domain > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:fix_actions: > fixing failed (code=-1) at cfg line 493 Feb 8 13:20:59 osips > /usr/sbin/opensips[3931]: CRITICAL:core:fix_expr: > fix_actions error > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:main: > failed to fix configuration with err code -1 Feb 8 13:20:59 osips > opensips: INFO:core:daemonize: pre-daemon process exiting with -1 > > Here is lines 492-493 > > xlog("L_NOTICE", "*!!!New user location : $hdr(Contact) !!! > @ \n"); > if (!save("location")) > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- VoIP Embedded, Inc. http://www.voipembedded.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips dead
Your logs are telling you that the db is not up. Check if your MySQL server is up and running. Regards, Ovidiu Sas On Sat, Feb 8, 2014 at 4:20 PM, Freddi Guerrero wrote: > > > Hi guys, after I rebooted my server I am unable to start osips. > > I get msg "opensips dead but subsys locked" > > Here are some of the logs, im new to all this so im wondering if someone can > point me in the right direction, as it appears to be cfg file related? > > [root@osips ~]# tail -f /var/log/messages > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: INFO:textops:hname_fixup > : using hdr type name > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:db_mysql:db_mysql_ > connect: driver error(2003): Can't connect to MySQL server on '192.168.1.13' > ( 111) > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:db_mysql:db_mysql_ > new_connection: initial connect failed > Feb 8 13:20:59 osipsr /usr/sbin/opensips[3931]: ERROR:core:db_do_init: c > ould not add connection to the pool > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:usrloc:register_ud > omain: failed to open database connection > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:registrar:domain_f > ixup: failed to register domain > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:fix_actions: > fixing failed (code=-1) at cfg line 493 > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: CRITICAL:core:fix_expr: > fix_actions error > Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:main: failed > to fix configuration with err code -1 > Feb 8 13:20:59 osips opensips: INFO:core:daemonize: pre-daemon process > exiting with -1 > > Here is lines 492-493 > > xlog("L_NOTICE", "*!!!New user location : $hdr(Contact) !!! > @ \n"); > if (!save("location")) > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- VoIP Embedded, Inc. http://www.voipembedded.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensips dead
Hi guys, after I rebooted my server I am unable to start osips. I get msg "opensips dead but subsys locked" Here are some of the logs, im new to all this so im wondering if someone can point me in the right direction, as it appears to be cfg file related? [root@osips ~]# tail -f /var/log/messages Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: INFO:textops:hname_fixup : using hdr type name Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:db_mysql:db_mysql_ connect: driver error(2003): Can't connect to MySQL server on '192.168.1.13' ( 111) Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:db_mysql:db_mysql_ new_connection: initial connect failed Feb 8 13:20:59 osipsr /usr/sbin/opensips[3931]: ERROR:core:db_do_init: c ould not add connection to the pool Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:usrloc:register_ud omain: failed to open database connection Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:registrar:domain_f ixup: failed to register domain Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:fix_actions:fixing failed (code=-1) at cfg line 493 Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: CRITICAL:core:fix_expr:fix_actions error Feb 8 13:20:59 osips /usr/sbin/opensips[3931]: ERROR:core:main: failedto fix configuration with err code -1 Feb 8 13:20:59 osips opensips: INFO:core:daemonize: pre-daemon processexiting with -1 Here is lines 492-493 xlog("L_NOTICE", "*!!!New user location : $hdr(Contact) !!! @ \n"); if (!save("location")) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OPENSIPS dead but sybsys locked
Hi, The problem is quite obvious - your opensips cannot start because it cannot connect the DB. See the error: Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user 'opensips'@'localhost' (using password: YES) To see why your opensips stops working over the night, check the logs to see a reason for opensips to shutdown. Regards, Bogdan sajumurali wrote: > Hi all. > Thanks for your reply in my previous post. > I am facing the following issue on opensips. I installed it with the help of > this site: http://www.opensips.org/Resources/DocsTutRedhat5. > The problem is that after installation its working fine but, the next day > its not working. > > ~]# service opensips status > opensips dead but subsys locked > > ~]# service opensips start > Starting opensips: [ OK ] > > ~]# tail -f /var/log/messages > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: INFO:auth:mod_init: > initializing... > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: INFO:auth_db:mod_init: > initializing... > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: > ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user > 'opensips'@'localhost' (using password: YES) > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: > ERROR:db_mysql:db_mysql_new_connection: initial connect failed > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:db_do_init: could > not add connection to the pool > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: > ERROR:usrloc:register_udomain: failed to open database connection > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: > ERROR:registrar:domain_fixup: failed to register domain > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:fix_actions: > fixing failed (code=-1) at cfg line 333 > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: CRITICAL:core:fix_expr: > fix_actions error > Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:main: failed to > fix configuration with err code -1 > > My Sip server is having public IP and I installed opensips in a machine > having local IP. The opesipsdb is also installed in the opensips server. The > attachment is my opensips.cfg file > http://opensips-open-sip-server.1449251.n2.nabble.com/file/n5237449/Opensips.doc > Opensips.doc > -- Bogdan-Andrei Iancu OpenSIPS Bootcamp 20 - 24 September 2010, Frankfurt, Germany www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OPENSIPS dead but sybsys locked
Hi all. Thanks for your reply in my previous post. I am facing the following issue on opensips. I installed it with the help of this site: http://www.opensips.org/Resources/DocsTutRedhat5. The problem is that after installation its working fine but, the next day its not working. ~]# service opensips status opensips dead but subsys locked ~]# service opensips start Starting opensips: [ OK ] ~]# tail -f /var/log/messages Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: INFO:auth:mod_init: initializing... Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: INFO:auth_db:mod_init: initializing... Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user 'opensips'@'localhost' (using password: YES) Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:db_do_init: could not add connection to the pool Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:usrloc:register_udomain: failed to open database connection Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:registrar:domain_fixup: failed to register domain Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 333 Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: CRITICAL:core:fix_expr: fix_actions error Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:main: failed to fix configuration with err code -1 My Sip server is having public IP and I installed opensips in a machine having local IP. The opesipsdb is also installed in the opensips server. The attachment is my opensips.cfg file http://opensips-open-sip-server.1449251.n2.nabble.com/file/n5237449/Opensips.doc Opensips.doc -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/OPENSIPS-dead-but-sybsys-locked-tp5237449p5237449.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OPENSIPS dead but sybsys locked
Hi all. Thanks for your reply in my previous post. I am facing the following issue on opensips. I installed it with the help of this site: http://www.opensips.org/Resources/DocsTutRedhat5. The problem is that after installation its working fine but, the next day its not working. ~]# service opensips status opensips dead but subsys locked ~]# service opensips start Starting opensips: [ OK ] ~]# tail -f /var/log/messages Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: INFO:auth:mod_init: initializing... Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: INFO:auth_db:mod_init: initializing... Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user 'opensips'@'localhost' (using password: YES) Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:db_do_init: could not add connection to the pool Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:usrloc:register_udomain: failed to open database connection Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:registrar:domain_fixup: failed to register domain Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 333 Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: CRITICAL:core:fix_expr: fix_actions error Jun 30 14:44:51 /usr/local/sbin/opensips[4628]: ERROR:core:main: failed to fix configuration with err code -1 My Sip server is having public IP and I installed opensips in a machine having local IP. The opesipsdb is also installed in the opensips server. The attachment is my opensips.cfg file http://opensips-open-sip-server.1449251.n2.nabble.com/file/n5237448/Opensips.doc Opensips.doc -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/OPENSIPS-dead-but-sybsys-locked-tp5237448p5237448.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users