Hi Khue,

Actually I was putting the wrong password of the database in opensips.cfg, and 
I reviewed the whole file again & got my mistake & now it is perfectly running 
fine for me.

Thank you very much!!

 
With Best Regards,


Faisal Rehman


________________________________
From: nguyen khue <[email protected]>
To: Faisal Rehman <[email protected]>; "[email protected]" 
<[email protected]>
Sent: Wednesday, September 21, 2011 3:30 PM
Subject: Re: [OpenSIPS-Users] OpenSIPS Load Balancer Module Initialization Error


Hi Faisal,

first, you set password for mysql database. use command: mysqladmin -u root 
password NEWPASS
in your config file you set: 
modparam("load_balancer","db_url","mysql://root:NEWPASS@ip_mysql_server/database_name")
 and try again

regards
Khue Nguyen


________________________________
From: Faisal Rehman <[email protected]>
To: nguyen khue <[email protected]>; "[email protected]" 
<[email protected]>
Sent: Wednesday, September 21, 2011 5:24 PM
Subject: Re: [OpenSIPS-Users] OpenSIPS Load Balancer Module Initialization Error


Hi Khue,

Adding the line loadmodule "dialog.so" in my opensips.cfg gives now the 
following error which wasn't coming before:

Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: 
ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user 
'opensips'@'localhost' (using password: YES)
Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: 
ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: ERROR:core:db_do_init: 
could not add connection to the pool
Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: 
ERROR:load_balancer:init_lb_db: unable to connect to the database
Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: 
ERROR:load_balancer:mod_init: failed to initialize the DB support
Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: ERROR:core:init_mod: 
failed to initialize module load_balancer
Sep 21 15:21:14 m5-24 /usr/local/sbin/opensips[6859]: ERROR:core:main: error 
while initializing modules
Sep 21 15:21:14 m5-24 opensips: INFO:core:daemonize: pre-daemon process exiting 
with -1

 
With Best Regards,


Faisal Rehman


________________________________
From: nguyen khue <[email protected]>
To: Faisal Rehman <[email protected]>; "[email protected]" 
<[email protected]>; OpenSIPS users mailling list 
<[email protected]>
Sent: Wednesday, September 21, 2011 3:15 PM
Subject: Re: [OpenSIPS-Users] OpenSIPS Load Balancer Module Initialization Error


Hi Faisal,

You add line "loadmodule "dialog.so" into your config file and try again.

regards
Khue Nguyen


________________________________
From: Faisal Rehman <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wednesday, September 21, 2011 5:11 PM
Subject: [OpenSIPS-Users] OpenSIPS Load Balancer Module Initialization Error


Hi Everyone,

I am trying to start OpenSIPS as Load Balancer but sometimes after 
configuration changes, OpenSIPS starts with the help of OpenSIPS initialization 
command but it does not run as a process at the background.

I have tailed the /var/log/messages and got the following error:

 /usr/local/sbin/opensips[6616]: ERROR:load_balancer:mod_init: Can't load 
dialog hooks
 /usr/local/sbin/opensips[6616]: ERROR:core:init_mod: failed to initialize 
module load_balancer
 /usr/local/sbin/opensips[6616]: ERROR:core:main: error while initializing 
modules
 opensips: INFO:core:daemonize: pre-daemon process exiting with -1


I have seen the previous threads relevant to this error but nothing worked 
fine, so anyone can help and assist me please because I really need its 
solution.

Thank you very much in Advance!!

With Best Regards,


Faisal Rehman
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to