Member
Last active 10 years ago
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.
Somehow I managed to get a mix of 2.11 and 2.26 in place :oops: My apologies
Getting everything to 2.26 solved the issue.
Question: where did you run wireshark? on the desktop machine? on the server? somewhere in between?
On the desktop machine.
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.
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).
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.
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).
Sorry for the late reply.
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|" />"
Same as the previous user:
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 ws://10.1.1.61:4445"
--
[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 ws://10.1.1.61:4445"
--
[13:26:41.656] GET http://10.1.1.61:4445/
[13:26:41.758] "intento conectar web socket en ws://10.1.1.61:4445"
--
[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"