[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:25:06 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:25 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0118576) svnbot (reporter) - 2010-02-25 15:25
 https://issues.asterisk.org/view.php?id=16802#c118576 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 248864

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

------------------------------------------------------------------------
r248864 | tilghman | 2010-02-25 15:25:05 -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=248864 

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




More information about the asterisk-bugs mailing list