allinurl/goaccess

“SyntaxError: Unexpected end of script” when opening HTML page

Closed this issue · 4 comments

I am running the latest allinurl/goaccess Docker container (sha256:d2e0ed3a614781472d46bd9fa3a266bb76ace9987d57f93a2e482b8d58450f46). When opening the newly generated HTML page, a blank page with a loading indicator is shown indefinitely:

Image

The browser console shows

SyntaxError: Unexpected end of script

Thanks for sharing that feedback! Do you know what commit is pulling from? Also, can you try to replicate this with a smaller dataset, like 20 lines from your access log? And please post the command you’re using and any options you’re passing to goaccess.

I’m curious because http://rt.goaccess.io/ is running the latest version as well with no issues.

Do you know what commit is pulling from?

I am using the latest tag of the allinurl/goaccess repository which was

Last pushed about 11 hours by allinurl

I am not sure which git commit it is based on.

Also, can you try to replicate this with a smaller dataset, like 20 lines from your access log? And please post the command you’re using and any options you’re passing to goaccess.

Sure. When using the single line

172.17.0.1 - - [06/Aug/2024:14:55:37 +0000] "GET / HTTP/1.1" 200 615 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" "-"

in an access.log file and running

docker run --rm -v /tmp/goaccess:/tmp/goaccess allinurl/goaccess /tmp/goaccess/access.log -o /tmp/goaccess/report.html --log-format=COMBINED

the resulting report.html file is corrupted as described in this issue: report.html.txt

Give it a try now, it should work. You might need to fetch the latest version again. Thanks so much for keeping me updated!

Yes, works fine now!