Registered FOP2 Failes to connect
Good Afternoon,
I purchased FOP2 White label license and had everything up and running fine until about 11am this morning, when I attempted to connect to the fop2 and the login page was presented. I entered my credentials and clicked login, but then the page was unable to connect to the server and counted to 16 then presented an error saying server was unavailable. I have since restarted the entire freepbx server as well as stopped and started both the fop2 service then the asterisk & fop2 service. Both to no avail.
When running a test I get the following:
Flash Operator Panel 2 - White Label Version.
Flash Operator Panel 2 - White Label License (7)
Connection to manager OK!
It's weird because it was just working three hours ago and it stopped.
Please help!
Best Regards,
Jeremy
I purchased FOP2 White label license and had everything up and running fine until about 11am this morning, when I attempted to connect to the fop2 and the login page was presented. I entered my credentials and clicked login, but then the page was unable to connect to the server and counted to 16 then presented an error saying server was unavailable. I have since restarted the entire freepbx server as well as stopped and started both the fop2 service then the asterisk & fop2 service. Both to no avail.
When running a test I get the following:
Flash Operator Panel 2 - White Label Version.
Flash Operator Panel 2 - White Label License (7)
Connection to manager OK!
It's weird because it was just working three hours ago and it stopped.
Please help!
Best Regards,
Jeremy
Comments
Is it binding to port tcp 4445?
Best regards,
10856
$ sudo netstat -lnp | grep 444
tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 10856/fop2_server
On this machine I have tried ever IE, Firefox & Chrome, tested JavaScript and installed Flash.
After putting in credentials on this machine it attempts to connect over and over again
Check if you have a local firewall enabled, and enable traffic on port tcp/4445.
No, becuase the fop2 application is served via http (port 80 or 443). Then the javascript application runs, and it will use websockets or flash to create A NEW AND DIFFERENT CONNECTION on port tcp/4445. Not with http but a custom protocol.
So, you can very well have a firewall enabling access to port 80/443, you will see the fop2 page, but then, when it really tries to connect, if there is something blocking that 4445 connection, it will fail the same way it is described in this post.
If you have a firewall, any kind, then allow port tcp/4445, that is all you need to do.
The only difference between this PC & the others is that it is only been deployed for a month while the others have been in place for about 6 months. Could it be some Windows update has broken FOP2 on this machine because it is newer and possibly the other PCs have not had that Patch installed? Where should I be looking?
Used to work.
Stopped working.
No network issues (telnet connects fine).
IE 7 seems to work
IE 8 Connecting 1 and never moves
Firefox (windows and linux): Connecting 1 2 3 4 5....
Chrome Linux: SNAP! (no idea if this worked before)
Here's a dump from the console in firefox
[13:25:20.775] POST http://10.1.1.61/fop2/setvar.php [HTTP/1.1 200 OK 9ms]
[13:25:20.779] GET http://10.1.1.61/fop2/fop2-variablesGENERAL.txt [HTTP/1.1 404 Not Found 1ms]
[13:25:20.631] "Second Init after loading variables"
[13:25:20.632] "Attempt to connect to port 4445"
[13:25:21.653] GET http://10.1.1.61:4445/
[13:25:21.587] "intento conectar web socket en [url=ws://10.1.1.61:4445]ws://10.1.1.61:4445[/url]"
--
[13:25:41.592] "WebSocket Error"
[13:25:41.593] [object Event]
[13:25:41.594] "ws close event 0"
[13:25:41.595] "close event 0"
[13:25:41.604] "on close reseteo a cero"
[13:25:41.615] "intento conectar web socket en [url=ws://10.1.1.61:4445]ws://10.1.1.61:4445[/url]"
--
[13:26:41.656] GET http://10.1.1.61:4445/
[13:26:41.758] "intento conectar web socket en [url=ws://10.1.1.61:4445]ws://10.1.1.61:4445[/url]"
--
[13:27:01.594] "WebSocket Error"
[13:27:01.595] [object Event]
[13:27:01.595] "ws close event 0"
[13:27:01.596] "close event 0"
[13:27:01.604] "on close reseteo a cero"
AstLinux developers put together a nice summary page on making fop2/ssl work:
http://doc.astlinux.org/userdoc:tt_asterisk-fop2-ssl
Best regards,
If you want to use latest browser versions, you must use latest fop2 versions. Or you can disable websockets in fop2 in /var/www/html/fop2/js/presence.js
Ok, disabled the websockets.
Now I'm stuck on "trying to connect: 1"
Tracing network communication I can see replies coming in (Follow TCP stream in Wireshark):
<msg data="GENERAL|contexto|1|" />.{ 'btn': '0', 'cmd': 'key', 'data': '****************', 'slot': '' }.{ 'btn': '0@GENERAL', 'cmd': 'version', 'data': '2.11', 'slot': '' }.<msg data="1|ping||" />.{ 'btn': '0', 'cmd': 'pong', 'data': '0', 'slot': '' }.<msg data="1|ping||" />.{ 'btn': '0', 'cmd': 'pong', 'data': '0', 'slot': '' }.
Server in debug mode says it sends them:
10.1.60.6 <= <msg data="GENERAL|contexto|1|" />
10.1.60.6 => { 'btn': '0', 'cmd': 'key', 'data': '*****************', 'slot': '' }
10.1.60.6 => { 'btn': '0@GENERAL', 'cmd': 'version', 'data': '2.11', 'slot': '' }
10.1.60.6 <= <msg data="1|ping||" />
10.1.60.6 => { 'btn': '0', 'cmd': 'pong', 'data': '0', 'slot': '' }
10.1.60.6 <= <msg data="1|ping||" />
10.1.60.6 => { 'btn': '0', 'cmd': 'pong', 'data': '0', 'slot': '' }
JS console says it does not get any "pong" replies:
--
[09:42:27.870] "intento conectar flash xml en puerto 4445"
[09:42:27.918] "Connection successful general"
[09:42:27.920] "go"
[09:42:27.925] "flash send <msg data="GENERAL|contexto|1|" />"
--
[09:42:57.946] "flash send <msg data="1|ping||" />"
[09:42:57.953] "envio ping 2"
--
[09:43:28.058] "flash send <msg data="1|ping||" />"
[09:43:28.065] "envio ping 3"
--
[09:43:58.167] "flash send <msg data="1|ping||" />"
[09:43:58.173] "envio ping 4"
[09:43:58.174] "lost connection, lack of pong reply"
[09:43:58.174] "close event 1"
[09:43:58.186] "on close reseteo a cero"
--
[09:44:08.236] "intento conectar flash xml en puerto 4445"
[09:44:08.334] "Connection successful general"
[09:44:08.335] "go"
[09:44:08.340] "flash send <msg data="GENERAL|contexto|1|" />"
Are you using FOP 2.11? You should upgrade if you want to use modern/recent OS and Browsers. In version 2.11 websockets cannot be disabled on the fop2 server side, for example, etc.
Question: where did you run wireshark? on the desktop machine? on the server? somewhere in between?
Question: Can you connect from other machines? This thread was hijacked with many people thinking they have the same problem but it is not the same problem. For example, using FOP 2.11 with the latest chrome is a recipe for problems, you *MUST* upgrade fop2 as well as you upgraded your browser.
And finally, if the connection is established, as it seems it is, but then the application is tuck on "Connection to server X", it most probably means you have some non ASCII characters in your button labels, and the button config file or mysql for autoconfiguration is not sending the data encoded in UTF8. Again, this is NOT RELATED at all with the original post on this thread.
Getting everything to 2.26 solved the issue.
On the desktop machine.
The same effects occured everywhere as it was server related. However, Chromium on a Linux desktop still goes "Snap!" immediately (can't even log in). This is not an issue for me (Chromium is not used at my customer's site).
This was not an issue, there are no non ASCII characters (or all is UTF8 as I don't ever accept any other encoding wherever I see it, UTF8 rulez).