Code Monkey home page Code Monkey logo

Comments (10)

hot22shot avatar hot22shot commented on May 13, 2024

Ok, probem solved, WebSocket was not activated on NGINX.
Once configured it works !

Cheers

from docker-firefox.

pudding1009 avatar pudding1009 commented on May 13, 2024

Hello,

could you explain more how did you fix that problem ?
I'm trying to use it but same error with the same configuration...

Thanks !

from docker-firefox.

jlesage avatar jlesage commented on May 13, 2024

You have issue with your reverse proxy? Did you see https://github.com/jlesage/docker-firefox#reverse-proxy ?

from docker-firefox.

pudding1009 avatar pudding1009 commented on May 13, 2024

Hello.

I solved the problem with WebSocket activation on the Synology reverse proxy conf.
All is fine, thanks a lot !
But sometime, I have (after navigate) error « server disconnected (code : 1006)... dont known why...

from docker-firefox.

jlesage avatar jlesage commented on May 13, 2024

This is often fixed by clearing your browser's cache.

from docker-firefox.

pudding1009 avatar pudding1009 commented on May 13, 2024

Ok, I tried but always the same error...

from docker-firefox.

jlesage avatar jlesage commented on May 13, 2024

Is it working without going through the reverse proxy? If yes, then it seems that you still have an issue with the WebSocket.
You can also open the browser's developper tools and looks at the console for errors. You will probably see that the WebSocket connection fails.

from docker-firefox.

pudding1009 avatar pudding1009 commented on May 13, 2024

actually without going through the reverse proxy, I do not have the error 1006 ...
To give more details, by the reverse proxy, the error arrives after a few minutes without activity....

Here is the console message :
util.js:218 Msg: Password Required
Util.Warn @ util.js:218
Util.Warn @ util.js:218
2util.js:218 Msg: Authentication OK
Util.Warn @ util.js:218
util.js:218 Msg: Connected (encrypted) to: Firefox
Util.Warn @ util.js:218
util.js:218 WebSocket on-close event
Util.Warn @ util.js:218
util.js:220 Msg: Server disconnected (code: 1006)
Util.Error @ util.js:220

Don't known if this could be util ?

from docker-firefox.

pudding1009 avatar pudding1009 commented on May 13, 2024

More details on error, from console of FireFox.
Test method :

  • open a FF navigator
  • go to my personnal link "https://web.mydomain.fr" (where reverse proxy link to "localhost:5800")
  • waiting 50-60s
  • then error 1006 appear

https://www.noelshack.com/2019-12-2-1552986895-error-1006.png

Starting UI... novnc-ui.min.js:1:3611
Msg: noVNC ready: native WebSockets, canvas rendering novnc-core.min.js:1:2452
novnc-core.min.js:1:2452
GET
https://web.mydomain.fr/websockify [HTTP/1.1 407 Proxy Authentication Required 14 ms]
Msg: Starting VNC handshake novnc-core.min.js:1:2452
Msg: Sent ProtocolVersion: 003.008 novnc-core.min.js:1:2452
Msg: Authenticating using scheme: 2 novnc-core.min.js:1:2452
Msg: Password Required novnc-core.min.js:1:2452
novnc-core.min.js:1:2452
Msg: Authentication OK novnc-core.min.js:1:2452
Msg: Connected (encrypted) to: Firefox novnc-core.min.js:1:2452
WebSocket on-close event novnc-core.min.js:1:2452
Msg: Server disconnected (code: 1006) novnc-core.min.js:1:2504
Util.init_logging/Util.Error https://web.mydomain.fr/js/novnc-core.min.js:1:2504
https://web.mydomain.fr/js/novnc-core.min.js:1:72736
https://web.mydomain.fr/js/novnc-core.min.js:1:73735
RFB/< https://web.mydomain.fr/js/novnc-core.min.js:1:68502
Websock.prototype.open/this._websocket.onclose< https://web.mydomain.fr/js/novnc-core.min.js:1:21394
Error while connected. novnc-core.min.js:1:2504
Util.init_logging/Util.Error https://web.mydomain.fr/js/novnc-core.min.js:1:2504
https://web.mydomain.fr/js/novnc-core.min.js:1:73453
https://web.mydomain.fr/js/novnc-core.min.js:1:73735
RFB/< https://web.mydomain.fr/js/novnc-core.min.js:1:68502
Websock.prototype.open/this._websocket.onclose< https://web.mydomain.fr/js/novnc-core.min.js:1:21394

from docker-firefox.

pudding1009 avatar pudding1009 commented on May 13, 2024

OK ! After reading this thread : novnc/noVNC#567
and particulary this post :
karinepires commented Jun 7, 2016

Hello all,
I was having the same issue in my application and decided to follow this issue just in case.
I finally managed to solve it with a different strategy.
So, to complete what @Ziris85 said, if you are using nginx as a proxy to your websocketify connection you may want to complete the configuration with different timeouts.
For example one can add the following code to the nginx configuration on the proxied block to increase the timeout to 1hour:

    proxy_read_timeout 3600s;
    proxy_send_timeout 3600s;

I think my problem was a timer set in reverse proxy, so I looking for in Synology parameters and I found this : (sorry for the UI in french)
[url=https://www.noelshack.com/2019-12-2-1553001309-reverseproxy-syno-param.png][img]https://image.noelshack.com/minis/2019/12/2/1553001309-reverseproxy-syno-param.png[/img][/url]

Initially, params was set to 60s, with new values to 3600s, all is fine !
Thanks a lot for your help !

from docker-firefox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.