Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19232

WebSocket connections fail on Tomcat 9.0.56 with Docker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 13.10
    • WebSocket
    • Windows 10 Pro 64 bit, Chrome 96, using docker image XWiki 13.10.0 on Mysql5.7.35 , Tomcat 9.0.56
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Start an XWiki DockerImage      

       

      docker run -d --name xwiki -p 38080:8080 -v /root/xwiki-n:/usr/local/xwiki -e DB_USER=root -e DB_PASSWORD=123456 -e DB_DATABASE=xwiki -e DB_HOST=192.168.220.83:31101 192.168.220.84/xwiki/xwiki:13.10.0
      

       

      1. Install Extensions Realtime WYSIWYG Editor 13.10
      2. If the case, go to Global Administration: WYSIWYG Editor,set default DEFAULT WYSIWYG EDITOR (Realtime WYSIWYG Editor)
      3.  Edit a page in Wiki mode and observe the JS console

      EXPECTED RESULTS

      The user is connected to the collaborative session.

      ACTUAL RESULTS

      The connection to the collaborative session doesn't succeed and in browser's JS console there are some error messages (see screenshots attached):

      {type: 'TIMEOUT', message: 'waited 30000ms'}
      M @ loader.js:638
      Promise.then (async)
      .....
      wysiwygEditor.js:212 Realtime is disallowed. Quitting
      WebSocket connection to 'ws://localhost:38080//websocket/xwiki/netflux' failed: 

      In XWiki console, when the server starts, there is the no warning displayed about websocket

      Attachments

        1. 捕获7.PNG
          捕获7.PNG
          20 kB
        2. 捕获6.PNG
          捕获6.PNG
          47 kB
        3. 捕获5.PNG
          捕获5.PNG
          65 kB
        4. 捕获4.PNG
          捕获4.PNG
          69 kB
        5. 捕获3.PNG
          捕获3.PNG
          61 kB
        6. 捕获1.PNG
          捕获1.PNG
          54 kB
        7. 捕获.PNG
          捕获.PNG
          63 kB
        8. image-2022-01-12-16-49-31-577.png
          image-2022-01-12-16-49-31-577.png
          61 kB
        9. image-2022-01-12-14-33-51-202.png
          image-2022-01-12-14-33-51-202.png
          25 kB
        10. image-2022-01-12-10-44-13-311.png
          image-2022-01-12-10-44-13-311.png
          25 kB

        Issue Links

          Activity

            People

              surli Simon Urli
              534737859 dyhack
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: