Project

General

Profile

Asterisk suddenly crashes

Added by Leopoldo Martinez almost 3 years ago

Hello, this time I have a problem with asterisk, I have a VPS with CentOS 7, 6 CPU, 16Gb RAM 320Gb ROM, with the updated version of Goautodial 4.

When the agents connect, after a while of making calls, asterisk suddenly crashes and it is impossible to start it correctly.

shows this error:

Unable to connect to remote asterisk (does /run/asterisk/asterisk.ctl exist?)

then I run this command to start the asterisk console
asterisk -c

y esta es la salida
[ Initializing Custom Configuration Options ]
XSLT support not found. XML documentation may be incomplete.
XSLT support not found. XML documentation may be incomplete.
PBX UUID: 587c58c4-d2d2-4106-ab6d-bb0cd6936b3b
[Jun 1 22:26:41] WARNING25467: features_config.c:1516 unsupported_handler: Parkinglots are no longer configurable in features.conf; parking is now handled by res_parking.conf
[Jun 1 22:26:41] WARNING25467: features_config.c:1520 unsupported_handler: The option 'parkext' is no longer configurable in features.conf.
[Jun 1 22:26:41] WARNING25467: features_config.c:1520 unsupported_handler: The option 'parkpos' is no longer configurable in features.conf.
[Jun 1 22:26:41] WARNING25467: features_config.c:1520 unsupported_handler: The option 'context' is no longer configurable in features.conf.
[Jun 1 22:26:41] NOTICE25467: dnsmgr.c:494 do_reload: Managed DNS entries will be refreshed every 300 seconds.
[Jun 1 22:26:41] NOTICE25467: cdr.c:4180 cdr_toggle_runtime_options: CDR simple logging enabled.
[Jun 1 22:26:41] NOTICE25467: loader.c:1373 load_modules: 230 modules will be loaded.
[Jun 1 22:26:41] ERROR25467: config_options.c:725 aco_process_var: Could not find option suitable for category 'opus' named 'samprate' at line 210 of
[Jun 1 22:26:41] ERROR25467: res_sorcery_config.c:307 sorcery_config_internal_load: Could not create an object of type 'opus' with id 'opus' from configuration file 'codecs.conf'
[Jun 1 22:26:41] WARNING25467: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
[Jun 1 22:26:41] ERROR25467: ari/config.c:312 process_config: No configured users for ARI
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1250 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1256 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1262 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1268 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1274 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1286 load_mysql_config: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1291 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Jun 1 22:26:41] WARNING25467: res_musiconhold.c:1953 load_module: No music on hold classes configured, disabling music on hold.
[Jun 1 22:26:41] NOTICE25467: chan_iax2.c:12389 iax2_poke_peer: Still have a callno...
[Jun 1 22:26:41] NOTICE25467: chan_iax2.c:12389 iax2_poke_peer: Still have a callno...
[Jun 1 22:26:41] NOTICE25467: chan_iax2.c:12389 iax2_poke_peer: Still have a callno...
SIP channel loading...
[Jun 1 22:26:41] NOTICE25467: chan_sip.c:31493 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[Jun 1 22:26:41] WARNING25467: channel.c:570 ast_channel_register: Already have a handler for type 'MulticastRTP'
[Jun 1 22:26:41] ERROR25467: chan_rtp.c:396 load_module: Unable to register channel class 'MulticastRTP'
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'SOLIVESA' is now Reachable. (94ms / 2000ms)
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'kamailio' is now Reachable. (1ms / 2000ms)
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'STG' is now Reachable. (26ms / 2000ms)
[Jun 1 22:26:41] NOTICE25467: confbridge/conf_config_parser.c:2095 verify_default_profiles: Adding default_menu menu to app_confbridge
[Jun 1 22:26:41] NOTICE25467: cel_custom.c:97 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Jun 1 22:26:41] NOTICE25467: app_conference.c:90 load_module: Loading app_konference module release=2.7
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'STGM' is now Reachable. (25ms / 2000ms)
Asterisk Ready.

but when trying to exit the console, asterisk crashes again and does not allow making calls.

If it is of any use, we make calls to Europe, so we must use the alaw (g711) and G729 codecs, ulaw generates noise in the call.


Replies (7)

RE: Asterisk suddenly crashes - Added by Anton Satskiy almost 3 years ago

vaglxc01*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@vaglxc01 ~]#

same issue ???

RE: Asterisk suddenly crashes - Added by Wittie Manansala almost 3 years ago

Leopoldo Martinez wrote:

Hello, this time I have a problem with asterisk, I have a VPS with CentOS 7, 6 CPU, 16Gb RAM 320Gb ROM, with the updated version of Goautodial 4.

When the agents connect, after a while of making calls, asterisk suddenly crashes and it is impossible to start it correctly.

shows this error:

Unable to connect to remote asterisk (does /run/asterisk/asterisk.ctl exist?)

then I run this command to start the asterisk console
asterisk -c

y esta es la salida
[ Initializing Custom Configuration Options ]
XSLT support not found. XML documentation may be incomplete.
XSLT support not found. XML documentation may be incomplete.
PBX UUID: 587c58c4-d2d2-4106-ab6d-bb0cd6936b3b
[Jun 1 22:26:41] WARNING25467: features_config.c:1516 unsupported_handler: Parkinglots are no longer configurable in features.conf; parking is now handled by res_parking.conf
[Jun 1 22:26:41] WARNING25467: features_config.c:1520 unsupported_handler: The option 'parkext' is no longer configurable in features.conf.
[Jun 1 22:26:41] WARNING25467: features_config.c:1520 unsupported_handler: The option 'parkpos' is no longer configurable in features.conf.
[Jun 1 22:26:41] WARNING25467: features_config.c:1520 unsupported_handler: The option 'context' is no longer configurable in features.conf.
[Jun 1 22:26:41] NOTICE25467: dnsmgr.c:494 do_reload: Managed DNS entries will be refreshed every 300 seconds.
[Jun 1 22:26:41] NOTICE25467: cdr.c:4180 cdr_toggle_runtime_options: CDR simple logging enabled.
[Jun 1 22:26:41] NOTICE25467: loader.c:1373 load_modules: 230 modules will be loaded.
[Jun 1 22:26:41] ERROR25467: config_options.c:725 aco_process_var: Could not find option suitable for category 'opus' named 'samprate' at line 210 of
[Jun 1 22:26:41] ERROR25467: res_sorcery_config.c:307 sorcery_config_internal_load: Could not create an object of type 'opus' with id 'opus' from configuration file 'codecs.conf'
[Jun 1 22:26:41] WARNING25467: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
[Jun 1 22:26:41] ERROR25467: ari/config.c:312 process_config: No configured users for ARI
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1250 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1256 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1262 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1268 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1274 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1286 load_mysql_config: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Jun 1 22:26:41] WARNING25467: res_config_mysql.c:1291 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Jun 1 22:26:41] WARNING25467: res_musiconhold.c:1953 load_module: No music on hold classes configured, disabling music on hold.
[Jun 1 22:26:41] NOTICE25467: chan_iax2.c:12389 iax2_poke_peer: Still have a callno...
[Jun 1 22:26:41] NOTICE25467: chan_iax2.c:12389 iax2_poke_peer: Still have a callno...
[Jun 1 22:26:41] NOTICE25467: chan_iax2.c:12389 iax2_poke_peer: Still have a callno...
SIP channel loading...
[Jun 1 22:26:41] NOTICE25467: chan_sip.c:31493 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[Jun 1 22:26:41] WARNING25467: channel.c:570 ast_channel_register: Already have a handler for type 'MulticastRTP'
[Jun 1 22:26:41] ERROR25467: chan_rtp.c:396 load_module: Unable to register channel class 'MulticastRTP'
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'SOLIVESA' is now Reachable. (94ms / 2000ms)
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'kamailio' is now Reachable. (1ms / 2000ms)
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'STG' is now Reachable. (26ms / 2000ms)
[Jun 1 22:26:41] NOTICE25467: confbridge/conf_config_parser.c:2095 verify_default_profiles: Adding default_menu menu to app_confbridge
[Jun 1 22:26:41] NOTICE25467: cel_custom.c:97 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Jun 1 22:26:41] NOTICE25467: app_conference.c:90 load_module: Loading app_konference module release=2.7
[Jun 1 22:26:41] NOTICE25551: chan_sip.c:24586 handle_response_peerpoke: Peer 'STGM' is now Reachable. (25ms / 2000ms)
Asterisk Ready.

but when trying to exit the console, asterisk crashes again and does not allow making calls.

If it is of any use, we make calls to Europe, so we must use the alaw (g711) and G729 codecs, ulaw generates noise in the call.

It seems your database in not running for this error "No database socket found, using '/var/lib/mysql/mysql.sock' as default."

To start your asterisk use below command:

/usr/share/astguiclient/start_asterisk_boot.pl

Thanks

RE: Asterisk suddenly crashes - Added by Leopoldo Martinez almost 3 years ago

It seems your database in not running for this error "No database socket found, using '/var/lib/mysql/mysql.sock' as default."

To start your asterisk use below command:

/usr/share/astguiclient/start_asterisk_boot.pl

Thanks

When I ran thath comando nothing is solved... ASterisk continue down, and calls stoped... any solution to prevent asterisk crashes?

This is the Results whe i ran the command you say above.

[root@gsi asterisk]# /usr/share/astguiclient/start_asterisk_boot.pl
started screen
detached screen
raised ulimit open files
Asterisk started... screen logging off
[root@gsi asterisk]# asterisk -r
Unable to connect to remote asterisk (does /run/asterisk/asterisk.ctl exist?)

RE: Asterisk suddenly crashes - Added by Leopoldo Martinez almost 3 years ago

Anton Satskiy wrote in RE: Asterisk suddenly crashes:

vaglxc01*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@vaglxc01 ~]#

same issue ???

Yes is the same Issue

RE: Asterisk suddenly crashes - Added by Leopoldo Martinez almost 3 years ago

Wittie Manansala wrote in RE: Asterisk suddenly crashes:

It seems your database in not running for this error "No database socket found, using '/var/lib/mysql/mysql.sock' as default."

To start your asterisk use below command:

/usr/share/astguiclient/start_asterisk_boot.pl

Thanks

I did it and it didn't work.

[root@gsi asterisk]# /usr/share/astguiclient/start_asterisk_boot.pl
started screen
detached screen
raised ulimit open files
Asterisk started... screen logging off
[root@gsi asterisk]# asterisk -r
Unable to connect to remote asterisk (does /run/asterisk/asterisk.ctl exist?)

So, what is the problem, and whats is the solution. I'm reading out forums of asterisk, and the don't have idea how solve it because asterisk 13.17.2-vici was modified or something.

Here the topic with the answer i got.
https://community.asterisk.org/t/asterisk-suddenly-crashes/88883/2

Please tell us how to fix it or prevent it continue happening.
I have provided all the data that they have requested in different topics, screenshots, CLI, configurations and others. It is really urgent to solve it.

RE: Asterisk suddenly crashes - Added by Wittie Manansala almost 3 years ago

Hi,

Please provide us what are the changes made to your dialer specially on asterisk side. Asterisk usually crashes out of disk space and applied some config in asterisk.

THanks

RE: Asterisk suddenly crashes - Added by Leopoldo Martinez almost 3 years ago

Wittie Manansala wrote in RE: Asterisk suddenly crashes:

Hi,

Please provide us what are the changes made to your dialer specially on asterisk side. Asterisk usually crashes out of disk space and applied some config in asterisk.

THanks

I did not make any change on asterisk. asterisk 13.17.2-vici is modified version. Is what i found on asterisk's forums. What kind of config do you mean? i need to do something to avoid asterisk's crash.

    (1-7/7)
    Go to top