hello, ich have installed the latest version from kamailio kamailio-1.5.0-tls_src.tar.gz
Compiled and installed with this parameters
NICER=1 make all make include_modules="db_mysql" all make install
the database tables created with
/usr/local/sbin/kamdbctl create
and then start kamailio with
kamctl start the output on cmd is : gateway2:/usr/local/sbin # kamctl start
INFO: Starting Kamailio :
ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed
my logfile:
... Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:fix_actions: fixing record_route, line 310 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:fix_actions: fixing is_method, line 313 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:parse_methods: methods 0x1 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:textops:fixup_method: using id for method [INVITE/1] Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:fix_actions: fixing append_hf, line 320 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:fix_actions: fixing is_method, line 334 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:parse_methods: methods 0x2200 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:textops:fixup_method: using id for methods [PUBLISH,SUBSCRIBE/8704] Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:fix_actions: fixing is_method, line 337 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:parse_methods: methods 0x80 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:textops:fixup_method: using id for method [REGISTER/128] Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:fix_actions: fixing save, line 339 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:db_do_init: connection 0x654220 not found in pool Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:db_mysql:db_mysql_new_connection: opening connection: mysql://xxxx:xxxx@localhost/openser Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: ERROR:db_mysql:db_mysql_new_connection: driver error: Access denied for user 'openser'@'localhost' (using password: YES) Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: ERROR:core:db_do_init: could not add connection to the pool Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: ERROR:usrloc:register_udomain: failed to open database connection Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: ERROR:registrar:domain_fixup: failed to register domain Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 339 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: CRITICAL:core:fix_expr: fix_actions error Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: ERROR:core:main: failed to fix configuration with err code -1 Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:destroy_modules: shutting down module auth_db Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:destroy_modules: shutting down module auth Mar 9 13:17:19 gateway2 /usr/local/sbin/kamailio[9496]: DBG:core:destroy_modules: shutting down module acc ....
username and pw ist default.
i try it on console and login is ok:
gateway2:/usr/local/sbin # mysql -uopenser -h localhost -popenser Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5894 to server version: 5.0.26
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use openser Database changed mysql> Bye
what is wrong in my config?
On Mon, Mar 9, 2009 at 11:13 AM, svenp s.pastorik@westfalen-blatt.de wrote:
hello, ich have installed the latest version from kamailio kamailio-1.5.0-tls_src.tar.gz
Compiled and installed with this parameters
NICER=1 make all make include_modules="db_mysql" all make install
the database tables created with
/usr/local/sbin/kamdbctl create
and then start kamailio with
kamctl start the output on cmd is : gateway2:/usr/local/sbin # kamctl start
INFO: Starting Kamailio :
ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed
This is a common error when kamailio is compiled and installed with different prefixes. Search the mailing list to see how to fix this.
Regards Luciano
Hello,
On 03/09/2009 05:05 PM, Luciano Afranllie wrote:
On Mon, Mar 9, 2009 at 11:13 AM, svenp s.pastorik@westfalen-blatt.de wrote:
hello, ich have installed the latest version from kamailio kamailio-1.5.0-tls_src.tar.gz
Compiled and installed with this parameters
NICER=1 make all make include_modules="db_mysql" all make install
the database tables created with
/usr/local/sbin/kamdbctl create
and then start kamailio with
kamctl start the output on cmd is : gateway2:/usr/local/sbin # kamctl start
INFO: Starting Kamailio :
ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed
This is a common error when kamailio is compiled and installed with different prefixes. Search the mailing list to see how to fix this.
there might be other errors reported to syslog file - check /var/log/syslog or /var/log/messages.
Here is a tutorial for installing latest version from svn that might help: http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-1.5.x-from-svn
Cheers, Daniel
Hello, i foud the error in my config. I think user and pw is in config file kamailio.cfg an alias from file kamctlrc.
original: modparam("auth_db", "db_url", "mysql://openser:openserrw@localhost/openser")
The right Username und PW must configured in the kamailio.cfg too.
My kamailio Server is now running :).