Please cc all the time to mailing lists.
If you reported an issue and solved it, then it is nice to close the discussion thread by saying what was wrong and how was solved. Others coming later and reading mailing list archive can learn from your experience.
Thanks, Daniel
On 03/11/2009 10:47 AM, Sara EL KABIRI wrote:
Hello,
Thanks a lot for you help. I've already solved the problem :-)
Regards, Sara
On Wed, Mar 11, 2009 at 8:09 AM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, On 03/09/2009 08:48 PM, Sara EL KABIRI wrote: Hello, I've installed kamailio 1.4.3 (without tls) on ubuntu by following the provided INSTALL guide. I want to use it as a presence server but i've got some problems starting it. "kamctl start" returns nothing. check the syslog file for errors. There you can get some hint. Alternatively, set log_stderror=yes in your config file and run "kamailio" (/usr/sbin/kamailio or /usr/local/sbin/kamailio if installed from sources) and see what you get on the screen. Cheers, Daniel and "kamctl moni" returns "Error opening kamailio's FIFO /tmp/kamailio_fifo" I've checked in my .cfg file and the 'loadmodule' and 'modparam' lines related to mi-fifo module are uncommented. I've checked also the mi-fifo module was installed indeed (mi_fifo.so appears in /usr/local/lib/kamailio/modules directory). Could anyone help please? -- Sara ------------------------------------------------------------------------ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users -- Daniel-Constantin Mierla http://www.asipto.com
-- S.
Hello,
In fact, the issue is still there. I explain:
I had added this line to the config file to set xml-rpc's listening port: *modparam("mi-xmlrpc", "port", 8000)* And that was when kamailio couldn't start. I removed the said line, and tried to restart kamailio. I got this in return: *~$ sudo /etc/init.d/kamailio start
Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065*
I thought everything was ok, but it wasn't. I tried *netstat -anp* to see if the server was really listenning upon port 5065, it wasn't. Then i tried *kamctl moni* and there was appearently a problem: * ~$ sudo kamctl moni
ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")' in your config ERROR: and also have loaded the mi_fifo module.*
I allowed syslog_error in the config file, and tried to restart kamailio. And here's what i got:
*~$ sudo /etc/init.d/kamailio start
Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065
Mar 11 11:02:20 [11473] INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Mar 11 11:02:20 [11475] NOTICE:core:main: version: kamailio 1.4.3-notls (i386/linux) Mar 11 11:02:20 [11475] INFO:core:main: using 32 Mb shared memory Mar 11 11:02:20 [11475] INFO:core:main: using 1 Mb private memory per process Mar 11 11:02:20 [11475] INFO:sl:mod_init: Initializing StateLess engine Mar 11 11:02:20 [11475] INFO:tm:mod_init: TM - initializing... $ Mar 11 11:02:20 [11475] INFO:maxfwd:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:usrloc:ul_init_locks: locks array size 512 Mar 11 11:02:20 [11475] INFO:registrar:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:textops:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:xlog:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:acc:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:auth:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:auth_db:mod_init: initializing... Mar 11 11:02:21 [11475] NOTICE:presence:mod_init: initializing module ... Mar 11 11:02:21 [11475] INFO:presence:restore_db_subs: The query returned no result Mar 11 11:02:21 [11475] ERROR:db_mysql:db_mysql_new_connection: driver error: Access denied for user 'openser'@'localhost' (using password: YES) Mar 11 11:02:21 [11475] ERROR:core:db_do_init: could not add connection to the poolMar 11 11:02:21 [11475] ERROR:usrloc:register_udomain: failed to open database connection Mar 11 11:02:21 [11475] ERROR:registrar:domain_fixup: failed to register domain Mar 11 11:02:21 [11475] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 324 Mar 11 11:02:21 [11475] CRITICAL:core:fix_expr: fix_actions error Mar 11 11:02:21 [11475] ERROR:core:main: failed to fix configuration with err code -1 Mar 11 11:02:21 [11475] NOTICE:presence:destroy: destroy module ...*
I tried to log on MySQL database as root user, and i got exactly the same error. I can't understand why it says *"Access denied for user 'openser'@'localhost' (using password: YES)" *even when i log on as root, and i don't undestand the meaning of the last line *"Mar 11 11:02:21 [11475] NOTICE:presence:destroy: destroy module ...* " (may i recall that i want to use Kamailio as a presence server).
Thanks in advance for your help. Cheers, Sara
On Wed, Mar 11, 2009 at 11:22 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Please cc all the time to mailing lists.
If you reported an issue and solved it, then it is nice to close the discussion thread by saying what was wrong and how was solved. Others coming later and reading mailing list archive can learn from your experience.
Thanks, Daniel
On 03/11/2009 10:47 AM, Sara EL KABIRI wrote:
Hello,
Thanks a lot for you help. I've already solved the problem :-)
Regards, Sara
On Wed, Mar 11, 2009 at 8:09 AM, Daniel-Constantin Mierla < miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello,
On 03/09/2009 08:48 PM, Sara EL KABIRI wrote:
Hello, I've installed kamailio 1.4.3 (without tls) on ubuntu by following the provided INSTALL guide. I want to use it as a presence server but i've got some problems starting it. "kamctl start" returns nothing.
check the syslog file for errors. There you can get some hint.
Alternatively, set log_stderror=yes in your config file and run "kamailio" (/usr/sbin/kamailio or /usr/local/sbin/kamailio if installed from sources) and see what you get on the screen.
Cheers, Daniel
and "kamctl moni" returns "Error opening kamailio's FIFO /tmp/kamailio_fifo" I've checked in my .cfg file and the 'loadmodule' and 'modparam' lines related to mi-fifo module are uncommented. I've checked also the mi-fifo module was installed indeed (mi_fifo.so appears in /usr/local/lib/kamailio/modules directory). Could anyone help please? -- Sara
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla http://www.asipto.com
-- S.
-- Daniel-Constantin Mierla http://www.asipto.com
On 03/11/2009 04:32 PM, Sara EL KABIRI wrote:
Hello,
In fact, the issue is still there. I explain:
I had added this line to the config file to set xml-rpc's listening port: */modparam("mi-xmlrpc", "port", 8000)/* And that was when kamailio couldn't start. I removed the said line, and tried to restart kamailio. I got this in return: */~$ sudo /etc/init.d/kamailio start
Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065/*
I thought everything was ok, but it wasn't. I tried */netstat -anp/* to see if the server was really listenning upon port 5065, it wasn't. Then i tried */kamctl moni/* and there was appearently a problem: */ ~$ sudo kamctl moni
ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")' in your config ERROR: and also have loaded the mi_fifo module./*
I allowed syslog_error in the config file, and tried to restart kamailio. And here's what i got:
*/~$ sudo /etc/init.d/kamailio start
Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065
Mar 11 11:02:20 [11473] INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Mar 11 11:02:20 [11475] NOTICE:core:main: version: kamailio 1.4.3-notls (i386/linux) Mar 11 11:02:20 [11475] INFO:core:main: using 32 Mb shared memory Mar 11 11:02:20 [11475] INFO:core:main: using 1 Mb private memory per process Mar 11 11:02:20 [11475] INFO:sl:mod_init: Initializing StateLess engine Mar 11 11:02:20 [11475] INFO:tm:mod_init: TM - initializing... $ Mar 11 11:02:20 [11475] INFO:maxfwd:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:usrloc:ul_init_locks: locks array size 512 Mar 11 11:02:20 [11475] INFO:registrar:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:textops:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:xlog:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:acc:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:auth:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:auth_db:mod_init: initializing... Mar 11 11:02:21 [11475] NOTICE:presence:mod_init: initializing module ... Mar 11 11:02:21 [11475] INFO:presence:restore_db_subs: The query returned no result Mar 11 11:02:21 [11475] ERROR:db_mysql:db_mysql_new_connection: driver error: Access denied for user 'openser'@'localhost' (using password: YES) Mar 11 11:02:21 [11475] ERROR:core:db_do_init: could not add connection to the poolMar 11 11:02:21 [11475] ERROR:usrloc:register_udomain: failed to open database connection Mar 11 11:02:21 [11475] ERROR:registrar:domain_fixup: failed to register domain Mar 11 11:02:21 [11475] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 324 Mar 11 11:02:21 [11475] CRITICAL:core:fix_expr: fix_actions error Mar 11 11:02:21 [11475] ERROR:core:main: failed to fix configuration with err code -1 Mar 11 11:02:21 [11475] NOTICE:presence:destroy: destroy module .../*
I tried to log on MySQL database as root user, and i got exactly the same error. I can't understand why it says */"Access denied for user 'openser'@'localhost' (using password: YES)" /*even when i log on as root,
You have to rea the mysdl manual and learn how to grant privileges to users and why this error appears. If someone else installed mysql for you, ask him for the root password and how to legin to the mysql server.
and i don't undestand the meaning of the last line */"Mar 11 11:02:21 [11475] NOTICE:presence:destroy: destroy module .../* " (may i recall that i want to use Kamailio as a presence server).
This is a notice message that the module is destroying internal structure, it is nothing to worry about.
Cheers, Daniel
Thanks in advance for your help. Cheers, Sara
On Wed, Mar 11, 2009 at 11:22 AM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Please cc all the time to mailing lists. If you reported an issue and solved it, then it is nice to close the discussion thread by saying what was wrong and how was solved. Others coming later and reading mailing list archive can learn from your experience. Thanks, Daniel On 03/11/2009 10:47 AM, Sara EL KABIRI wrote: Hello, Thanks a lot for you help. I've already solved the problem :-) Regards, Sara On Wed, Mar 11, 2009 at 8:09 AM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com> <mailto:miconda@gmail.com <mailto:miconda@gmail.com>>> wrote: Hello, On 03/09/2009 08:48 PM, Sara EL KABIRI wrote: Hello, I've installed kamailio 1.4.3 (without tls) on ubuntu by following the provided INSTALL guide. I want to use it as a presence server but i've got some problems starting it. "kamctl start" returns nothing. check the syslog file for errors. There you can get some hint. Alternatively, set log_stderror=yes in your config file and run "kamailio" (/usr/sbin/kamailio or /usr/local/sbin/kamailio if installed from sources) and see what you get on the screen. Cheers, Daniel and "kamctl moni" returns "Error opening kamailio's FIFO /tmp/kamailio_fifo" I've checked in my .cfg file and the 'loadmodule' and 'modparam' lines related to mi-fifo module are uncommented. I've checked also the mi-fifo module was installed indeed (mi_fifo.so appears in /usr/local/lib/kamailio/modules directory). Could anyone help please? -- Sara ------------------------------------------------------------------------ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> <mailto:Users@lists.kamailio.org <mailto:Users@lists.kamailio.org>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users -- Daniel-Constantin Mierla http://www.asipto.com -- S. -- Daniel-Constantin Mierla http://www.asipto.com
-- S.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Thanks. I have already logged on to the mysql server and granted all the privileges to the user that was being rejected at kamailio's database authentication... And i still get the same error.
What i don't understand is that in Kamailio's config file, whether i set the db_url parameter to the "root" user or to the "openser" one:
*modparam("uri_db", "db_url", "mysql://root:<password>@localhost/openser")* or *modparam("uri_db", "db_url", "mysql://openser:<password> @localhost/openser")*
i get indifferently "*Access denied for user 'openser'@'localhost' (using password: YES)*".
I think there is a configuration problem somewhere in kamailio's files, somewhere else than in the kamailio.cfg file... I tried to grep "openser" but got nothing relevant.
Ideas? Thanks in advance.
Regards, Sara
On Mon, Mar 16, 2009 at 11:20 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 03/11/2009 04:32 PM, Sara EL KABIRI wrote:
Hello,
In fact, the issue is still there. I explain:
I had added this line to the config file to set xml-rpc's listening port: */modparam("mi-xmlrpc", "port", 8000)/* And that was when kamailio couldn't start. I removed the said line, and tried to restart kamailio. I got this in return: */~$ sudo /etc/init.d/kamailio start
Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065/*
I thought everything was ok, but it wasn't. I tried */netstat -anp/* to see if the server was really listenning upon port 5065, it wasn't. Then i tried */kamctl moni/* and there was appearently a problem: */ ~$ sudo kamctl moni
ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")' in your config ERROR: and also have loaded the mi_fifo module./*
I allowed syslog_error in the config file, and tried to restart kamailio. And here's what i got:
*/~$ sudo /etc/init.d/kamailio start
Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065
Mar 11 11:02:20 [11473] INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Mar 11 11:02:20 [11475] NOTICE:core:main: version: kamailio 1.4.3-notls (i386/linux) Mar 11 11:02:20 [11475] INFO:core:main: using 32 Mb shared memory Mar 11 11:02:20 [11475] INFO:core:main: using 1 Mb private memory per process Mar 11 11:02:20 [11475] INFO:sl:mod_init: Initializing StateLess engine Mar 11 11:02:20 [11475] INFO:tm:mod_init: TM - initializing... $ Mar 11 11:02:20 [11475] INFO:maxfwd:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:usrloc:ul_init_locks: locks array size 512 Mar 11 11:02:20 [11475] INFO:registrar:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:textops:mod_init: initializing... Mar 11 11:02:20 [11475] INFO:xlog:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:acc:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:auth:mod_init: initializing... Mar 11 11:02:21 [11475] INFO:auth_db:mod_init: initializing... Mar 11 11:02:21 [11475] NOTICE:presence:mod_init: initializing module ... Mar 11 11:02:21 [11475] INFO:presence:restore_db_subs: The query returned no result Mar 11 11:02:21 [11475] ERROR:db_mysql:db_mysql_new_connection: driver error: Access denied for user 'openser'@'localhost' (using password: YES) Mar 11 11:02:21 [11475] ERROR:core:db_do_init: could not add connection to the poolMar 11 11:02:21 [11475] ERROR:usrloc:register_udomain: failed to open database connection Mar 11 11:02:21 [11475] ERROR:registrar:domain_fixup: failed to register domain Mar 11 11:02:21 [11475] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 324 Mar 11 11:02:21 [11475] CRITICAL:core:fix_expr: fix_actions error Mar 11 11:02:21 [11475] ERROR:core:main: failed to fix configuration with err code -1 Mar 11 11:02:21 [11475] NOTICE:presence:destroy: destroy module .../*
I tried to log on MySQL database as root user, and i got exactly the same error. I can't understand why it says */"Access denied for user 'openser'@'localhost' (using password: YES)" /*even when i log on as root,
You have to rea the mysdl manual and learn how to grant privileges to users and why this error appears. If someone else installed mysql for you, ask him for the root password and how to legin to the mysql server.
and i don't undestand the meaning of the last line */"Mar 11 11:02:21
[11475] NOTICE:presence:destroy: destroy module .../* " (may i recall that i want to use Kamailio as a presence server).
This is a notice message that the module is destroying internal structure, it is nothing to worry about.
Cheers, Daniel
Thanks in advance for your help. Cheers, Sara
On Wed, Mar 11, 2009 at 11:22 AM, Daniel-Constantin Mierla < miconda@gmail.com mailto:miconda@gmail.com> wrote:
Please cc all the time to mailing lists.
If you reported an issue and solved it, then it is nice to close the discussion thread by saying what was wrong and how was solved. Others coming later and reading mailing list archive can learn from your experience.
Thanks, Daniel
On 03/11/2009 10:47 AM, Sara EL KABIRI wrote:
Hello, Thanks a lot for you help. I've already solved the problem :-) Regards, Sara On Wed, Mar 11, 2009 at 8:09 AM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com> <mailto:miconda@gmail.com <mailto:miconda@gmail.com>>> wrote: Hello, On 03/09/2009 08:48 PM, Sara EL KABIRI wrote: Hello, I've installed kamailio 1.4.3 (without tls) on ubuntu by following the provided INSTALL guide. I want to use it as a presence server but i've got some problems starting it. "kamctl start" returns nothing. check the syslog file for errors. There you can get some hint. Alternatively, set log_stderror=yes in your config file and run "kamailio" (/usr/sbin/kamailio or /usr/local/sbin/kamailio if installed from sources) and see what you get on the screen. Cheers, Daniel and "kamctl moni" returns "Error opening kamailio's FIFO /tmp/kamailio_fifo" I've checked in my .cfg file and the 'loadmodule' and 'modparam' lines related to mi-fifo module are uncommented. I've checked also the mi-fifo module was installed indeed (mi_fifo.so appears in /usr/local/lib/kamailio/modules directory). Could anyone help please? -- Sara
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> <mailto:Users@lists.kamailio.org <mailto:Users@lists.kamailio.org>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla http://www.asipto.com -- S.
-- Daniel-Constantin Mierla http://www.asipto.com
-- S.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla http://www.asipto.com
On Monday 16 March 2009, Sara EL KABIRI wrote:
Thanks. I have already logged on to the mysql server and granted all the privileges to the user that was being rejected at kamailio's database authentication... And i still get the same error.
Hi Sara,
have you tried to login with the 'mysql' console client using the same credentials as in the configuration? MySQL is sometimes a bit picky with the hostnames..
What i don't understand is that in Kamailio's config file, whether i set the db_url parameter to the "root" user or to the "openser" one:
*modparam("uri_db", "db_url", "mysql://root:<password>@localhost/openser")* or *modparam("uri_db", "db_url", "mysql://openser:<password> @localhost/openser")*
i get indifferently "*Access denied for user 'openser'@'localhost' (using password: YES)*".
Perhaps you've some modules without a modparam statement that configures a db_url in your cfg. They will then use the default credentials which are 'openser' and a default password. I noticed in the logs that the usrloc module fails for example, do you've a db_url for this module too?
Cheers,
Henning
Hello,
On 03/16/2009 03:01 PM, Henning Westerholt wrote:
On Monday 16 March 2009, Sara EL KABIRI wrote:
Thanks. I have already logged on to the mysql server and granted all the privileges to the user that was being rejected at kamailio's database authentication... And i still get the same error.
Hi Sara,
have you tried to login with the 'mysql' console client using the same credentials as in the configuration? MySQL is sometimes a bit picky with the hostnames..
What i don't understand is that in Kamailio's config file, whether i set the db_url parameter to the "root" user or to the "openser" one:
*modparam("uri_db", "db_url", "mysql://root:<password>@localhost/openser")* or *modparam("uri_db", "db_url", "mysql://openser:<password> @localhost/openser")*
i get indifferently "*Access denied for user 'openser'@'localhost' (using password: YES)*".
Perhaps you've some modules without a modparam statement that configures a db_url in your cfg. They will then use the default credentials which are 'openser' and a default password. I noticed in the logs that the usrloc module fails for example, do you've a db_url for this module too?
from the previous logs, seems that the module with problems is usrloc - check if db_url for that module is set properly.
Cheers, Daniel
On Mon, Mar 16, 2009 at 2:46 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
from the previous logs, seems that the module with problems is usrloc - check if db_url for that module is set properly.
Cheers, Daniel
It was a problem in setting db_url for usrloc... I set the param properly, but Kamailio is still not starting. Here's the log now: * ims@ims-desktop:~$ sudo /etc/init.d/kamailio start Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065
Mar 16 15:29:42 [5973] INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Mar 16 15:29:42 [5975] NOTICE:core:main: version: kamailio 1.4.3-notls (i386/linux) Mar 16 15:29:42 [5975] INFO:core:main: using 32 Mb shared memory Mar 16 15:29:42 [5975] INFO:core:main: using 1 Mb private memory per process Mar 16 15:29:42 [5975] INFO:sl:mod_init: Initializing StateLess engine Mar 16 15:29:42 [5975] INFO:tm:mod_init: TM - initializing... ims@ims-desktop:~$ Mar 16 15:29:42 [5975] INFO:maxfwd:mod_init: initializing... Mar 16 15:29:42 [5975] INFO:usrloc:ul_init_locks: locks array size 512 Mar 16 15:29:42 [5975] INFO:registrar:mod_init: initializing... Mar 16 15:29:42 [5975] INFO:textops:mod_init: initializing... Mar 16 15:29:42 [5975] ERROR:db_mysql:db_mysql_submit_query: driver error on query: Can't find file: './openser/version.frm' (errno: 13) Mar 16 15:29:42 [5975] ERROR:core:db_do_query: error while submitting query Mar 16 15:29:42 [5975] ERROR:core:db_table_version: error in db_query Mar 16 15:29:42 [5975] ERROR:uri_db:mod_init: Error while querying table version Mar 16 15:29:42 [5975] ERROR:core:init_mod: failed to initialize module uri_db Mar 16 15:29:42 [5975] ERROR:core:main: error while initializing modules Mar 16 15:29:42 [5975] NOTICE:presence:destroy: destroy module ... *
On Monday 16 March 2009, Sara EL KABIRI wrote:
It was a problem in setting db_url for usrloc... I set the param properly, but Kamailio is still not starting. Here's the log now:
ims@ims-desktop:~$ sudo /etc/init.d/kamailio start [..] Mar 16 15:29:42 [5975] ERROR:db_mysql:db_mysql_submit_query: driver error on query: Can't find file: './openser/version.frm' (errno: 13)
Hi Sara,
it seems there is a problem in the setup of your openser installation, as the version table file could not be opened from mysql. Try "select * from openser.version;" with a mysql client to see if its a general error.
Cheers,
Henning
On Mon, Mar 16, 2009 at 4:01 PM, Henning Westerholt < henning.westerholt@1und1.de> wrote:
Hi Sara,
it seems there is a problem in the setup of your openser installation, as the version table file could not be opened from mysql. Try "select * from openser.version;" with a mysql client to see if its a general error.
Cheers,
Henning
It is appearently a general error. The "*select * from penser.version;*" throws the same error "*ERROR 1017 (HY000): Can't find file: './openser/version.frm' (errno: 13)*"
What should i do ?
On Monday 16 March 2009, Sara EL KABIRI wrote:
It is appearently a general error. The "*select * from penser.version;*" throws the same error "*ERROR 1017 (HY000): Can't find file: './openser/version.frm' (errno: 13)*"
re-install the openser tables
Cheers,
Henning
On Mon, Mar 16, 2009 at 4:41 PM, Henning Westerholt < henning.westerholt@1und1.de> wrote:
On Monday 16 March 2009, Sara EL KABIRI wrote:
It is appearently a general error. The "*select * from penser.version;*" throws the same error "*ERROR 1017 (HY000): Can't find file: './openser/version.frm' (errno: 13)*"
re-install the openser tables
Cheers,
Henning
Hi again,
I reinstalled the openser tables, and restarted kamailio ->
*ims@ims-desktop:~$ sudo /etc/init.d/kamailio restart Listening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.0.99 [192.168.0.99]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.0.99 [192.168.0.99]:5065 Aliases: tcp: ims-desktop.local:5065 tcp: localhost:5065 udp: ims-desktop.local:5065 udp: localhost:5065
Mar 16 17:06:02 [6368] INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Mar 16 17:06:02 [6370] NOTICE:core:main: version: kamailio 1.4.3-notls (i386/linux) Mar 16 17:06:02 [6370] INFO:core:main: using 32 Mb shared memory Mar 16 17:06:02 [6370] INFO:core:main: using 1 Mb private memory per process Mar 16 17:06:02 [6370] INFO:sl:mod_init: Initializing StateLess engine Mar 16 17:06:02 [6370] INFO:tm:mod_init: TM - initializing... ims@ims-desktop:~$ Mar 16 17:06:02 [6370] INFO:maxfwd:mod_init: initializing... Mar 16 17:06:02 [6370] INFO:usrloc:ul_init_locks: locks array size 512 Mar 16 17:06:02 [6370] INFO:registrar:mod_init: initializing... Mar 16 17:06:02 [6370] INFO:textops:mod_init: initializing... Mar 16 17:06:02 [6370] INFO:xlog:mod_init: initializing... Mar 16 17:06:02 [6370] INFO:acc:mod_init: initializing... Mar 16 17:06:02 [6370] INFO:auth:mod_init: initializing... Mar 16 17:06:02 [6370] INFO:auth_db:mod_init: initializing... Mar 16 17:06:02 [6370] NOTICE:presence:mod_init: initializing module ... Mar 16 17:06:02 [6370] INFO:presence:restore_db_subs: The query returned no result Mar 16 17:06:02 [6370] INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 220 kb Mar 16 17:06:02 [6370] INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 220 kb Mar 16 17:06:02 [6373] NOTICE:presence:child_init: init_child [3] pid [6373] Mar 16 17:06:02 [6371] NOTICE:presence:child_init: init_child [1] pid [6371] Mar 16 17:06:02 [6372] NOTICE:presence:child_init: init_child [2] pid [6372] Mar 16 17:06:02 [6375] NOTICE:presence:child_init: init_child [4] pid [6375] Mar 16 17:06:02 [6377] NOTICE:presence:child_init: init_child [5] pid [6377] Mar 16 17:06:02 [6379] NOTICE:presence:child_init: init_child [6] pid [6379] Mar 16 17:06:02 [6380] NOTICE:presence:child_init: init_child [7] pid [6380] Mar 16 17:06:03 [6384] NOTICE:presence:child_init: init_child [-1] pid [6384] Mar 16 17:06:03 [6383] NOTICE:presence:child_init: init_child [8] pid [6383] Mar 16 17:06:03 [6389] NOTICE:presence:child_init: init_child [9] pid [6389] Mar 16 17:06:03 [6390] NOTICE:presence:child_init: init_child [10] pid [6390] Mar 16 17:06:03 [6394] NOTICE:presence:child_init: init_child [11] pid [6394] Mar 16 17:06:03 [6397] NOTICE:presence:child_init: init_child [-4] pid [6397] Mar 16 17:06:03 [6370] NOTICE:presence:child_init: init_child [0] pid [6370] Mar 16 17:06:03 [6396] NOTICE:presence:child_init: init_child [12] pid [6396] * *ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ sudo netstat -anp | grep 5065 tcp 0 0 192.168.0.99:5065 0.0.0.0:* LISTEN 6370/kamailio tcp 0 0 127.0.0.1:5065 0.0.0.0:* LISTEN 6370/kamailio udp 0 0 192.168.0.99:5065 0.0.0.0:* 6370/kamailio udp 0 0 127.0.0.1:5065 0.0.0.0:* 6370/kamailio ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ kamctl moni ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")' in your config ERROR: and also have loaded the mi_fifo module.*
It seems that Kamailio is now working fine. Approximately fine i would say because of the error throwed by "*kamctl moni*"... Is there something to worry about?
On Monday 16 March 2009, Sara EL KABIRI wrote:
[..] Mar 16 17:06:03 [6396] NOTICE:presence:child_init: init_child [12] pid [6396]
*ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ sudo netstat -anp | grep 5065 tcp 0 0 192.168.0.99:5065 0.0.0.0:* LISTEN 6370/kamailio tcp 0 0 127.0.0.1:5065 0.0.0.0:* LISTEN 6370/kamailio udp 0 0 192.168.0.99:5065 0.0.0.0:* 6370/kamailio udp 0 0 127.0.0.1:5065 0.0.0.0:* 6370/kamailio ims@ims-desktop:~$ ims@ims-desktop:~$ kamctl moni ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")' in your config ERROR: and also have loaded the mi_fifo module.*
It seems that Kamailio is now working fine. Approximately fine i would say because of the error throwed by "*kamctl moni*"... Is there something to worry about?
Hi Sara,
yes, it seems to work fine now. :-) The error with the FIFO is nothing to worry about, you can easily fix it when you include the necessary statements to the cfg. You need a loadmodule and a modparam statement for the fifo module, take a look at the default cfg for an example.
Cheers,
Henning
On Mon, Mar 16, 2009 at 5:22 PM, Henning Westerholt < henning.westerholt@1und1.de> wrote:
On Monday 16 March 2009, Sara EL KABIRI wrote:
[..] Mar 16 17:06:03 [6396] NOTICE:presence:child_init: init_child [12] pid [6396]
*ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ ims@ims-desktop:~$ sudo netstat -anp | grep 5065 tcp 0 0 192.168.0.99:5065 0.0.0.0:* LISTEN 6370/kamailio tcp 0 0 127.0.0.1:5065 0.0.0.0:* LISTEN 6370/kamailio udp 0 0 192.168.0.99:5065 0.0.0.0:* 6370/kamailio udp 0 0 127.0.0.1:5065 0.0.0.0:* 6370/kamailio ims@ims-desktop:~$ ims@ims-desktop:~$ kamctl moni ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")' in your config ERROR: and also have loaded the mi_fifo module.*
It seems that Kamailio is now working fine. Approximately fine i would
say
because of the error throwed by "*kamctl moni*"... Is there something to worry about?
Hi Sara,
yes, it seems to work fine now. :-) The error with the FIFO is nothing to worry about, you can easily fix it when you include the necessary statements to the cfg. You need a loadmodule and a modparam statement for the fifo module, take a look at the default cfg for an example.
Cheers,
Henning
Thanks a lot for your help. I'm grateful :-) About the mi_fifo module, i've checked that in my cfg file before, and the loadmodule and modparam statements are set correctly...
*loadmodule "mi_fifo.so" modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")*
On Monday 16 March 2009, Sara EL KABIRI wrote:
yes, it seems to work fine now. :-) The error with the FIFO is nothing to worry about, you can easily fix it when you include the necessary statements to the cfg. You need a loadmodule and a modparam statement for the fifo module, take a look at the default cfg for an example.
Thanks a lot for your help. I'm grateful :-) About the mi_fifo module, i've checked that in my cfg file before, and the loadmodule and modparam statements are set correctly...
*loadmodule "mi_fifo.so" modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")*
Hi Sara,
this is strange. If you increase the debug level to 4, you should see some message about the module loading. Is the mi_fifo module correctly loaded? Perhaps you configured another path in another modparam statement, so that the first one is overwritten, and subsequently not found from the ctl command?
Cheers,
Henning
Hello While compiling Kamailio's jabber module.... this error appears:
In file included from xjab_jcon.c:43: xode.h:31:19: error: expat.h: No such file or directory In file included from xjab_jcon.c:43: xode.h:281: error: expected specifier-qualifier-list before âXML_Parserâ make[1]: *** [xjab_jcon.o] Error 1 make[1]: Leaving directory `/usr/src/kamailio/kamailio-1.5.0-notls/modules/jabber' make: *** [modules] Error 2
Its only works if I exclude the jabber module. What could be the problem? Are there any modules dependencies? Thanks Regards Joao Pereira
Hello Does anyone knows about a project like the old SERWEB that was used as a GUI in SER? Are there any similar projects for use with Kamailio? Thanks Regards Joao Pereira
Yes - take a look at SIREMIS.
Joao Gomes Pereira wrote:
Hello Does anyone knows about a project like the old SERWEB that was used as a GUI in SER? Are there any similar projects for use with Kamailio? Thanks Regards Joao Pereira
I have been using Siremis with 1.5, it's quite good. Very happy I installed it.
On Mon, Mar 16, 2009 at 5:12 PM, Alex Balashov abalashov@evaristesys.com wrote:
Yes - take a look at SIREMIS.
Joao Gomes Pereira wrote:
Hello Does anyone knows about a project like the old SERWEB that was used as a GUI in SER? Are there any similar projects for use with Kamailio? Thanks Regards Joao Pereira
-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users