I’ve setup a vm running AsteriskNOW starting from back on version 3, and after a recent upgrade I started experiencing some issues with UCP.
Some background info:
Recently upgraded from AsteriskNOW 6.12.65-27 to version 10.13.66-7 (FreePBX version 13), step by step.
The server is currently running Asterisk 13 at the moment (was on Asterisk 13 before the upgrade without problems), asterisk -r > core show version shows Asterisk 13.7.0.
The OS is SHMZ OS (or CentOS) 6.6 64bit.
Hypervisor is ESXi 5.5, vmware-tools is installed via vmware repos.
The problem is that, I can log in to UCP but this will show up on the top: “Unable to connect UCP Node Server because: ‘Error: xhr poll error’”.
Also on the Dashboard, the UCP Daemon has a flame icon to indicate that the UCP Node is not running.
However, as I look in the console I can stop and start the UCP node without problems.
fwconsole stop ucpnode
Stopping UCP Server
Stopped UCP Server
fwconsole start ucpnode
Starting UCP Server
Started UCP Server
Looking at the log files from /var/log/asterisk/freepbx.log, most of the logs are just warnings of depreciated function and Info that ucpnode started/stopped successfully.
However, I do occasionally see a CRITICAL log that states Connection attmemp to AMI_failed, and Tried to link /var/lib/asterisk/agi-bin/areminder failed to copy from module directory.
Searching the forums it was suggested to do a fwconsole chown to fix the permission errors, but the same logs appeared afterwards.
Next I found a discussion that states that the nodejs package is corrupt.
So I executed the below commands.
yum remove nodejs
yum remove npm (This gave me “Package(s) npm available, but not installed.”)
yum install nodejs
fwconsole ma uninstall ucpnode
fwconsole ma remove ucpnode
fwconsole ma download ucpnode
fwconsole ma install ucpnode
There were no error messages performing the above, but it didn’t help either.
I also found a suggestion that the NPM needs to be upgraded, so I entered the following.
npm install npm -g
No errors, and I did the nodejs/ucpnode removal and reinstall again but the same thing.
npm --version gives me “3.7.1” as the version number.
I did find two types of errors in /var/log/asterisk/ucp_err.log, stating that it cannot find module ‘mariasql’ and ‘…/build/Release/sqlclient’, but couldn’t find an answer aside from the nodejs/ucpnode reinstall.
The content of ucp_out.log was blank.
I also tried to telnet into port 8001 from localhost and also another vm in the same network, but was rejected. I used localhost(from the server only), Local IP and fqdn and the results were the same.
I tried manually adding an iptable entry (iptables -A INPUT -p tcp --dport 8001 -j ACCEPT), but that made no difference.
The firewall of FreePBX was Off so I tried enabling this and did the setup, but port 8001 was still not accessible.
Would this be the issue?
Aside from the above, the Dashboard seems to be in well shape and I don’t have any problems aside from UCP.
Please let me know if any other information is needed.