root@raspbx3:~# ls -l /tmp/
total 20
drwxr-xr-x 2 asterisk asterisk 4096 Jan 30 22:00 backup
-rwxrwxrwx 1 root root 0 Feb 4 14:59 cron.error
-rw-r–r-- 1 root root 3 Jun 7 2020 raspbx_cur_version
-rw-rw-r-- 1 asterisk asterisk 0 Dec 18 14:03 swap4jd5Bs
Got alos in the GUI 1 module need update : PM2.
When I dothe update, got an error too
Installing pm2
Installing/Updating Required Libraries. This may take a while...Running installation.. ........................
Finished updating libraries!
There was an error installing. Please review the install log. (/var/www/html/admin/modules/pm2/node/logs/install.log)
Error(s) installing pm2:
Failed to run installation scripts
Updating Hooks...Done
Unable to locate the FreePBX BMO Class 'Pm2’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install pm2 2) fwconsole ma enable pm2
root@raspbx3:~# fwconsole ma install pm2
Installing/Updating Required Libraries. This may take a while…The following messages are ONLY FOR DEBUGGING. Ignore anything that says ‘WARN’ or is just a warning
Running installation…
npm ERR! Linux 5.10.63-v7l+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “–only=production”
npm ERR! node v12.22.5
npm ERR! npm v3.10.10
npm ERR! cb.apply is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/admin/modules/pm2/node/npm-debug.log
Finished updating libraries!
There was an error installing. Please review the install log. (/var/www/html/admin/modules/pm2/node/logs/install.log)
Unable to install module pm2:
Failed to run installation scripts
Updating Hooks…Done
Chowning directories…Done
root@raspbx3:~# nano /var/www/html/admin/modules/pm2/node/logs/install.log
root@raspbx3:~# fwconsole ma enable pm2
The following error(s) occured:
Hi
Try to do that: # fwconsole ma downloadinstall pm2
or # fwconsole ma downloadinstall pm2 --edge“for any modules on the EDGE repos (non stable)”
Salut.
Essayes de forcer le téléchargement puis l’installation de PM2.
En fait, le module est téléchargé mais n’est pas activé, car il y a une version téléchargé en attente de mise à jour…
Finally, I did a full restoration from IMG file (4 days old) and restored settings from FTP backup (1 day old) via module save/restore.
During restoration, I saw in log files the same error message concerning pm2 but it works and there is no error till now.
Auto-update tell me now there are new updates available including pm2 but I’m afraid of a new disaster.
I also can say that backup/restore module seem to have some missing backups because after restoring some settings were wrong (PJSIP module) concerning codecs.
I will look at an external SSD (already bought) to install my system and forget SD cards.
That I know, your systems must be up to date for both before to backup and restore something.
About PM2, check if there is something weird about the dependencies which can break any update / install for PM2.
Concerning backup/restore, if I can compare to pfsense, it is better on pfsense because it do not take care of version - You can restore any backuped version on any running version, even with a huge difference in version, it always work !