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