[asterisk-bugs] [Asterisk 0016802]: [patch] Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 25 15:24:07 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16802 
====================================================================== 
Reported By:                Brian
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16802
Category:                   Core/PBX
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.2 
JIRA:                       SWP-895 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-10 12:39 CST
Last Modified:              2010-02-25 15:24 CST
====================================================================== 
Summary:                    [patch] Unable to open pid file
'/var/run/asterisk/asterisk.pid': No such file or directory
Description: 
Debian/Ubuntu: A default build from source (without tweaking
/etc/asterisk/asterisk.conf) gives an error on boot:

"Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or
directory"

Attempting to log in with asterisk -cvv or asterisk -rvv throws:
"Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl
exist?)"

Manually creating /var/run/asterisk and restarting the application clears
the issue, but /var/run/asterisk disappears on reboot.
====================================================================== 

---------------------------------------------------------------------- 
 (0118574) svnbot (reporter) - 2010-02-25 15:24
 https://issues.asterisk.org/view.php?id=16802#c118574 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 248862

_U  branches/1.6.0/
U   branches/1.6.0/main/asterisk.c

------------------------------------------------------------------------
r248862 | tilghman | 2010-02-25 15:24:07 -0600 (Thu, 25 Feb 2010) | 29
lines

Merged revisions 248861 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r248861 | tilghman | 2010-02-25 15:22:39 -0600 (Thu, 25 Feb 2010) | 22
lines
  
  Merged revisions 248859 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r248859 | tilghman | 2010-02-25 15:21:05 -0600 (Thu, 25 Feb 2010) | 15
lines
    
    Some platforms clear /var/run at boot, which makes connecting a remote
console... difficult.
    
    Previously, we only created the default /var/run/asterisk directory at
install
    time.  While we could create it in the init script, that would not
work for
    those who start asterisk manually from the command line.  So the
safest thing
    to do is to create it as part of the Asterisk boot process.  This also
changes
    the ownership of the directory, because the pid and ctl files are
created after
    we setuid/setgid.
    
    (closes issue https://issues.asterisk.org/view.php?id=16802)
     Reported by: Brian
     Patches: 
           20100224__issue16802.diff.txt uploaded by tilghman (license 14)
     Tested by: tzafrir
  ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=248862 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-25 15:24 svnbot         Checkin                                      
2010-02-25 15:24 svnbot         Note Added: 0118574                          
======================================================================




More information about the asterisk-bugs mailing list