Two Pid’s Shown In Asterisk Service Status
Hello List,
Good day,
We have faced an issue in Asterisk, the issue is we are not able to make manager connections and we could see two pid’s for the service asterisk status command. The sequence of operations in our setup goes here,
1) Linux machine is rebooting , we have issued a service asterisk restart command.
2) Tried to connect from an application to asterisk.
The manger connections lost. Did anyone faced such issues or any solutions in latest versions of Asterisk to handle such situation. Best regards, Ruban.S
Siemens Limited, IC BT SSP ES R&D IPI 1
SP Infocity, Block B, 2nd Floor,
#40, MGR Salai, Kandanchavadi, Perungudi, Chennai – 600 096
Tel: +91 44 33524336
Mobile: +91 9500084833
mailto:kantharuban.s@siemens.com
3 thoughts on - Two Pid’s Shown In Asterisk Service Status
What does “ps aux | grep asterisk” say?
jg
Hi Jg and All, Good day, Unfortunately we did not take the ps command output during problem time. We have taken the below command outputs
[root@CentOS ~]# netstat -lnp | grep asterisk tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN 4136/asterisk tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 4146/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 4136/asterisk udp 0 0 0.0.0.0:4873 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15626 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15627 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4364 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18446 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:11790 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18447 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:11791 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4240 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4497 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:14482 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:14483 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4372 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17428 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17429 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4121 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17690 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17691 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4507 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4635 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4765 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:11684 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4516 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:11685 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4263 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:2727 0.0.0.0:* 4136/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:16684 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4140 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:16685 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4141 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:16946 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4531 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:16947 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4800 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17220 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 4136/asterisk udp 0 0 0.0.0.0:17221 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4165 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4422 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4679 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4296 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18638 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15566 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4942 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17486 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18639 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15567 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17487 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:12626 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:12627 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17492 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:13524 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17493 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:13525 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15448 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15449 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4955 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18908 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15324 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18909 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:15325 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4703 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4448 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:16356 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:16357 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18790 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18791 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4339 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17396 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18036 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:12020 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17397 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:18037 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:12021 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:11000 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:11001 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17660 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4477 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:17661 0.0.0.0:* 4146/asterisk udp 0 0 0.0.0.0:4606 0.0.0.0:* 4146/asterisk unix 2 [ ACC ] STREAM LISTENING 11764 4136/asterisk /var/run/asterisk/asterisk.ctl unix 2 [ ACC ] STREAM LISTENING 11767 4146/asterisk /var/run/asterisk/asterisk.ctl
[root@CentOS ~]#
[root@CentOS ~]# service asterisk status asterisk (pid 4146 4136) is running…
Will these help to identify the problem. I can also give the messages logs from Asterisk taken at the time of problem.
Best regards, Ruban.S
—–Original Message—
Hi Jg and All,
Here is the logs snippet from the /var/log/asterisk/messages
[Apr 1 12:48:58] WARNING[4136] http.c: Got 1 addresses
[Apr 1 12:48:58] WARNING[4146] http.c: Got 1 addresses
[Apr 1 12:48:58] ERROR[4146] tcptls.c: Unable to bind AMI server to 0.0.0.0:5038: Address already in use
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_setcallerid.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_setcallerid.so’ will not be initialized as it may cause instability.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_setcallerid.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_setcallerid.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_setcallerid.so’ will not be initialized as it may cause instability.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_setcallerid.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Error loading module ‘res_pktccops’: /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Apr 1 12:49:12] WARNING[4146] loader.c: Error loading module ‘res_pktccops’: /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Apr 1 12:49:12] WARNING[4146] loader.c: Error loading module ‘format_sln16.so’: /usr/lib/asterisk/modules/format_sln16.so: undefined symbol: ast_format_unregister
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘format_sln16.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Error loading module ‘format_sln16.so’: /usr/lib/asterisk/modules/format_sln16.so: undefined symbol: ast_format_unregister
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘format_sln16.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_page.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_page.so’ will not be initialized as it may cause instability.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_page.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_page.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_readfile.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_page.so’ will not be initialized as it may cause instability.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_readfile.so’ will not be initialized as it may cause instability.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_page.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_readfile.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_readfile.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 1 12:49:12] WARNING[4146] loader.c: Error loading module ‘app_dahdiscan.so’: /usr/lib/asterisk/modules/app_dahdiscan.so: undefined symbol: ast_channel_walk_locked
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_readfile.so’ will not be initialized as it may cause instability.
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_dahdiscan.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_readfile.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4146] loader.c: Error loading module ‘app_dahdibarge.so’: /usr/lib/asterisk/modules/app_dahdibarge.so: undefined symbol: ast_debug_get_by_file
[Apr 1 12:49:12] WARNING[4136] loader.c: Error loading module ‘app_dahdiscan.so’: /usr/lib/asterisk/modules/app_dahdiscan.so: undefined symbol: ast_channel_walk_locked
[Apr 1 12:49:12] WARNING[4146] loader.c: Module ‘app_dahdibarge.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_dahdiscan.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] loader.c: Error loading module ‘app_dahdibarge.so’: /usr/lib/asterisk/modules/app_dahdibarge.so: undefined symbol: ast_debug_get_by_file
[Apr 1 12:49:12] WARNING[4136] loader.c: Module ‘app_dahdibarge.so’ could not be loaded.
[Apr 1 12:49:12] WARNING[4136] chan_skinny.c: Failed to start listening to 0.0.0.0:2000: Address already in use
[Apr 1 12:49:12] WARNING[4146] chan_sip.c: !!! PLEASE NOTE: Setting ‘nat’ for a peer/user that differs from the global setting can make
[Apr 1 12:49:12] WARNING[4136] chan_sip.c: !!! PLEASE NOTE: Setting ‘nat’ for a peer/user that differs from the global setting can make
[Apr 1 12:49:12] WARNING[4146] chan_sip.c: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
[Apr 1 12:49:12] WARNING[4146] chan_sip.c: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
[Apr 1 12:49:12] WARNING[4146] chan_sip.c: !!! use the global ‘nat’ setting and do not set ‘nat’ per peer/user.
[Apr 1 12:49:12] WARNING[4146] chan_sip.c: !!! (config category=’884104′ global force_rport=’Yes’ peer/user force_rport=’No’)
[Apr 1 12:49:12] WARNING[4136] chan_sip.c: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
[Apr 1 12:49:12] WARNING[4136] chan_sip.c: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
[Apr 1 12:49:12] WARNING[4136] chan_sip.c: !!! use the global ‘nat’ setting and do not set ‘nat’ per peer/user.
[Apr 1 12:49:12] WARNING[4136] chan_sip.c: !!! (config category=’884104′ global force_rport=’Yes’ peer/user force_rport=’No’)
[Apr 1 12:49:12] WARNING[4146] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Apr 1 12:49:12] WARNING[4146] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Apr 1 12:49:12] WARNING[4146] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Apr 1 12:49:12] WARNING[4146] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Apr 1 12:49:12] WARNING[4146] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Apr 1 12:49:12] WARNING[4146] chan_mgcp.c: Failed to bind to 0.0.0.0:2727: Address already in use
[Apr 1 12:49:12] WARNING[4136] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Apr 1 12:49:12] WARNING[4136] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Apr 1 12:49:12] WARNING[4136] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Apr 1 12:49:12] WARNING[4136] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Apr 1 12:49:12] WARNING[4136] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Apr 1 12:49:13] WARNING[4164] db.c: Error executing SQL: database is locked
[Apr 1 12:49:16] ERROR[4136] pbx_dundi.c: Unable to bind to 0.0.0.0 port 4520: Address already in use
[Apr 1 12:49:18] WARNING[4164] db.c: Error executing SQL: database is locked
[Apr 1 12:50:03] WARNING[4164] db.c: Error executing SQL: database is locked
[Apr 1 13:40:15] WARNING[4521] db.c: Couldn’t execute statment: database is locked
[Apr 1 13:40:21] WARNING[4521] db.c: Couldn’t execute statment: database is locked
[Apr 1 13:40:21] WARNING[4521] db.c: Couldn’t execute statment: database is locked
[Apr 1 13:40:24] WARNING[4521] db.c: Couldn’t execute statment: database is locked
[Apr 1 13:40:29] WARNING[4521] db.c: Couldn’t execute statment: database is locked
[Apr 1 13:40:31] WARNING[4521] db.c: Couldn’t execute statment: database is locked
[Apr 1 13:40:36] WARNING[4521] db.c: Couldn’t execute statment: database is locked
Best regards, Ruban.S
—–Original Message—