Release 1.9.4 breaks real-time-html due to unable to authenticate websocket
I built release 1.9.4 with ./configure --enable-utf8 --enable-geoip=mmdb (as all the documentation indicates) and when enabling real-time-html it never connects and it always fails with "unable to authenticate websocket".
I noticed when using the version that RedHat installs (1.8.1) this does not happen. I then tried version 1.9.3 and that also does not have an issue.
I then tried rebuilding release 1.9.4 and including --with-openssl and it still fails. I did not include ws-auth in the config as I don't need authorization right now as this is on an internal server.
The web server is behind a load balancer so I specified ws-url to go directly to the server:port
Thanks for reporting this. Unless you're using one of the authentication options, the report should load without requiring auth, so this seems more likely to be a JavaScript issue than a back-end one.
Could you let me know which browser you're using, and whether the issue persists across different browsers?
I am using edge. However, I just tried chrome and firefox and they do the same thing. I have also realized that even with the older versions, I do not get a green dot so it seems that it is not connecting with the older versions either but falling back to the static content.
Are you able to share/send me the generated html report so I can take a look from my end?
Sure, I have attached a zip file with the html output, the script I used to generate it and the configuration file: webstats.zip However, the site, and servers, are only accessible on my company's network
I managed to get the config right, so the Apache proxy works and the WebSocket connects, and real-time-html seems to work now.
@naris , how did you solve the problem? What was the correct configuration for you? I'm having the same problem :( Thanks!