Update.(and question)…
(and Thanks) – Let’s start with the Thanks. I appreciate the time you are taking to attempt to help out here very much.
followed by the question: I am unfamiliar with npm. What would it be trying (and failing) to connect to?
…and the Update:
I shutdown everything with fwconsole stop, and then renamed my /tmp folder.
I then created a new /tmp folder, gave it 777 permissions.
Next, I issued the fwconsole ma remove pm2
followed by fwconsole ma downloadinstall pm2
The resulting output:
# fwconsole ma downloadinstall pm2
No repos specified, using: [standard,extended,commercial] from last GUI settings
Starting pm2 download..
Processing pm2
Verifying local module download...Verified
Extracting...Done
Module pm2 successfully downloaded
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..
Session terminated, killing shell...The process "runuser 'asterisk' -s '/bin/bash' -c 'cd /var/www/html/admin/modules/pm2/node && mkdir -p /home/asterisk/.pm2 && mkdir -p /var/www/html/admin/modules/pm2/node/logs && export HOME=/home/asterisk && export PM2_HOME=/home/asterisk/.pm2 && export ASTLOGDIR=/var/log/asterisk && export ASTVARLIBDIR=/var/lib/asterisk && export PATH=$HOME/.node/bin:$PATH && export NODE_PATH=$HOME/.node/lib/node_modules:$NODE_PATH && export MANPATH=$HOME/.node/share/man:$MANPATH && npm install'" exceeded the timeout of 600 seconds.
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
#
Unfortunately, reading the referenced logfile is not possible, because the structure /var/www/html/admin/modules/pm2 does not exist. There is no pm2 directory under /var/www/html/admin/modules, but the installer is expecting to see ./pm2/node pre-existing in this location.
Creating those two directories as the asterisk user, and then re-running results in what so-far appears to be the same output. (It’s just sitting there saying “Running Installation…”)
However, I noticed that HTOP shows a lot of CPU being used by PM2 /home/asterisk/.pm2
Looking in this folder, I can see a logfile named pm2.log. tailing this file shows me a rapid loop of activity as follows:
2017-11-28 21:11:58: App [ucpnode] with id [1] and pid [16280], exited with code [1] via signal [SIGINT]
2017-11-28 21:11:58: Starting execution sequence in -fork mode- for app name:ucpnode id:1
2017-11-28 21:11:58: App name:ucpnode id:1 online
2017-11-28 21:11:59: App [restapps] with id [0] and pid [16279], exited with code [2] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:restapps id:0
2017-11-28 21:11:59: App name:restapps id:0 online
2017-11-28 21:11:59: App [ucpnode] with id [1] and pid [16288], exited with code [1] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:ucpnode id:1
2017-11-28 21:11:59: App name:ucpnode id:1 online
2017-11-28 21:11:59: App [restapps] with id [0] and pid [16293], exited with code [2] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:restapps id:0
2017-11-28 21:11:59: App name:restapps id:0 online
2017-11-28 21:11:59: App [ucpnode] with id [1] and pid [16295], exited with code [1] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:ucpnode id:1
2017-11-28 21:11:59: App name:ucpnode id:1 online
2017-11-28 21:11:59: App [ucpnode] with id [1] and pid [16303], exited with code [1] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:ucpnode id:1
2017-11-28 21:11:59: App name:ucpnode id:1 online
2017-11-28 21:11:59: App [restapps] with id [0] and pid [16302], exited with code [2] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:restapps id:0
2017-11-28 21:11:59: App name:restapps id:0 online
2017-11-28 21:11:59: App [ucpnode] with id [1] and pid [16311], exited with code [1] via signal [SIGINT]
2017-11-28 21:11:59: Starting execution sequence in -fork mode- for app name:ucpnode id:1
2017-11-28 21:11:59: App name:ucpnode id:1 online
I’m hoping this helps…