Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Registered FOP2 Failes to connect

Registered FOP2 Failes to connect

Scheduled Pinned Locked Moved Support
20 Posts 4 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    nicolas
    wrote on last edited by
    #10

    You should be looking at some kind of firewall.antivirus blocking access to port tcp/4445. Or you might want to try with a different browser. Did you try with google chrome?

    1 Reply Last reply
    0
    • Y
      Y
      yahdie
      wrote on last edited by
      #11

      I tried Chrome, IE & Firefox. The anti-virus is the same on all machines MS Security Essentials

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #12

        open the javascript console in chrome and look at the output, it will help you see what is going on.

        1 Reply Last reply
        0
        • Y
          Y
          yahdie
          wrote on last edited by
          #13

          Here below are the results:

          wav false VM50:1
          set session context VM50:1
          general VM50:1
          formato wav VM50:1
          Client has HTML5 web sockets! VM50:1
          setLang VM50:1
          set menu VM50:1
          set menu queue VM50:1
          Client has HTML5 web sockets! VM50:1
          set session extension VM50:1
          GET http://192.168.16.22/fop2/fop2-variablesGENERAL.txt 404 (Not Found) prototype.js:1530
          Second Init after loading variables VM50:1
          Attempt to connect to port 4445 VM50:1
          intento conectar web socket en ws://192.168.16.22:4445 VM50:1
          WebSocket connection to 'ws://192.168.16.22:4445/' failed: Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing
          WebSocket Error VM50:1
          event.returnValue is deprecated. Please use the standard event.preventDefault() instead. VM51:988
          Event {clipboardData: undefined, cancelBubble: false, returnValue: true, srcElement: WebSocket, defaultPrevented: false…}
          VM50:1
          ws close event 0 VM50:1
          close event 0 VM50:1
          on close reseteo a cero VM50:1
          intento conectar web socket en ws://192.168.16.22:4445 VM50:1
          WebSocket connection to 'ws://192.168.16.22:4445/' failed: Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing
          WebSocket Error VM50:1
          Event {clipboardData: undefined, cancelBubble: false, returnValue: true, srcElement: WebSocket, defaultPrevented: false…}
          VM50:1
          ws close event 0 VM50:1
          close event 0 VM50:1

          1 Reply Last reply
          0
          • K
            K
            kwintes
            wrote on last edited by
            #14

            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"

            1 Reply Last reply
            0
            • N
              N
              nicolas
              wrote on last edited by
              #15

              Maybe you are not experiencing the same as other users, it might seems so, but it most probably not the same as IE7 worked for you. If that is the case, then adobe flash is not having issues, and your problems might be related to websockets. There is an article in www.fop2.com/blog talking about issues with firefox and secure websockets (that are not supported in fop 2.26, but are in 2.27). So, most probably disabling websockets in /var/www/html/fop2/js/presence.js will fix your issue with firefox and chrome. Upgrading to the latest fop2 version, and enabling the server secure certificates if you access fop2 via https will make it work with websockets on both browsers (but be advised that configuring those certs is not that easy, and making the browsers accept a self signed websocket certificate is difficult as they do not work transparently as when simply accessing a secure website).

              AstLinux developers put together a nice summary page on making fop2/ssl work:

              http://doc.astlinux.org/userdoc:tt_asterisk-fop2-ssl

              Best regards,

              1 Reply Last reply
              0
              • Y
                Y
                yahdie
                wrote on last edited by
                #16

                it most probably not the same as IE7 worked for you

                Actually, IE10 is not working with FOP2; no browsers on this PC allow me to connect. Other PCs at that location are logged into FOP2 without issues.

                1 Reply Last reply
                0
                • N
                  N
                  nicolas
                  wrote on last edited by
                  #17

                  [quote]it most probably not the same as IE7 worked for you

                  Actually, IE10 is not working with FOP2; no browsers on this PC allow me to connect. Other PCs at that location are logged into FOP2 without issues.[/quote]

                  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

                  1 Reply Last reply
                  0
                  • K
                    K
                    kwintes
                    wrote on last edited by
                    #18

                    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|" />"

                    1 Reply Last reply
                    0
                    • N
                      N
                      nicolas
                      wrote on last edited by
                      #19

                      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': '' }.

                      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.

                      1 Reply Last reply
                      0
                      • K
                        K
                        kwintes
                        wrote on last edited by
                        #20

                        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).

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups