allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.26k stars 1.1k forks source link

'Error opening terminal: xterm' using docker image #2670

Closed valankar closed 5 months ago

valankar commented 5 months ago
valankar@debian /m/s/c/logs> ls -l
total 212
-rw------- 1 valankar valankar 213622 Apr 18 11:22 access.log
valankar@debian /m/s/c/logs> echo $LANG
en_US.UTF-8
valankar@debian /m/s/c/logs> docker run --rm -it -v .:/mnt/logs -e LANG=$LANG allinurl/goaccess /mnt/logs/access.log
Error opening terminal: xterm.

Any idea how to fix this?

allinurl commented 5 months ago

If you're working with Docker and want to generate an HTML report, you'll need to use the -o report.html option. Otherwise, you'll have to access the container directly. Let me know if that helps.

valankar commented 5 months ago

Thanks. I was able to do a build in container image and the binary works for the text console.