Back last 28th November 19 I installed Asterisk 16.6.1 & FreePBX 184.108.40.206 using a pre-built image which I burned to an SD card on a Rasp Pi 4 under Buster. This still seems to be the current image. After configuring, including setting – Advanced Settings “Set Module Admin to Edge Mode” to Yes, I downloaded about 25 modules. This all went OK and I left it while I concentrated on Home Automation on the Pi 4 during which I moved the system to a SSD.
Recently I decided to focus on the Asterisk/FreePBX system so the first thing was to go to PBX Admin/Updates and update over 25 modules. This produced numerous errors that there was no such file in the var/www/html/admin/modules/cache
I deleted all the files in the cache directory and on restart got file /etc/dahdi/modules does not exist . So I created that and ran fwconsole chown I still had errors and from a similar issue noted in another forum I ran cd /var/lib/asterisk/bin then ./fwconsole ma upgrade framework --tag 220.127.116.11 This brought most modules up-to-date and a little later I update the final 3.
However, I still have a Apply Config - error
Reload failed because retrieve_conf encountered an error: 1 exit: 1
Unknown Error. Please Run /var/lib/asterisk/bin/retrieve_conf
I ran this but got
Unable to continue. Methods with the same name as their class will not be constructors in a future version of PHP; digium_phones has a deprecated constructor in /var/www/html/admin/modules/digium_phones/classes/digium_phones.php on line 31
Looks like the whole system is damaged. So the best solution might be to start again BUT I cannot restore the whole image/partition as I have the home automation developments.
I do have a backup of the partition on SD card. Which folders do I need to copy in order to restore Asterisk 16.6.1 & FreePBX 18.104.22.168 and how to I then avoid getting the same errors when updating the modules?
Sorry this is a bit long. Thanks for reading