[SR-Users] Critical : Kamilio is not starting when loading Dispatcher module .

Sergio Charrua sergio.charrua at voip.pt
Tue Feb 23 11:47:45 CET 2021


Hi!
I don't think it is related to dispatcher module. the following error says
that something is listening port 5060 :

ERROR: <core> [core/tcp_main.c:2863]: tcp_init(): bind(d, 0x7f81495f1efc,
16) on 127.0.0.1:5060 : Address already in use

Try to execute the following command:
# netstat -anp | grep 5060

It should return something like this:
tcp        0      0 0.0.0.0:5060            0.0.0.0:*               LISTEN
    1488/asterisk
udp        0      0 0.0.0.0:5060            0.0.0.0:*
     1488/asterisk

Where, in this particular case, 1488 is Asterisk's PID.

If, after executing netstat, you get some results then some process is
listening to the same 5060 port as your Kamailio and this is the reason why
it won't start.

*Sérgio Charrua*


*www.voip.pt <http://www.voip.pt/>*
Tel.: +351  <callto:+351+91+104+12+66>21 130 71 77

Email : *sergio.charrua at voip.pt <sergio.charrua at voip.pt>*

This message and any files or documents attached are strictly confidential
or otherwise legally protected.

It is intended only for the individual or entity named. If you are not the
named addressee or have received this email in error, please inform the
sender immediately, delete it from your system and do not copy or disclose
it or its contents or use it for any purpose. Please also note that
transmission cannot be guaranteed to be secure or error-free.








On Tue, Feb 23, 2021 at 7:29 AM H Yavari <hyavari at rocketmail.com> wrote:

> Hi,
>
> Did you kill the old processes of Kamailio?
> "ERROR: <core> [core/tcp_main.c:2863]: tcp_init(): bind(d,
> 0x7f81495f1efc, 16) on 127.0.0.1:5060 : Address already in use"
>
> Please check.
>
>
> Regards,
> Hossein
>
> On Monday, February 22, 2021, 11:02:59 PM PST, Amul Tyagi <
> am at lgorithmsolutions.com> wrote:
>
>
> Dear Kamailio Team ,
>
>
>
> I have installed Kamailio on Ubuntu 18.04 with SIREMIS and its working
> fine . But I want to use the Dispatcher module for load balancing . When
> enabling the dispatcher module Kamailio is not starting up and giving error
> in syslog. Please check below the logs for your reference.
>
>
>
> root at CICTPH01LLB01:/usr/lib/x86_64-linux-gnu/kamailio/modules# kamailio -E
>
> 0(19009) INFO: <core> [core/sctp_core.c:74]: sctp_core_check_support():
> SCTP API not enabled - if you want to use it, load sctp module
>
> Listening on
>
>              udp: 127.0.0.1:5060
>
>              udp: 192.168.180.200:5060
>
>              tcp: 127.0.0.1:5060
>
>              tcp: 192.168.180.200:5060
>
> Aliases:
>
>              tcp: CICTPH01LLB01:5060
>
>              tcp: localhost:5060
>
>              udp: CICTPH01LLB01:5060
>
>              udp: localhost:5060
>
>
>
> 0(19009) INFO: <core> [core/tcp_main.c:4735]: init_tcp(): using epoll_lt
> as the io watch method (auto detected)
>
> 0(19011) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import
> bind_ob - maybe module is not loaded
>
> 0(19011) INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available
>
> 0(19011) INFO: auth [auth_mod.c:347]: mod_init(): qop set, but nonce-count
> (nonce_count) support disabled
>
> 0(19011) INFO: <core> [main.c:2683]: main(): processes (at least): 32 -
> shm size: 67108864 - pkg size: 8388608
>
> 0(19011) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer():
> SO_RCVBUF is initially 212992
>
> 0(19011) INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer():
> SO_RCVBUF is finally 425984
>
> 0(19011) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer():
> SO_RCVBUF is initially 212992
>
> 0(19011) INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer():
> SO_RCVBUF is finally 425984
>
> 21(19044) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a
> new child 0/19044
>
> root at CICTPH01LLB01:/usr/lib/x86_64-linux-gnu/kamailio/modules# 22(19053)
> INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop:  using
> epoll_lt io watch method (config)
>
>
>
>
> =================================================================================================================
>
>
>
> Feb 18 18:33:19 CICTPH01LLB01 systemd[1]: Starting Kamailio (OpenSER) -
> the Open Source SIP Server...
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio: INFO: <core>
> [core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if
> you want to use it, load sct
>
> p module
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio: INFO: <core>
> [core/tcp_main.c:4735]: init_tcp(): using epoll_lt as the io watch method
> (auto detected)
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]: Listening on
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              udp:
> 127.0.0.1:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              udp:
> 192.168.180.200:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              tcp:
> 127.0.0.1:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              tcp:
> 192.168.180.200:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]: Aliases:
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              tcp:
> CICTPH01LLB01:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              tcp:
> localhost:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              udp:
> CICTPH01LLB01:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 kamailio[18815]:              udp:
> localhost:5060
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: rr
> [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe
> module is not loaded
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: rr
> [rr_mod.c:177]: mod_init(): outbound module not available
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: auth
> [auth_mod.c:347]: mod_init(): qop set, but nonce-count (nonce_count)
> support disabled
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: <core>
> [main.c:2683]: main(): processes (at least): 32 - shm size: 67108864 - pkg
> size: 8388608
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: <core>
> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially
> 212992
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: <core>
> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally
> 425984
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: <core>
> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially
> 212992
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: <core>
> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally
> 425984
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: ERROR: <core>
> [core/tcp_main.c:2863]: tcp_init(): bind(d, 0x7f81495f1efc, 16) on
> 127.0.0.1:5060 : Address already in use
>
> Feb 18 18:33:19 CICTPH01LLB01 /usr/sbin/kamailio[18817]: INFO: <core>
> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
>
> Feb 18 18:33:19 CICTPH01LLB01 systemd[1]: kamailio.service: Control
> process exited, code=exited status=255
>
> Feb 18 18:33:19 CICTPH01LLB01 systemd[1]: kamailio.service: Failed with
> result 'exit-code'.
>
> Feb 18 18:33:19 CICTPH01LLB01 systemd[1]: Failed to start Kamailio
> (OpenSER) - the Open Source SIP Server.
>
> Feb 18 18:33:20 CICTPH01LLB01 systemd[1]: kamailio.service: Service
> hold-off time over, scheduling restart.
>
> Feb 18 18:33:20 CICTPH01LLB01 systemd[1]: kamailio.service: Scheduled
> restart job, restart counter is at 5.
>
> Feb 18 18:33:20 CICTPH01LLB01 systemd[1]: Stopped Kamailio (OpenSER) - the
> Open Source SIP Server.
>
> Feb 18 18:33:20 CICTPH01LLB01 systemd[1]: kamailio.service: Start request
> repeated too quickly.
>
> Feb 18 18:33:20 CICTPH01LLB01 systemd[1]: kamailio.service: Failed with
> result 'exit-code'.
>
> Feb 18 18:33:20 CICTPH01LLB01 systemd[1]: Failed to start Kamailio
> (OpenSER) - the Open Source SIP Server.
>
>
>
>
>
>
>
>
>
>
>
> *Regards*
>
> *Amul Tyagi*  *| **Technical Head - Major Accounts & Support *
>
> Globe : +63-9174880130
>
> Skype : amultyagi365
>
> Email  : am at lgorithmsolutions.com
>
> [image: LGO_logo]
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210223/a1f8755a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 12549 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210223/a1f8755a/attachment.jpg>


More information about the sr-users mailing list