[OpenSIPS-Users] Error on new install

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Dec 24 09:10:48 CET 2009


Hi Daniel,

Thanks for the report - indeed, there was a fix from 1.6.0 to 1.6.1 for 
double checking the DB conf of some modules. But the URI module is a bit 
tricky as some functions may or may not require DB connection, depending 
on some scripting params.

Also, you are right, the default cfg was net fully updated.

All these are fixed now.

Thanks and regards,
Bogdan

Daniel Goepp wrote:
> I'm setting up a new system here, same as all my other ones, this one 
> is the latest version 1.6.1 checked out today.  The config is 
> basically just the default config, I haven't changed much, just 
> deleted presence related stuff, and uncommented db support for aliases 
> and domains, same as all my other systems.  But I'm now getting this 
> error:
>
> Dec 23 15:35:06 ip-10-160-23-47 /usr/local/sbin/opensips[19213]: 
> INFO:alias_db:mod_init: initializing...
> Dec 23 15:35:06 ip-10-160-23-47 /usr/local/sbin/opensips[19213]: 
> ERROR:uri:db_checks_fixup: configuration error - no database URL is 
> configured!
> Dec 23 15:35:06 ip-10-160-23-47 /usr/local/sbin/opensips[19213]: 
> ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 165
> Dec 23 15:35:06 ip-10-160-23-47 /usr/local/sbin/opensips[19213]: 
> CRITICAL:core:fix_expr: fix_actions error
> Dec 23 15:35:06 ip-10-160-23-47 /usr/local/sbin/opensips[19213]: 
> ERROR:core:main: failed to fix configuration with err code -6
>
> I get this when I change the check_to and check_from to be prepended 
> with db_ (not sure why the default config in 1.6.1 still has the old 
> method names).
>
> The only docs I found were:
>
> http://www.opensips.org/html/docs/modules/1.6.x/uri_db.html
> http://www.opensips.org/html/docs/modules/1.6.x/uri.html
>
> As per the uri_db module (still with the old method names) I tried to set:
>
> modparam("uri_db", "db_url", 
> "mysql://opensips:opensipsrw@localhost/opensips")
>
> But I still get the same error, I had to change this to:
>
> modparam("uri", "db_url", 
> "mysql://opensips:opensipsrw@localhost/opensips")
>
> That is a parameter for the uri module though, not the uri_db module.  
> And was not necessary to set in previous versions, and is not in the 
> template config.  I am very confused at this point the line between 
> these two modules.  Anyone have any clarification they can provide on 
> this?  I'm up and running but would like to understand this better.
>
> Thanks
>
> -dg
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list