-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoAccess dont get npm logs? #30
Comments
I recommend you do "docker container logs Goaccess" it should tell you if the docker container can read your logs files. It could be a permission issue.. |
it says
thats strange. there is an large default.log file |
It doesn't currently process the default.log. It's on the list to do since it's a different log format. It should be listing all the files it found. Something like below. Are your logs stored at "/npm/data/logs" or "/root/npm/data/logs" ? I noticed that in your first comment. Please verify the location of the logs. Loading (94) archived logs... |
verified. pwd is /root/npm/data/logs |
It's not an ARM device I assume? |
Its an LXC (Ubuntu 21.04) on an Proxmox server |
@zeus1999
|
i triple checked it now. the logs are here: /root/npm/data/logs |
That good to know.
Wonder if you are having something similar to what I experienced |
Very Strange, i removed all log files restartet the system, created the container, and same problem.... |
@zeus1999 I see the issue. I didn't realize it before but your filenames are different. The app reads "proxy-host-*_access.log" files. Your file is called proxy_host-37.log. For example... What version of NPM are you running? |
according to the webui> v2.8.1 |
The latest is 2.9.16. Before we have you updating NPM or anything like that. Would it be possible to send me a sample log file? I'd like to check the log file and see if it matches the current log file structure. |
Sure, i would delete the link, after you have downloaded it. |
Got it, feel free to delete. |
@zeus1999 I think you sent me a redirection log is that correct? I need a proxy_host-*.log. It just needs to be a few lines as well. |
Sorry! My fault. Here you go: https://pastebin.com/yyyyyyyyyyyyyyyyy |
Got it! |
I've made a mod to the script that looks for the proxy files. "proxy-host-.log" except anything containing "_error.log" which will exclude the error logs for now. Can you pull down the dev version and see if it works for you? xavierh/goaccess-for-nginxproxymanager:develop |
I still can't find documentation of when this changed. I've searched the NPM repo. I do see examples of log files names in comments from 2019 that differ from comments made in 2021/2022. ¯_(ツ)_/¯ |
Thanks! But it doesnt work either. Same problem, same output. I created the container
|
can you send over the logs again? docker container logs Goaccess then can you go into the docker container itself?
|
docker container logs Goaccess
ls
|
I can confirm it works on my end using a file you sent me yesterday with the filename you are using. If you used the develop tag in the past maybe do "docker pull xavierh/goaccess-for-nginxproxymanager:develop" to get the latest. docker run --name=Goaccess --restart=always -p 7880:7880 -v /opt/sample-logs-develop:/opt/log -e SKIP_ARCHIVED_LOGS=False xavierh/goaccess-for-nginxproxymanager:develop /opt/sample-logs-develop contains one log file called proxy-host-2.log No archived logs found... |
Other than a couple of file names I don't believe there is any personal information in the screenshot. Let me know if you want me to remove it. Also, can you try going back in the container and do a "cat proxy_host-1.log" and check if any data is displayed. It should detect file permissions but maybe its not. Just want to verify that and cover all the basics. Thanks. |
Okay, i created an test folder with an proxy file (proxy_host-1.log) and gave them chmod 777. when i go in the docker shell for the container i can see the file content (cat proxy_host-1.log). but same result. i will try some things. (i repulled the image) |
Seems like a mismatch between the Arm and Amd version.
After this the Docker image reads the log files
|
Yeah I see, i could get this to run. Always stays by No archived logs found |
@zeus1999 it started working for you overall, just no archives found? Archived/old data has an extension of .gz at least in my case. Do you see anything like that on your NPM version? |
No not working. There is any compressed file. Only proxy_host-x.log and some other log files. See here: https://pastebin.com/ugLzuMxn |
@zeus1999 since there are no .gz files then it'll always tell you it didn't find any archive files. Have you tried adding the following, looks your log files are created another root?
|
@zeus1999 also please pull the latest from the develop image. This is what your docker-compose should look like. I've tried plugging everything as part of your post. You'll need to set the right timezone. goaccess:
image: xavierh/goaccess-for-nginxproxymanager:develop
container_name: goaccess
restart: always
volumes:
- /root/npm/data/logs:/opt/log
ports:
- '7880:7880'
environment:
- PUID=0
- PGID=0
- TZ=America/New_York
- SKIP_ARCHIVED_LOGS=False #optional
- BASIC_AUTH=False #optional
- BASIC_AUTH_USERNAME=user #optional
- BASIC_AUTH_PASSWORD=pass #optional |
i created the docker compose exactly from your paste: this output:
i entered the shell from the docker container and can see the logs and also read them. but same result? what am i doing wrong? |
That looks like an old image, I added a version number recently. run "docker pull image xavierh/goaccess-for-nginxproxymanager:develop" then run "docker-compose up" again |
true new log
|
but it doesnt work.... i am clueless |
A new version has been pushed out. Try that one. docker pull xavierh/goaccess-for-nginxproxymanager:develop |
I run NPM in an docker container with the following map /root/npm/data -> /data
when i add a new container:
I can open the page but it stays by zero.
ls -la (/root/npm/data/logs)
The text was updated successfully, but these errors were encountered: