/var/run/asterisk does not exist

Bug #63713 reported by Anders Wallenquist
4
Affects Status Importance Assigned to Milestone
asterisk (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Asterisk 1.2.7: The /etc/init.d/asterisk - startscript has to enshore that the catalog /var/run/asterisk are created with user and group asterisk. Without this catalog asterisk will not start.

Work a round:

sudo mkdir /var/run/asterisk
sudo chown asterisk:asterisk /var/run/asterisk
sudo /etc/init.d/asterisk start

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Which version of Ubuntu are you using ? Which version of asterisk package (dpkg -l asterisk*) ?

Revision history for this message
Anders Wallenquist (aw) wrote : Re: [Bug 63713] Re: /var/run/asterisk does not exist

Lionel Porcheron skrev:
> Which version of Ubuntu are you using ?

Ubuntu 6.06, 2.6.15-27-server
> Which version of asterisk
> package (dpkg -l asterisk*) ?
>
>
aw@homer ~ $ sudo asterisk -V
Asterisk 1.2.7.1

and

aw@asterisk:~$ sudo asterisk -V
Password:
Asterisk 1.2.7.1-BRIstuffed-0.3.0-PRE-1n

aw@asterisk:~$ dpkg -l asterisk*
Önskat=Okänd(U)/Installera(I)/Radera(R)/Rensa(P)/Håll(H)
| Status=Ej(N)/Installerad(I)/Konf.(C)/Uppackad(U)/Misslyckad(F)/Delvis(H)
|/ Fel?Inget(=)/Håll(H)/Ominstallera(R)/Båda(X) (Status,Fel: versaler=illa)
||/ Namn Version Beskrivning
+++-==============-==============-============================================
ii asterisk 1.2.7.1.dfsg-2 Open Source Private Branch Exchange
(PBX) -
ii asterisk-brist 1.2.7.1.dfsg-2 Open Source Private Branch Exchange
(PBX) -
rc asterisk-chan- 0.6.5-1 Common ISDN API 2.0 implementation for
Aster
un asterisk-class <ingen> (beskrivning saknas)
ii asterisk-confi 1.2.7.1.dfsg-2 config files for asterisk
un asterisk-confi <ingen> (beskrivning saknas)
un asterisk-dev <ingen> (beskrivning saknas)
un asterisk-doc <ingen> (beskrivning saknas)
un asterisk-oh323 <ingen> (beskrivning saknas)
ii asterisk-promp 0.8-2 Swedish voice prompts for Asterisk
un asterisk-rate- <ingen> (beskrivning saknas)
un asterisk-sound <ingen> (beskrivning saknas)
un asterisk-sound <ingen> (beskrivning saknas)
ii asterisk-sound 1.2.7.1.dfsg-2 sound files for asterisk

I believe there is a typo in /etc/init.d/asterisk

70
71 if [ ! -e `dirname $PIDFILE` ];then
72 mkdir `dirname $PIDFILE`
73 chown asterisk.asterisk `dirname $PIDFILE`
74 fi
75

chown asterisk:asterisk

as it is now owner and group still are root:root.

By the way.. I have touble getting a Digium Wildcard TE110P T1/E1 to
work with the zaptel-module. I had to recompile to get the modules to
load. But i still can't load chan_zap into asterisk and the small red
light does not light-up (Digium says that light whould light when
kernel-modules are loaded). Havent found any bug reports on the zaptel
module. My local Digium reseller tells me to change to RHEL or Fedora
:-( Should I try with Edgy asterisk/zaptel-packages instead? Do I have
to backport or can I use the binaries? How can I tell if the TE110P-card
really are working? (Are there any Ubuntu asterisk 1.2.7.1/zapata 1.2.5
with TE110P working out there?)

Regards
Anders Wallenquist
Kreawit

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Do you mean that /var/run/asterisk but belong to root:root instead of asterisk:asterisk due to the typo (that would be a dup of #47813).

If so, we should (and will) consider a dapper-updates task for it.

For your other issue, please fill a new bug (I am not sure to understand it well).

Changed in asterisk:
status: Unconfirmed → Needs Info
Revision history for this message
Anders Wallenquist (aw) wrote :

Yes this is a dup of #47813 (it was marked as fix so I didn't see it)

And for the zaptel issue I don't now yet if it is a hardware och software problem

Revision history for this message
Ante Karamatić (ivoks) wrote :

This is fixed in feisty. Sorry, but for problems with configuring asterisk you should look somewhere else, not on bug list.

Changed in asterisk:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.