Anytime is click “apply config” on GUI or run fwconsole ma reload, I receive error below.
fwconsole reload --verbose
locale: Cannot set LC_CTYPE to default locale: No such file or directory
Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 1
Unable to continue. 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 in /var/www/html/admin/libraries/BMO/Self_Helper.class.php on line 213
#0 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(106): FreePBX\Self_Helper->loadObject('Pm2')
#1 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(37): FreePBX\Self_Helper->autoLoad('Pm2')
#2 /var/www/html/admin/modules/iotserver/Iotserver.class.php(75): FreePBX\Self_Helper->__get('Pm2')
#3 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(124): FreePBX\modules\Iotserver->__construct(Object(FreePBX))
#4 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(37): FreePBX\Self_Helper->autoLoad('Iotserver')
#5 /var/www/html/admin/libraries/BMO/Hooks.class.php(298): FreePBX\Self_Helper->__get('Iotserver')
#6 /var/www/html/admin/libraries/BMO/Hooks.class.php(39): FreePBX\Hooks->preloadBMOModules()
#7 /var/lib/asterisk/bin/retrieve_conf(81): FreePBX\Hooks->updateBMOHooks()
#8 {main}
When tried installing PM2, then I got this:
fwconsole ma install pm2
locale: Cannot set LC_CTYPE to default locale: No such file or directory
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
Found 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: 5779f23338cdda82e1a9b20b2c91dde3
[npm-cache] [INFO] [npm] running [npm install]...
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://mirror1.freepbx.org/npm/pm2-2.10.7.tgz failed, reason: connect ETIMEDOUT 199.102.239.170:80
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/asterisk/.npm/_logs/2022-08-07T05_00_10_976Z-debug.log
[npm-cache] [ERROR] [npm] error running npm install
[npm-cache] [ERROR] error installing dependencies
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
When I checked the repo setting:
fwconsole setting MODULE_REPO
locale: Cannot set LC_CTYPE to default locale: No such file or directory
Setting of "MODULE_REPO" is (text)[https://mirror.freepbx.org]
The main issue here is that, since I was unable to run fwconsole ma reload command, the old repo setting (mirror1.freepbx.org) still persists. What can I do to point pbx to the right repo. Also, can I run a wget command to fetch module directly from https://mirror.freepbx.org?
Please help