[asterisk-bugs] [JIRA] (ASTERISK-20945) "Unable to connect to remote asterisk" message on service asterisk start, even though service is running
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Wed Jan 16 15:23:45 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-20945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201646#comment-201646 ]
Matt Jordan commented on ASTERISK-20945:
----------------------------------------
So, first, sorry for whatever behavior changes this introduced. I did quite a lot of testing trying to cover all my bases, and it's clear some were missed. Ugh.
The startup sequence in Asterisk was changed to try to avoid some rather pernicious lock corruption issues that occur when a process is forked after/during a mutex access. A lot of that entailed doing two things:
# Not using our logging facilities until after the process is forked into the background (to avoid having to initialize or grab the logger facility's locks)
# Pushing as many subsystem start up sequences after the forking as possible.
This explains what Michael just pointed out - some error messages that would normally 'not appear' - since the logger subsystem couldn't actually log any of them - might start showing up since they now get dumped to stderr.
So, all that being said, I didn't see this when running on Fedora 15:
{noformat}
[root at mjordan-laptop 1.8.20.0]# service asterisk start
Starting asterisk (via systemctl): [ OK ]
[root at mjordan-laptop 1.8.20.0]# asterisk -r
Asterisk 1.8.20.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.8.20.0 currently running on mjordan-laptop (pid = 16744)
Verbosity is at least 5
Core debug is at least 5
mjordan-laptop*CLI>
{noformat}
That's odd, since the startup script should be the same.
> "Unable to connect to remote asterisk" message on service asterisk start, even though service is running
> --------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-20945
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20945
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/General
> Affects Versions: 1.8.20.0
> Environment: CentOS 5.8
> Kernel - 2.6.18-308.24.1.el5PAE
> Reporter: Warren Selby
> Attachments: asterisk-20945-remote-intro-msg.diff
>
>
> Installed asterisk 1.8.19.1, worked fine. Installed 1.8.20.0, and started seeing the following issues, with the same config files for both:
> When I start the asterisk service using "service asterisk start" from the command line, this is the output:
> {noformat}
> [root at pbx ~]# service asterisk start
> Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
> Starting asterisk:
> {noformat}
> However, the /var/run/asterisk/asterisk.ctl file is being created and the process is starting:
> {noformat}
> [root at pbx ~]# ls -lh /var/run/asterisk/
> total 4.0K
> srwxr-xr-x 1 root root 0 Jan 16 12:07 asterisk.ctl
> -rw-r--r-- 1 root root 6 Jan 16 12:07 asterisk.pid
> {noformat}
> However, I'm no longer getting the usual splash message when I connect to the asterisk console...this is what I get:
> {noformat}
> [root at pbx ~]# asterisk -r
> Verbosity is at least 3
> pbx*CLI>
> {noformat}
> I don't have any peers setup yet, or even any dialplan configured to test, but when I go through the logs, I don't find any errors or warnings that I'm not expecting.
> I've gone back to the asterisk 1.8.19.1 install and everything works as expected (no error messages, full splash about license / version on connection to console, etc). I performed make clean in my 1.8.20 source directory, then ./configure, make menuselect, make, make install, and even make config, and I'm still seeing this message pop up when restarting / starting the service.
> I went through the CHANGELOG.TXT for 1.8.20.0 and it appears there are some items talking about changing the way the process starts up (commit r376428), but I'm not enough of a coder to understand if those would cause what I'm seeing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list