[OpenSIPS-Users] Error on new install

Daniel Goepp dan at goepp.net
Thu Dec 24 00:48:32 CET 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091223/01e6754b/attachment.htm 


More information about the Users mailing list