@esarant wrote:
Hello,
When I log at the dashboard for freepbx i get a red “toast” message with some errors related to pm2. I tried reinstalling from cli and I got the following:
fwconsole ma install pm2 Installing/Updating Required Libraries. This may take a while...The following me ssages are ONLY FOR DEBUGGING. Ignore anything that says 'WARN' or is just a warning npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info. Installed npm-cache v0.7.0 Running installation.. [npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory [npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/pm2/node/composer.json does not exist. Skipping install [npm-cache] [INFO] [npm] config file exists [npm-cache] [INFO] [npm] cli exists [npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/pm2/node/package.json: d533e5835beb0c379c4c571fb8ceaecc [npm-cache] [INFO] [npm] running [npm install]... [npm-cache] [INFO] [npm] installed npm dependencies, now archiving [npm-cache] [INFO] [npm] archiving dependencies from /var/www/html/admin/modules/pm2/node/node_modules [npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/pm2/node/bower.json does not exist. Skipping install [npm-cache] [INFO] [npm] installed and archived dependencies [npm-cache] [INFO] successfully installed all dependencies Finished updating libraries! [Symfony\Component\Process\Exception\ProcessFailedException] The command "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 && /var/www/html/admin/modules/pm2/node/node_modules/pm2/bin/pm2 ping'" failed. Exit Code: 1(General error) Output: ================ Error Output: ================ module.js:338 throw err; ^ Error: Cannot find module 'semver' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/var/www/html/admin/modules/pm2/node/node_modules/pm2/bin/pm2:4:14) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) ma [-f|--force] [-d|--debug] [--edge] [--color] [--skipchown] [-e|--autoenable] [--skipdisabled] [--snapshot="..."] [--format="..."] [-R|--repo="..."] [-t|--tag="..."] [args1] ... [argsN]
Any tips on how to fix that?
Im running FreePBX distro 10.13.66-22 with asterisk 13.19.1
Thank you.
Posts: 2
Participants: 2