Astrundir in'/etc/asterisk is set to but the directory does not exist

I was running under distr 10.13.66.12 and had asterisk 13 running when framework became disabled at 13.0.124. I tried to manually CLI framework for an upgrade an system froze. I rebooted and I get the PHP Fatal Error and the astrdundir problem.

Is there a way to reinitialize GUI and system. Nothing is working.

Mike

It says warning in configuration could not create directory. Is there no manual command to rebuild or reload so system can work?

astrundir is /var/run/asterisk. You might have a full disk or corruption in /var. Check the disk conditions with df -h and see whether the directory is there with ls -l /var/run. If the ownership/permissions on the directory are wrong, you can use fwconsole chown to fix it.

fwconsole does not work
I tried amportal chown and it returns cannot make directory -1
Space is less than 19% used of total disk
etc/asterisk is there but the mkdir -p failure occurs when I use amportal chown

If it’s talking about “astrundir” then it’s not about /etc/asterisk, it’s about /var/run/asterisk as I said.

Also try df -i to see inode usage. Post the actual output here of the commands and the errors you are getting from fwconsole / amportal.

WARNING ERROR IN CONFIGURATION
astrundir in’/etc/asterisk is set to but the directory does not exist, Attempting to create it with: 'mkdir -p’
mkdir: missing operand
try ‘mkdir --help’ for more information
ERROR COULD NOT CREATE
attempt to execute ‘mkdir -p’ failed with an exit code of 1
use must create this directory and try again

Could you please post the output from the df and ls commands I listed?

I am working but maybe you can help me find a way to cut and paste. I don’t have that option when I log in to the actual pbx server to port to the postings. Is there a way to access from my windows machine so I can copy the output and paste?

putty or any SSH client should allow you to copy the output. In putty, simply highlighting the text copies it to the clipboard.

When I logged in under PUTTY

PHP Fatal error: Class ‘Symfony\Component\Console\Application’ not found in /var/www/html/admin/libraries/FWApplication.class.php on line 11
PHP Fatal error: Class ‘Symfony\Component\Console\Application’ not found in /var/www/html/admin/libraries/FWApplication.class.php on line 11

df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda2 4816896 114436 4702460 3% /
tmpfs 63695 1 63694 1% /dev/shm
/dev/sda1 76912 41 76871 1% /boot

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 73G 6.2G 63G 9% /
tmpfs 249M 0 249M 0% /dev/shm
/dev/sda1 283M 25M 244M 10% /boot

ls -l /var/run
total 140
-rw-r–r-- 1 root root 5 Jun 25 15:15 acpid.pid
srw-rw-rw- 1 root root 0 Jun 25 15:15 acpid.socket
drwxr-xr-x. 4 asterisk asterisk 4096 Jun 27 09:36 asterisk
-rw-r–r-- 1 root root 4 Jun 25 15:15 auditd.pid
drwxr-xr-x 2 avahi avahi 4096 Jun 25 15:15 avahi-daemon
drwxr-xr-x. 2 root root 4096 Oct 15 2014 console
drwxr-xr-x. 2 root root 4096 Jun 25 15:17 ConsoleKit
-rw-r–r-- 1 root root 5 Jun 25 15:17 console-kit-daemon.pid
-rw-r–r-- 1 root root 5 Jun 25 15:15 crond.pid
---------- 1 root root 0 Jun 25 15:15 cron.reboot
drwxr-xr-x. 2 root root 4096 Jun 25 15:15 dbus
-rw-r–r-- 1 root root 5 Jun 25 15:15 dnsmasq.pid
drwxr-xr-x. 2 root root 4096 Jun 25 15:15 fail2ban
drwxr-xr-x. 2 root root 4096 Oct 15 2014 faillock
drwx------. 2 haldaemon haldaemon 4096 Oct 15 2014 hald
-rw-r–r-- 1 root root 5 Jun 25 15:15 haldaemon.pid
drwx–x—. 2 root apache 4096 Jun 25 15:15 httpd
-rw-r–r-- 1 root root 4 Jun 25 15:23 incrond.pid
drwx------. 2 root root 4096 May 20 2015 lvm
drwx------. 2 root root 4096 Jun 25 15:15 mdadm
-rw-r–r-- 1 root root 5 Jun 25 15:15 messagebus.pid
drwxr-xr-x. 2 mysql mysql 4096 Jun 25 15:15 mysqld
drwxrwxr-x. 2 root root 4096 Nov 4 2014 netreport
drwxr-xr-x 2 root root 4096 Jun 9 2015 openvpn
drwxr-xr-x. 2 root root 4096 Aug 11 2014 plymouth
drwxr-xr-x. 4 root root 4096 Oct 15 2014 pm-utils
drwxr-xr-x. 2 prosody prosody 4096 Jun 25 15:14 prosody
-rw-r–r-- 1 root root 5 Jun 25 15:15 queuecallback.pid
drwx–x— 2 radiusd radiusd 4096 Oct 15 2014 radiusd
drwxr-xr-x. 2 root root 4096 Mar 25 2015 saslauthd
drwxrwxr-x. 2 root screen 4096 Jul 19 2011 screen
drwxr-xr-x. 2 root root 4096 Oct 15 2014 sepermit
drwxr-xr-x. 2 root root 4096 Oct 15 2014 setrans
-rw-r–r-- 1 root root 5 Jun 25 15:15 sshd.pid
-rw------- 1 root root 5 Jun 25 15:15 syslogd.pid
-rw-rw-r-- 1 root utmp 3456 Jun 27 13:25 utmp
-rw-r–r-- 1 root root 5 Jun 25 15:15 xinetd.pid

Thanks for the help and assistance.

Mike

Can you explain more about this? What caused it to become disabled?

I don’t know I tried to update from GUI but froze to 143, then I tried from CLI and it worked and then stopped the update at a point. Is there a way to reload or reinstall this?

Time for one of the distro guys to step in and answer. I am guessing you could do it with a yum reinstall command but don’t know for sure.

thanks for trying hopefully I will hear from someone soon.

At the CLI you can do:

fwconsole ma --edge upgrade framework

Once framework successfully upgrades, all other module upgrades should be fine

Tried but here is what I get

[[email protected] ~]# fwconsole ma --edge upgrade framework
PHP Fatal error: Class ‘Symfony\Component\Console\Application’ not found in /var/www/html/admin/libraries/FWApplication.class.php on line 11
[[email protected] ~]# amportal ma --edge upgrade framework

Please wait…

**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exist. Attempting to create it with:
'mkdir -p ’

mkdir: missing operand
Try `mkdir --help’ for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ’ failed with an exit code of 1
You must create this directory and the try again.

Does anyone know how to activate? If I do asterisk -r asterisk does run. But no GUI and no active phone system.

Bump checking for suggestions

I am able to open asterisk -r

I get this when using manager reload

localhost*CLI> manager reload
[Jun 28 08:59:38] NOTICE[9555]: manager.c:8726 __init_manager: Unable to open AMI configuration manager.conf, or configuration is invalid.

You will need to review the files in /etc/asterisk and find out what is wrong. Is there an /etc/asterisk/manager.conf and what is in it? Is there an /etc/asterisk/asterisk.conf and does it point to sensible locations for the directories?