As a follow up, I ran curl -L https://www.npmjs.com/install.sh | sh and then I was able to run
amportal a ma download ucpnode
amportal a ma install ucpnode
and it installed correctly. Slap me if this broke something else.
As a follow up, I ran curl -L https://www.npmjs.com/install.sh | sh and then I was able to run
amportal a ma download ucpnode
amportal a ma install ucpnode
and it installed correctly. Slap me if this broke something else.
I saw you fixed your issue, I was having the same issue today where the log was showing a permissions error creating the directory.
I was moving from 13.0.11 to 13.0.12
Command line installation worked for me when logged in as root.
fwconsole ma uninstall ucpnode
fwconsole ma remove ucpnode
fwconsole ma download ucpnode
fwconsole ma install ucpnode
I had tried that but they didn’t help. I reinstalled npm because doing npm install npm -g actually generated an error during the update and corrupted npm to not run at all. I had tried Andrew’s full routine on Sep 4 above and it didn’t work for me.
[root@sip13 ~]# fwconsole ma uninstall ucpnode
The following error(s) occured:
Starting ucpnode download…
Processing ucpnode
Verifying local module download…Verified
Extracting…Done
Module ucpnode successfully downloaded
[root@sip13 ~]# fwconsole ma install ucpnode
sh: node: command not found
Node is not installed
Unable to install module ucpnode:
Dependencies Resolved
Installing:
nodejs x86_64 0.10.40-1.shmz65.1.6 pbx 4.6 M
Install 1 Package(s)
Total download size: 4.6 M
Installed size: 16 M
Is this ok [y/N]: y
Downloading Packages:
nodejs-0.10.40-1.shmz65.1.6.x86_64.rpm | 4.6 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nodejs-0.10.40-1.shmz65.1.6.x86_64 1/1
Verifying : nodejs-0.10.40-1.shmz65.1.6.x86_64 1/1
Installed:
nodejs.x86_64 0:0.10.40-1.shmz65.1.6
Complete!
[root@sip13 ~]# yum install npm
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Package npm-1.3.6-5.el6.noarch is obsoleted by nodejs-0.10.40-1.shmz65.1.6.x86_64 which is already installed
Nothing to do
[root@sip13 ~]# fwconsole ma install ucpnode
Installing/Updating Required Libraries. This may take a while…
Finished updating libraries!
Generating CSS…Done
Module ucpnode successfully installed
Updating Hooks…Done
[Whoops\Exception\ErrorException]
filetype(): Lstat failed for /var/lib/asterisk/ucp/pids/ucp.pid
ma [-f|–force] [-d|–debug] [–format="…"] [-R|–repo="…"] [args1] … [argsN]
Remove this file and try again
Hi,
I have the last updates, But I can’t install UCP node.
This RPM is installed:
nodejs-0.10.40-1.shmz65.1.6.i686
when I run “amportal a ma install ucpnode” I receive this errors:
module.js:340
throw err;
^
Error: Cannot find module 'inherits’
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/lib/node_modules/npmconf/npmconf.js:3:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Node Package Manager is not installed
Unable to install module ucpnode:
Do you have any solution for this?
For those having an issue with nodejs and ucpnode in latest freepbx release 13.0.190.19-1.shmz65.1.53
Run the following in SSH/CLI interface
yum remove nodejs
yum remove npm
yum install nodejs
Once completed, reboot the server and go into the GUI to Admin-Module Admin and check for updates. Run the update process again until all modules are up to date. If you have dependencies that fail, you may have to 'yum remove bad dependency) ’ and then install again.
As always, make sure you have latest stable release of the distro if at all possible.
dont use amportal, use fwconsule moduleadmin uninstall package (module name without stars) or simply
fwconsole ma remove ucpnode
then
fwconsole ma install ucpnode
I tried the yum install ucpnode and received the following:
yum install ucpnode
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
No package ucpnode available.
Error: Nothing to do
Any idea why it would say no package ucpnode available?
fwconsole ma not yum
It looks good until it errors out [exception] There is no process by that name
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
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/ucpnode/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/ucpnode/node/package.json: e74d075b2a56bb1160978ef287801afe
[npm-cache] [INFO] [npm] cache exists
[npm-cache] [INFO] [npm] clearing installed dependencies at /var/www/html/admin/modules/ucpnode/node/node_modules
[npm-cache] [INFO] [npm] …cleared
[npm-cache] [INFO] [npm] retrieving dependencies from /home/asterisk/.package_cache/npm/2.15.11/e74d075b2a56bb1160978ef287801afe.tar.gz
[npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/ucpnode/node/bower.json does not exist. Skipping install
[npm-cache] [INFO] [npm] done extracting
[npm-cache] [INFO] successfully installed all dependencies
Finished updating libraries!
Stopping old running processes…Done
Starting new UCP Node Process…
[Exception]
There is no process by that name
Try a reboot then:
fwconsole ma install ucpnode
After successful installation, reboot once more then verify normal operation.
Rebooted and ran the command and received the following:
fwconsole ma install ucpnode
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
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/ucpnode/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/ucpnode/node/package.json: e74d075b2a56bb1160978ef287801afe
[npm-cache] [INFO] [npm] cache exists
[npm-cache] [INFO] [npm] clearing installed dependencies at /var/www/html/admin/modules/ucpnode/node/node_modules
[npm-cache] [INFO] [npm] …cleared
[npm-cache] [INFO] [npm] retrieving dependencies from /home/asterisk/.package_cache/npm/2.15.11/e74d075b2a56bb1160978ef287801afe.tar.gz
[npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/ucpnode/node/bower.json does not exist. Skipping install
[npm-cache] [INFO] [npm] done extracting
[npm-cache] [INFO] successfully installed all dependencies
Finished updating libraries!
Stopping old running processes…Done
Starting new UCP Node Process…
[Exception]
There is no process by that name
Have you tried running the upgrade thru the GUI?
throws error page on the screen:
here is no process by that name
/var/www/html/admin/modules/pm2/Pm2.class.php
* Reset counters for application
* @method update
*/
public function reset($name) {
$name = $this->cleanAppName($name);
$out = $this->getStatus($name);
if(empty($out)) {
throw new \Exception(“There is no process by that name”);
}
$this->runPM2Command("reset ".$name);
i’ve tried uninstalling pm2 and reinstalling it to no avail
I have actually encountered that exact same issue with other pages. When I get those, I I run a restore to before the nodejs upgrade. Do you have SysAdmin Pro? Have you upgraded to the latest FreePBXversion 13.0.192.8? If not, I’d restore to pre-nodejs time then run the FreePBX upgrade before ugrading to latest module version if at all possible. Something may have gotten lost during the php or nodejs upgrade process around that time. They had a few bugs they’ve since ironed out.
I’ll look into this next week. It really has nothing to do with nodejs.
Ok try with ucpnode v13.0.34.7
Make sure system’s HTTPS proxy is pointing to HTTP address, not https.
https_proxy="http://ip.address.for.proxy"
reboot after changes
yum update --skip broken
we have had the same issue with upgrading ucp node, xmpp, zulu and pm2. all sorted with https=http and yum update --skip broken