goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

Release 1.9.4 breaks real-time-html due to unable to authenticate websocket

Open naris opened this issue 4 months ago • 6 comments

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

naris avatar Aug 29 '25 21:08 naris

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?

allinurl avatar Aug 29 '25 22:08 allinurl

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.

naris avatar Aug 29 '25 22:08 naris

Are you able to share/send me the generated html report so I can take a look from my end?

allinurl avatar Aug 29 '25 23:08 allinurl

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

naris avatar Sep 02 '25 19:09 naris

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 avatar Sep 03 '25 15:09 naris

@naris , how did you solve the problem? What was the correct configuration for you? I'm having the same problem :( Thanks!

dmorillo77 avatar Nov 26 '25 09:11 dmorillo77