Unable to connect to the UCP Node Server because: 'Error: xhr poll error'

Hi!

I upgraded my system from 6.12.65-28 to 10.13.66-16

Now in the UCP I get the folling error message:

Unable to connect to the UCP Node Server because: ‘Error: xhr poll error’

Any idea how to fix this?

Thanks

Stephan

Tried to restart the service

fwconsole start ucpnode

Unable to run Pre-Asterisk hooks, because Asterisk is already running on PID 1919 and has been running for 4 hours, 46 minutes, 54 seconds
UCP Server has already been running for 0:4:46:47.387

From the ucp_out.log

Starting FreePBX…FreePBX is Ready!
Asterisk version is: 13.11.2
Loading all UCP Modules…
Loading…conferencespro.js
Loading…xmpp.js
Done!
Server up and running at 8001 port

From the ucp-err.log

/var/www/html/admin/modules/ucpnode/node/lib/server.js:159
if (serverS.address()) {
^
TypeError: Cannot call method ‘address’ of null
at stop (/var/www/html/admin/modules/ucpnode/node/lib/server.js:159:14)
at EventEmitter. (/var/www/html/admin/modules/ucpnode/node/lib/server.js:115:4)
at EventEmitter.emit (events.js:117:20)
at Socket.emit (events.js:95:17)
at TCP.close (net.js:466:12)
Unable to connect to asterisk!
Unable to connect to asterisk!
{ [Error: Disconnected from the server] code: 10001 }

/var/www/html/admin/modules/ucpnode/node/lib/freepbx.js:93
throw “There was an error with MySQL Connection”;
^
There was an error with MySQL Connection

The upgrade was done with the commercial System Admin module. (Just bought it.)

I have set

[client]
user=root
password=mypassword

in my.cnf

I get this error too. UCP is down for me.

I have tried to restart the service
and
fwconsole start ucpnode too.

Check this out

Thanks. I ended up just removing UCP and then UCP Node Server through the UI, then installing it again. Possible bad interaction with XMPP, as that wouldn’t install without PHP whoops error. So far UCP is working, but will not install XMPP until I hear it is good…I see others are having issues with updating XMPP too.

Next time this happens please try from the CLI. It’ll give verbose output which is useful in fixing these issues.

I just had the same problem, but haven’t fixed it yet. FPBX 14.0.11
I get a popup in the UCP: "Unable to connect to the UCP Node Server because: ‘Error: xhr poll error’.
Then, sometimes I’ll get “Unable to authenticate…” something with xhr - couldn’t catch the entire message.

I recently started experiencing the same symptoms. I hadn’t looked into it enough to post yet, but most of the fixes mentioned in the forums didn’t seem to work. The usual xhr poll error continuously pops up, but the authenticate intermittently shows up for a brief second. I haven’t tried uninstalling and reinstalling the module yet, though.

If you can ignore the popups, the UCP still seems to work. Should I “remove” it or “uninstall” it? What’s the difference?

Assuming it passes a firewall. Did you open the necessary ports?

Same question to you.

Assuming it worked before for you, check your browser console and watch what happens.

Firewall isn’t even running. This started just after I ran the system upgrades. Never had this issue before.

Browser Console says this over and over and over.

jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322 GET http://mypbx:8001/socket.io/?token=3d5e3ce9ecdeace74d25abbd7ccf8ad9&EIO=3&transport=polling&t=MilCN_8 net::ERR_CONNECTION_REFUSED

and

failed to load resource: net::ERR_CONNECTION_REFUSED
/ucp/#:1 Unchecked runtime.lastError: The message port closed before a response was received.
:8001/socket.io/?token=3d5e3ce9ecdeace74d25abbd7ccf8ad9&EIO=3&transport=polling&t=MilD0Wb:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
:8001/socket.io/?token=3d5e3ce9ecdeace74d25abbd7ccf8ad9&EIO=3&transport=polling&t=MilD1HC:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:942 [Deprecation] The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
Notify.requestPermission @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:942
jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322 GET http://saintasterius:8001/socket.io/?token=3d5e3ce9ecdeace74d25abbd7ccf8ad9&EIO=3&transport=polling&t=MilD2u4 net::ERR_CONNECTION_REFUSED
Request.create @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322
Request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.doPoll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Polling.poll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:335
Polling.doOpen @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:333
Transport.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
Socket.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:290
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:285
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
Manager.open.Manager.connect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322 GET http://saintasterius:8001/socket.io/?token=3d5e3ce9ecdeace74d25abbd7ccf8ad9&EIO=3&transport=polling&t=MilD4Fu net::ERR_CONNECTION_REFUSED
Request.create @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322
Request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.doPoll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Polling.poll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:335
Polling.doOpen @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:333
Transport.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
Socket.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:290
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:285
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
Manager.open.Manager.connect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
setTimeout (async)
Manager.reconnect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Socket.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:306
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:291
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Transport.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Request.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:323
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:321
setTimeout (async)
xhr.onreadystatechange @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:321
XMLHttpRequest.send (async)
Request.create @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322
Request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.doPoll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Polling.poll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:335
Polling.doOpen @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:333
Transport.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
Socket.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:290
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:285
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
Manager.open.Manager.connect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322 GET http://saintasterius:8001/socket.io/?token=3d5e3ce9ecdeace74d25abbd7ccf8ad9&EIO=3&transport=polling&t=MilD5jg net::ERR_CONNECTION_REFUSED
Request.create @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322
Request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.doPoll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Polling.poll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:335
Polling.doOpen @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:333
Transport.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
Socket.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:290
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:285
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
Manager.open.Manager.connect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
setTimeout (async)
Manager.reconnect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Socket.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:306
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:291
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Transport.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Request.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:323
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:321
setTimeout (async)
xhr.onreadystatechange @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:321
XMLHttpRequest.send (async)
Request.create @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322
Request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.doPoll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Polling.poll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:335
Polling.doOpen @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:333
Transport.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
Socket.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:290
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:285
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
Manager.open.Manager.connect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
setTimeout (async)
Manager.reconnect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Socket.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:306
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:291
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Transport.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Emitter.emit @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:466
Request.onError @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:323
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:321
setTimeout (async)
xhr.onreadystatechange @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:321
XMLHttpRequest.send (async)
Request.create @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:322
Request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.request @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
XHR.doPoll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:314
Polling.poll @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:335
Polling.doOpen @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:333
Transport.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:343
Socket.open @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:290
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:285
Socket @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279
Manager.open.Manager.connect @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:273
(anonymous) @ jsphpg_a84f8885e18c7255b6baebc581baad46.js?load_version=v14.0.3.3:279

I tried re-applying the self-signed certificate in System Admin > HTTPS Setup (I saw this in a similar thread), but it doesn’t make any difference.

This problem started after I ran system updates. The updates produced this yum error:

TITLE 1559852182 yum-update
[ timestamp: 2019-06-06 15:16:22 ]
START 1559852182 yum-clean-metadata
[ timestamp: 2019-06-06 15:16:22 ]
[ timestamp: 2019-06-06 15:32:23 ]
STOP 1559853143 yum-update 0 [insert a realllyy long line of jibberish here**]
START 1559853143 yum-update
[ timestamp: 2019-06-06 15:32:24 ]
[ timestamp: 2019-06-06 15:32:59 ]
STOP 1559853179 yum-update 0 TG9hZGVkIHBsdWdpbnM6IGZhc3Rlc3RtaXJyb3IsIHZlcnNpb25sb2NrCkxvYWRpbmcgbWlycm9yIHNwZWVkcyBmcm9tIGNhY2hlZCBob3N0ZmlsZQpObyBwYWNrYWdlcyBtYXJrZWQgZm9yIHVwZGF0ZQo=
FINISH 1559853179
[ timestamp: 2019-06-06 15:32:59 ]

Is this an actual dns, or you replaced it with the real address?
If you replaced it, are you reaching the PBX by local LAN IP, or you are using a FQDN and passing a firewall?

no, I replaced the name. I’m calling the url in the browser with the dns name assigned in our LAN’s DNS server. It’s been working for years. The firewall is not even on.

Actually, I think I fixed it… I uninstalled UCP and reinstalled it in Module Admin.

I was referring to your network firewall, not the PBX firewall.

This UCP error is usually when the necessary ports are blocked.

Well, now it works, after I reinstalled the UCP module. Something must have jammed in the system updates. Besides, if it were the network firewall, it would have been broken before today. Thanks for staying with me, though! I appreciate your attention.

Thanks for the tip. I was getting a net::ERR_CERT_DATE_INVALID message, which obviously indicated that something was amok with my Let’s Encrypt certificate. I tried to update it, but it just did not want to. Even after deleting it and recreating it, it still kept the same expiry date. But for some reason, the deletion and recreation seemed to fix the problem.

Thanks again.

1 Like