Any way to reinstall Freepbx without losing data?


(Arsalan) #1

Update from 13 to 14 destroyed my server now i cant see web interface extentions are working that indicate that server is working .
my only censern is recording and i have 50gb worth of recordings i want to save . so is there any way to reinstall whose system (and fix the issue) while saving recordings ?

freepbx version 14.1-1 (I think) I checked Via " yum list freepbx*"

Thankyou ,


(Itzik) #2

Very possible that a module is broken and you don’t have to reinstall the PBX.

Try to reinstall framework

fwconsole ma downloadinstall framework --force
fwconsole chwon
fwconsole reload

(Arsalan) #3

[root@localhost ~]# fwconsole ma downloadinstall framework --force
No repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings

Downloading module ‘framework’
Processing framework
Downloading…
13133679/13133679 [============================] 100%
Finished downloading
Extracting…Done
Download completed in 17 seconds
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobs…Done
installing files to /var/www/html…done
installing files to /var/lib/asterisk/bin…done
installing files to /var/lib/asterisk/agi-bin…done
Checking for upgrades…
No further upgrades necessary
framework file install done, removing packages from module
file/directory: /var/www/html/admin/modules/framework/amp_conf removed successfully
file/directory: /var/www/html/admin/modules/framework/upgrades removed successfully
file/directory: /var/www/html/admin/modules/framework/start_asterisk removed successfully
file/directory: /var/www/html/admin/modules/framework/install removed successfully
file/directory: /var/www/html/admin/modules/framework/installlib removed successfully
Compressing Framework CSS…Done
Setting Framework Version…Done
Running SQL cleanup…Done
Building Packaged Scripts…Done
Refreshing GPG Keys…Done
Generating CSS…Done
Module framework version 14.0.16.4 successfully installed
Updating Hooks…Done

[root@localhost ~]# fwconsolechown
-bash: fwconsolechown: command not found
[root@localhost ~]# fwconsole chown
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
Setting base permissions…Done
Setting specific permissions…
75298 [============================]
Finished setting permissions

[root@localhost ~]# fwconsole reload
Reloading FreePBX
Successfully reloaded
[root@localhost ~]#

Seems like everything is worked here so far but i am still not able to see web interface.


(Arsalan) #4

Any other way??


(Santiago Pioli) #5

Try to find any error that leads you to the issue and why the web UI is not working. Check httpd error logs or run fwconsole debug and see what you get.

Good luck.


(Arsalan) #6

Hello,
Thanks for reply

“fwconsole debug”

[2021-Mar-15 14:22:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71
OUT > [2021-Mar-15 14:22:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71
OUT > [2021-Mar-15 14:22:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71
OUT > [2021-Mar-15 14:22:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80
OUT > [2021-Mar-15 14:22:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80
OUT > [2021-Mar-15 14:22:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80
OUT > [2021-Mar-15 14:22:02] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml.

httpd error logs have alot in there but this look likes Issue I am facing .

[Tue Mar 09 17:25:34.942215 2021] [:error] [pid 23458] [client 192.168.100.56:52891] PHP Warning: include_once(/etc/freepbx.conf): failed to open stream: Permission denied in /var/www/html/admin/config.php on line 127
[Tue Mar 09 17:25:34.942250 2021] [:error] [pid 23458] [client 192.168.100.56:52891] PHP Warning: include_once(): Failed opening ‘/etc/freepbx.conf’ for inclusion (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/html/admin/config.php on line 127
[Tue Mar 09 17:25:34.942288 2021] [:error] [pid 23458] [client 192.168.100.56:52891] PHP Fatal error: Class ‘FreePBX’ not found in /var/www/html/admin/config.php on line 137
[Tue Mar 09 17:25:34.942336 2021] [:error] [pid 23458] [client 192.168.100.56:52891] PHP Warning: Unknown: open(/var/lib/php/session/sess_0gqfl718kil8cjp0ic48jgcul3, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[Tue Mar 09 17:25:34.942352 2021] [:error] [pid 23458] [client 192.168.100.56:52891] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0


(Communication Technologies) #7

If in the end, you do need to start over, you can find recordings here:

System recording location (assumes English):
/var/lib/asterisk/sounds/en/custom

Call recording location:
/var/spool/asterisk/monitor

VM location:
/var/spool/asterisk/voicemail/default


#8

if you can’t access the web gui, run
rm -rf /var/www/html/admin/assets/js/pbxlib_*

https://issues.freepbx.org/browse/FREEPBX-22239