I am using Kamailio 1.2 , in t openser.cfg I defined the the url for db, which is not local
("auth_db|permissions|uri_db|usr_loc", "db_url", "mysql://openser:db_password@db_ip_address/openser")
but still getting the error message below when start openser;
/sbin/openser[13064]: permissions - initializing /sbin/openser[13064]: WARNING: File not found: //etc/openser/permissions.allow /sbin/openser[13064]: Default allow file (//etc/openser/permissions.allow) not found => empty rule set /sbin/openser[13064]: WARNING: File not found: //etc/openser/permissions.deny /sbin/openser[13064]: Default deny file (//etc/openser/permissions.deny) not found => empty rule set /sbin/openser[13064]: new_connection: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) /sbin/openser[13064]: ERROR: group_db_bind: unable to connect to the database /sbin/openser[13064]: ERROR:group:mod_init: unable to open database connection /sbin/openser[13064]: init_mod(): Error while initializing module group /sbin/openser[13064]: INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill
any idea ?
thanks in advance
Asim
On Friday 05 September 2008, Asim Riaz wrote:
I am using Kamailio 1.2 , in t openser.cfg I defined the the url for db, which is not local
("auth_db|permissions|uri_db|usr_loc", "db_url", "mysql://openser:db_password@db_ip_address/openser")
but still getting the error message below when start openser; /sbin/openser[13064]: ERROR: group_db_bind: unable to connect to the database
any idea ?
Hi Asim,
you miss the group module from the db_url define, try to add this module too. (The modules uses a default connection if they are not configured.)
Cheers,
Henning
I found the problem my mistake was "usr_loc" it should be "usrloc"
thanks Asim
On Fri, Sep 5, 2008 at 4:12 PM, Henning Westerholt < henning.westerholt@1und1.de> wrote:
On Friday 05 September 2008, Asim Riaz wrote:
I am using Kamailio 1.2 , in t openser.cfg I defined the the url for db, which is not local
("auth_db|permissions|uri_db|usr_loc", "db_url", "mysql://openser:db_password@db_ip_address/openser")
but still getting the error message below when start openser; /sbin/openser[13064]: ERROR: group_db_bind: unable to connect to the database
any idea ?
Hi Asim,
you miss the group module from the db_url define, try to add this module too. (The modules uses a default connection if they are not configured.)
Cheers,
Henning