xavier-hernandez / goaccess-for-nginxproxymanager

GoAccess Docker Image for Nginx Proxy Manager and more...
https://hub.docker.com/r/xavierh/goaccess-for-nginxproxymanager
MIT License
523 stars 39 forks source link

No reading logs after v1.1.13 #149

Closed ljpaff closed 1 year ago

ljpaff commented 1 year ago

Hi friends,

after v1.1.13 goaccess can't read log files:

NPM INSTANCE SETTING UP...

LOADING NPM PROXY LOGS

Adding proxy logs...
File /opt/log/proxy-host-6_access.log does not exist
Found (0) proxy logs...

SKIP ARCHIVED LOGS
-------------------------------
FALSE

Adding proxy archive logs...
File /opt/log/proxy-host-6_access.log.1.gz does not exist
File /opt/log/proxy-host-6_access.log.3.gz does not exist
File /opt/log/proxy-host-6_access.log.2.gz does not exist

Added (0) proxy archived logs from /opt/log...

EXCLUDE IPS

127.0.0.1

Setting GeoIP Database

DEFAULT

DEBUG

OFF

RUN NPM GOACCESS [SETTING UP STORAGE /goaccess-config/active.log] {0} @ {0/s} WebSocket server ready to accept new client connections

This is my docker-container goaccess part:

goaccess: image: xavierh/goaccess-for-nginxproxymanager:v1.1.14 container_name: goaccess restart: unless-stopped volumes:

This is my /opt/log mounted filesystem:

image

supermamon commented 1 year ago

+1

xavier-hernandez commented 1 year ago

@ljpaff and @supermamon can you pull the develop version? I've made some updates. Let me know if that works. Also, please send me a screenshot of the logs. I added a debugging message there as well. Thanks.

docker pull xavierh/goaccess-for-nginxproxymanager:develop

image: xavierh/goaccess-for-nginxproxymanager:develop

supermamon commented 1 year ago

I now get a bunch of exists but is not readable.

Things I tried:

goaccess    | NPM INSTANCE SETTING UP...
goaccess    | 
goaccess    | LOADING NPM PROXY LOGS
goaccess    | -------------------------------
goaccess    | 
goaccess    |   Adding proxy logs...
goaccess    | \tDebug2=/opt/log/proxy-host-4_access.log
goaccess    |   File /opt/log/proxy-host-4_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-43_access.log
goaccess    |   File /opt/log/proxy-host-43_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-57_access.log
goaccess    |   File /opt/log/proxy-host-57_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-75_access.log
goaccess    |   File /opt/log/proxy-host-75_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-66_access.log
goaccess    |   File /opt/log/proxy-host-66_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-31_access.log
goaccess    |   File /opt/log/proxy-host-31_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-87_access.log
goaccess    |   File /opt/log/proxy-host-87_access.log exists but is not readable
goaccess    | \tDebug2=/opt/log/proxy-host-1_access.log
xavier-hernandez commented 1 year ago

@supermamon what OS and architecture are you using?

supermamon commented 1 year ago

Raspberry Pi OS

uname: Linux rpi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux docker: version 19.03.13, build 4484c46

xavier-hernandez commented 1 year ago

@supermamon I've removed the readable check. I know I had an issue a while back reading files in ARM but I thought that was corrected but guess not.

Can you pull the image again and see if it loads the data? docker pull xavierh/goaccess-for-nginxproxymanager:develop

supermamon commented 1 year ago

That worked! Thanks!

xavier-hernandez commented 1 year ago

@supermamon so it does display data?

supermamon commented 1 year ago

yes it does.

image

ljpaff commented 1 year ago

Hi, excuse me for being late to answer.

With develop branch it works flawless

image

image

Regards

xavier-hernandez commented 1 year ago

This is now available in latest.