Asterisk Not Starting on Reboot.

rtmey

New Member
Joined
Jan 16, 2010
Messages
2
Reaction score
0
I have had a working PBX in a flash system for several months now. It has been working without issue and the computer has been restarted multiple times without issue in the past. All of a sudden this week, the phones ceased to work. I SSHed in and found that asterisk was not running. I am able to manually start asterisk with the amportal start command. I also checked /etc/rc.local file. A command to run amportal is present in that file. Other things in that file are run on startup (I also use the PBX in a flash server as a cups server, and cups starts up from /etc/rc.local). I can also run rc.local manually and it starts asterisk.

All other parts of the server seem operational...ie web server is running, freepbx in working but does not show asterisk up and running.

I finally just started a cron job to start amportal every 10 minutes. That appears to work. It is not the most elegant solution.

Anyone else having similar problems. Any better solutions?

Thanks.

Here is the Status info:
********************************************************************
PBX in a Flash Version 1.4 Daemon Status
********************************************************************
* Asterisk * ONLINE * Zaptel * ONLINE * MySQL * ONLINE *
* SSH * ONLINE * Apache * ONLINE * Iptables * ONLINE *
* Fail2ban * ONLINE * IP Connect* ONLINE * Ip6tables * ONLINE *
* BlueTooth * ONLINE * Hidd * ONLINE * NTPD * ONLINE *
* Sendmail * ONLINE * Samba * OFFLINE * Webmin * LOADING *
* Ethernet0 * N/A * Ethernet1 * N/A * Wlan0 * N/A *
********************************************************************
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.10
* Addons Source Version : 1.4.7
********************************************************************
localhost on - eth0
CentOS release 5.2 (Final) :32 Bit Kernel: 2.6.18-92.1.22.el5
 
I have had a working PBX in a flash system for several months now. It has been working without issue and the computer has been restarted multiple times without issue in the past. All of a sudden this week, the phones ceased to work. I SSHed in and found that asterisk was not running. I am able to manually start asterisk with the amportal start command. I also checked /etc/rc.local file. A command to run amportal is present in that file. Other things in that file are run on startup (I also use the PBX in a flash server as a cups server, and cups starts up from /etc/rc.local). I can also run rc.local manually and it starts asterisk.

All other parts of the server seem operational...ie web server is running, freepbx in working but does not show asterisk up and running.

I finally just started a cron job to start amportal every 10 minutes. That appears to work. It is not the most elegant solution.

Anyone else having similar problems. Any better solutions?

Thanks.

Here is the Status info:
********************************************************************
PBX in a Flash Version 1.4 Daemon Status
********************************************************************
* Asterisk * ONLINE * Zaptel * ONLINE * MySQL * ONLINE *
* SSH * ONLINE * Apache * ONLINE * Iptables * ONLINE *
* Fail2ban * ONLINE * IP Connect* ONLINE * Ip6tables * ONLINE *
* BlueTooth * ONLINE * Hidd * ONLINE * NTPD * ONLINE *
* Sendmail * ONLINE * Samba * OFFLINE * Webmin * LOADING *
* Ethernet0 * N/A * Ethernet1 * N/A * Wlan0 * N/A *
********************************************************************
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.10
* Addons Source Version : 1.4.7
********************************************************************
localhost on - eth0
CentOS release 5.2 (Final) :32 Bit Kernel: 2.6.18-92.1.22.el5


I would be curious to see your system logs, including your asterisk log when you start up.
 
I agree, it would be interesting to see both the messages log and asterisk/full log.
 
Asterisk logs are empty, until asterisk is started. I will look for the message logs tonight.

Thanks
rtmey
 
Asterisk logs are empty, until asterisk is started. I will look for the message logs tonight.

Thanks
rtmey

That doesn't make sense. Why would the asterisk logs be empty? I have restarted my machine a few times and the logs never clear out. When they reach a certain limit they just rotate.

I think you are getting confused with the CLI and the log files.

Make sure you are looking under: /var/log/asterisk

For the files: full, full.1, full.2, full.3, etc.
 

Members online

Forum statistics

Threads
26,708
Messages
174,549
Members
20,274
Latest member
CONNXTA
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top