Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2314

Watcher websocket connection origin null error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.1, 0.8.0
    • Component/s: None
    • Labels:
      None

      Description

      ZEPPELIN-2288 brings websocket origin check which breaks some changes from ZEPPELIN-1697 with the below logs

      ERROR [2017-03-24 18:44:48,184] (

      Unknown macro: {qtp655381473-17}

      NotebookWebSocketCreator.java[createWebSocket]:43) - Websocket request is not allowed by ZEPPELIN_ALLOWED_ORIGINS settings. Origin: null
      WARN [2017-03-24 18:44:48,191] (

      Unknown macro: {WebSocketClient@334099170-86}

      WatcherWebsocket.java[onWebSocketError]:67) - WatcherWebsocket socket connection error
      org.eclipse.jetty.websocket.api.UpgradeException: Didn't switch protocols
      at org.eclipse.jetty.websocket.client.io.UpgradeConnection.validateResponse(UpgradeConnection.java:314)
      at org.eclipse.jetty.websocket.client.io.UpgradeConnection.read(UpgradeConnection.java:241)
      at org.eclipse.jetty.websocket.client.io.UpgradeConnection.onFillable(UpgradeConnection.java:163)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:745)
      ERROR [2017-03-24 18:44:48,192] (

      Unknown macro: {Timer-0}

      ZeppelinClient.java[openWatcherSession]:198) - Couldn't establish websocket connection to Zeppelin
      java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: Didn't switch protocols
      at org.eclipse.jetty.util.FuturePromise.get(FuturePromise.java:123)
      at org.apache.zeppelin.notebook.repo.zeppelinhub.websocket.ZeppelinClient.openWatcherSession(ZeppelinClient.java:196)
      at org.apache.zeppelin.notebook.repo.zeppelinhub.websocket.ZeppelinClient.access$100(ZeppelinClient.java:58)
      at org.apache.zeppelin.notebook.repo.zeppelinhub.websocket.ZeppelinClient$1.run(ZeppelinClient.java:139)
      at java.util.TimerThread.mainLoop(Timer.java:555)
      at java.util.TimerThread.run(Timer.java:505)
      Caused by: org.eclipse.jetty.websocket.api.UpgradeException: Didn't switch protocols
      at org.eclipse.jetty.websocket.client.io.UpgradeConnection.validateResponse(UpgradeConnection.java:314)
      at org.eclipse.jetty.websocket.client.io.UpgradeConnection.read(UpgradeConnection.java:241)
      at org.eclipse.jetty.websocket.client.io.UpgradeConnection.onFillable(UpgradeConnection.java:163)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khalidhuseynov Khalid Huseynov
                Reporter:
                khalidhuseynov Khalid Huseynov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: