So, as I mentioned in this post I’d previously followed the instructions I provided a link to (in that thread) and got a working version of freepbx12. The second time I tried I ended up posting here and you can see where that led (a fresh install of freepbx 13). That said, I used the PBX Upgrader to upgrade the previous install(12) to 13.x. It seemed to complete, but now asterisk isn’t being started. Any tips?
TLDR: I upgraded a working Freepbx 12 installation to 13 and asterisk doesn’t start.
/var/lib/asterisk/bin/freepbx_engine: line 100: /var/lib/asterisk/bin/gen_amp_conf.php: Permission denied
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. 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.
[root@confbridge01 bin]# ls -la g*
-rw-r–r-- 1 asterisk asterisk 982 Feb 2 10:09 gen_amp_conf.php
Yes you would run “fwconsole chown” (where did I say or state anything else also never said this was an ownership problem). This command fixes ownership AND permissions on all freepbx assets, excluding itself. But it would also fix permissions on gen_amp_conf.php.
if you SSH into your pbx, fwconsole should be in /usr/local/sbin/fwconsole - so:
cd /usr/local/sbin
chmod +x fwconsole
then as Nagy said:
fwconsole chown
why jump to /etc/rc.d/init.d/freepbx restart? fwconsole is the command you should use to administer freepbx from the CLI. fwconsole restart, fwconsole reload, etc. They may be the same, but I am under the impression that fwconsole does additional checks, etc. You might be having a retrieve_conf error because of module issues. You might have to also do fwconsole ma upgradeall and watch for errors. If no errors, fwconsole reload and see what happens.
It looks like the freepbx restart script is a wrapper that makes calls to fwconsole.
I searched for other topics involving retrieve_conf errors and saw someone recommend issuing the command from the cli.
[root@confbridge01 init.d]# cd /var/lib/asterisk/bin
[root@confbridge01 bin]# ./retrieve_conf
Whoops\Exception\ErrorException: mkdir(): No such file or directory in file /var/www/html/admin/libraries/BMO/Media.class.php on line 34
Stack trace: