Replies: 4 comments 2 replies
-
The Cronicle UI makes a direct websocket connection to the worker server running the log, to stream the live log to the client (user). It looks like your worker server isn't accessible via its LAN IP on the Cronicle port (3012), so the live log cannot be displayed. There are a wide variety of reasons why this would be the case, all depending on your server architecture. Play with some of these configuration options to see what works for you:
Note that Cronicle is still working, and your job still completes (and the job output should appear at that point). This is just an issue with displaying the live log in real-time. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
@Drallas if you are using reverse proxy it might get complicated with ws. Check your browser console for errors. One of the issues I recall is that you need to provide extra route for socket.io in you nginx config. Take a look: Also, if your proxy upgrade http to https then websocket will not work (by design) |
Beta Was this translation helpful? Give feedback.
-
Similar issue was just discussed @jhuckaby are you going to use built-in browser ws-client on the 2.0? On of the thing causing issue like above is that by default socket.io serves it's client library automatically (it's not loaded from htdocs), so that link is lost behind proxy. |
Beta Was this translation helpful? Give feedback.
-
Yup, v2.0 uses native WebSockets in the browser (and the amazing ws module on the server-side). This will simplify everything greatly, and eliminate many problems people are having with socket.io and proxies. Also with v2.0, everything (and I mean everything) goes through a single native WebSocket connection to the master server. This should fix a ton of problems people are having with live log view, etc. Also, HTTPS (SSL) is 100% fully supported end-to-end, and it is now the default. |
Beta Was this translation helpful? Give feedback.
-
I have a python script that makes a connection to a database that takes about 1 minute to be executed, at which time an error message appears in the event log:
Log Watcher: Server Connect Error: Error: websocket error (http://server ip:3012) *
How can I solve this problem?
Target called to own server
Thanks
Beta Was this translation helpful? Give feedback.
All reactions