Asterisk 10.12.0 Unable to connect to remote asterisk

I’m having issues restarting asterisk. The issues arrived in version 10.12.0 which I install via RPM. I am getting the following error message:

service asterisk restart
Stopping safe_asterisk: [ OK ]
Shutting down asterisk: [ OK ]
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Starting asterisk: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
[ OK ]

The file /var/run/asterisk/asterisk.ctl does exist!

I have searched for an answer before posting and have tried the following
deleting /var/run/asterisk/asterisk.ctl Asterisk recreates the file
checking the asterisk log files (attached) No errors I can see there
Removing my asterisk config files and replacing with the example files (Via RPM)

Here is the messages log file
[Feb 2 11:24:07] NOTICE[14144] cdr.c: CDR simple logging enabled.
[Feb 2 11:24:07] NOTICE[14144] loader.c: 205 modules will be loaded.
[Feb 2 11:24:07] NOTICE[14144] res_odbc.c: res_odbc loaded.
[Feb 2 11:24:07] NOTICE[14144] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database user found, using ‘asterisk’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database password found, using ‘asterisk’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database name found, using ‘asterisk’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database socket found, using ‘/var/lib/mysql/mysql.sock’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Feb 2 11:24:07] NOTICE[14144] config.c: Registered Config Engine mysql
[Feb 2 11:24:07] NOTICE[14144] config.c: Registered Config Engine curl
[Feb 2 11:24:07] NOTICE[14144] config.c: Registered Config Engine odbc
[Feb 2 11:24:07] WARNING[14144] res_musiconhold.c: No music on hold classes configured, disabling music on hold.
[Feb 2 11:24:07] NOTICE[14144] chan_skinny.c: Configuring skinny from skinny.conf
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Feb 2 11:24:07] ERROR[14144] chan_mobile.c: No Bluetooth devices found. Not loading module.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: Starting AEL load process.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] chan_ooh323.c: Unable to load config ooh323.conf, OOH323 disabled
[Feb 2 11:24:07] NOTICE[14144] cdr.c: CDR simple logging enabled.
[Feb 2 11:24:07] NOTICE[14144] loader.c: 205 modules will be loaded.
[Feb 2 11:24:07] NOTICE[14144] res_odbc.c: res_odbc loaded.
[Feb 2 11:24:07] NOTICE[14144] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database user found, using ‘asterisk’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database password found, using ‘asterisk’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database name found, using ‘asterisk’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database socket found, using ‘/var/lib/mysql/mysql.sock’ as default.
[Feb 2 11:24:07] WARNING[14144] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Feb 2 11:24:07] NOTICE[14144] config.c: Registered Config Engine mysql
[Feb 2 11:24:07] NOTICE[14144] config.c: Registered Config Engine curl
[Feb 2 11:24:07] NOTICE[14144] config.c: Registered Config Engine odbc
[Feb 2 11:24:07] WARNING[14144] res_musiconhold.c: No music on hold classes configured, disabling music on hold.
[Feb 2 11:24:07] NOTICE[14144] chan_skinny.c: Configuring skinny from skinny.conf
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Feb 2 11:24:07] WARNING[14144] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Feb 2 11:24:07] ERROR[14144] chan_mobile.c: No Bluetooth devices found. Not loading module.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: Starting AEL load process.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Feb 2 11:24:08] NOTICE[14144] chan_ooh323.c: Unable to load config ooh323.conf, OOH323 disabled

Is there an issue with the RPM build of version 10.12.0?
Does anyone have any new ideas on how to troublshoot this error message?

Many thanks

It is only an error if Asterisk fails to start.

If Asterisk has failed to start, I would expect to see core dump files, from which you would need to obtain backtraces.

I had a similar problem and i solved disabling some modules, in my case the problem was a MYSQL module.

This 2 links could help

asteriskdocs.org/en/3rd_Edit … -file.html

wiki.kolmisoft.com/index.php/WAR … _more_info

Thanks for the tips.

Yes as you say they are only warnings if asterisk starts. I am less concerned about the warning in the log file but wonder why I am getting the “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)” message when I restart asterisk as root.

It’s an odd one as the “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)” error message has only started showing fo me with version 10.12.0 installed from RPM.

There has been no change to my config files and the error persists even when the the default asterisk example config files are used.

From my google search so far the “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)” error message is resolved by:
Adjusting config files
Checking the log files for errors
Checking the path of /var/run/asterisk/ is set correctly in asterisk.conf
Deleting and allwing Asterisk to re create asterisk.ctl

I have tried all of thease checks and the warning persists.

It looks like two files are created when asterisk starts
asterisk.ctl asterisk.pid
and are deleated when asterisk is stoped.

Is there a timing issue here of some kind?
Maybe a permissions issue?

I have checked to see which account is running asterisk and this is what I get back

ps aux | grep asterisk

root 22472 0.0 0.0 4888 540 pts/0 S 15:56 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 22474 0.3 1.7 41512 18160 pts/0 Sl 15:56 0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c

Does this look right? Not sure how to read this.

Your user can run asterisk? SELINUX is disabled?

Yes SELINUX is disabled.

From memory the asterisk RPM installs asterisk with a user called asterisk but typicaly I login as root to administer and so may restart asterisk as root.

Anyone else start getting this error message with version 10.12.0

There was a recent change in Asterisk that caused this error to appear. It’s mostly cosmetic as far as I know and has since been fixed in the latest versions of Asterisk 8, 10, and 11.

issues.asterisk.org/jira/browse/ASTERISK-20945

Which is in the change log of v10.12.1. So if you update to v10.12.1 the error should go away.

Top news. Thanks