Solved: Failed to open stream: Permission denied


#1

hi trying to restore a backjup file in freepbx 15. the backup was made on a freepbx 13 machine. the full error is:
fwconsole backup --restore /home/share/20210805-152914-1628173754-13.0.197.28-20452575.tgz --restorelegacycdr
Transaction ID is: 7338363e-3a2f-46eb-b133-d0ce04666d3c
Determining backup file type…type is legacy
Legacy CDR Restore Option: 1

In Common.php line 231:

fopen(/var/run/asterisk/restore_running.lock): failed to open stream: Permission denied

I went into /var/run/asterisk and there is no restore_running.lock file there. thanks for any help

update: typical eh? found the solution a few minutes after posting but spent ages trawling google before posting::
chown -R asterisk /var/run/asterisk


(Kapil Gupta) #2

or better to run fwconsole chown which will fix system permissions as needed by FreePBX.


(system) closed #3

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.