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
17.88k stars 1.09k forks source link

Goaccess unable to start websocket server in piped mode on non root user/non console #1091

Open haloween opened 6 years ago

haloween commented 6 years ago

Hi there !

I want to live goaccess on a filtered data. Command i'm running is:

tail -n +1 -f /var/log/nginx/access.log|grep -v -f /goaccess/botstrings.txt -f /goaccess/removed_urls.txt|/usr/local/bin/goaccess -p /goaccess/goaccess.live.conf - It works perfectly if started from shell as ROOT.

Now first: It can't be running as root in production since that's insecure. Second thing: It needs to run in background using supervisor / anything else.

Now if i want to run that as diffrent user OR worse using supervisor as a diffrent user it doesn't work... If i su and run it as www-data it doesn't jump to websocket mode.

su - www-data -c "/goaccess/goaccess_live"

it stays @ Parsing ....

GoAccess - 1.2

haloween commented 6 years ago

Same as here: https://github.com/allinurl/goaccess/issues/868