Thanks for this @lgaetz
FYI @tm1000 I upgraded my pm2 and set the caching to NO. I re-installed UCPNODE. No Joy.
Thanks for this @lgaetz
FYI @tm1000 I upgraded my pm2 and set the caching to NO. I re-installed UCPNODE. No Joy.
Whatās the error?
Your system is EXTREMELY slow. Unfortunately if it canāt start theres not much more we can do about it.
2017-06-08 10:58 -04:00: Error: Cannot find module '../build/Debug/sqlclient'
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/ucpnode/node/node_modules/mariasql/lib/Client.js:13:11)
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 Module.require (module.js:365:17)
rm -Rf /home/asterisk/{.package_cache,.node,.node-gy,.node}
fwconsole ma delete ucpnode
fwconsole setting PM2USECACHE 0
fwconsole setting PM2USEPROXY 0
fwconsole ma downloadinstall ucpnode --edge
Please post the output of the commands above.
Trying this now. Will let you know the results. As an aside, thanks so much for helping me nib this in the bud. Sounds like you are interested to see how this goes as well.
Iāll have the output in a pastebin once it is done.
It seems to be working now!
What cracked the case?
For reference here is the output of the ucpnode_out.log:
2017-06-08 14:10 -04:00: Starting FreePBX...2017-06-08 14:10 -04:00: FreePBX is Ready!
2017-06-08 14:10 -04:00: Asterisk version is: 13.15.0
2017-06-08 14:10 -04:00: Loading all UCP Modules...
2017-06-08 14:10 -04:00: Loading...conferencespro.js
2017-06-08 14:10 -04:00: Loading...xmpp.js
2017-06-08 14:10 -04:00: Done!
2017-06-08 14:10 -04:00: Server up and running at 8001 port
2017-06-08 14:10 -04:00: Secure Server up and running at 8003 port
I ran your prompts and at the very last step of installing the ucpnode I received
[Whoops\Exception\ErrorException]
file_put_contents(/var/www/html/admin/modules/ucpnode/node/logs/install.log
): failed to open stream: No such file or directory
Could be numerous thingsā¦ I honestly had you run everything I could think of. I will have to document this in our wiki for our support staff
Try pm2 version 13.0.3.11. But do it in THIS order.
rm -Rf /home/asterisk/{.package_cache,.node,.node-gy,.node}
fwconsole ma delete ucpnode
fwconsole setting PM2USECACHE 0
fwconsole setting PM2USEPROXY 0
fwconsole ma downloadinstall pm2 --edge
fwconsole ma downloadinstall ucpnode --edge
Actually I reviewed your log and the proxy was still enabled. That could have been it. Along with deleting the folders.
When I get tot he pm2 edge install:
[Whoops\Exception\ErrorException]
file_put_contents(/var/www/html/admin/modules/pm2/node/logs/install.log): f
ailed to open stream: No such file or directory
Run it all again.
rm -Rf /home/asterisk/{.package_cache,.node,.node-gy,.node}
fwconsole ma delete ucpnode
fwconsole setting PM2USECACHE 0
fwconsole setting PM2USEPROXY 0
fwconsole ma downloadinstall pm2 --edge
fwconsole ma downloadinstall ucpnode --edge
FYI Proxy was showing disabled in the GUI
Strange. Well it works now and those settings wonāt revert on you! on new installs you might have to set them. but now you know! (You might also have to delete those foldersā¦ need to investigate)
If it happens again, Iāll just repeat the steps outlined above.