Problems Upgrading UCP Node

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.

1 Like

Ok try with ucpnode v13.0.34.7

  1. Make sure system’s HTTPS proxy is pointing to HTTP address, not https.
    https_proxy="http://ip.address.for.proxy"
    reboot after changes

  2. yum update --skip broken

  • voila.

we have had the same issue with upgrading ucp node, xmpp, zulu and pm2. all sorted with https=http and yum update --skip broken