-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
A lot of CPU Usage and 10000 request every second in webUI like #28 #38
Comments
Just want to confirm that I'm also having this issue -- roughly 8,000 requests per second as reported by the web-ui. Running the Unraid version of the image (v1.0.5) -- everything is flawless except for this one issue. Thanks for all your effort so far -- I discovered your work via a Youtube video that explained everything! https://youtu.be/-CQcEWVBjQU |
Thanks, I thought I only one have this problem |
@masterwishx @Mission-Contro1 I deployed a new version to the develop branch. I'm adding the files now to the goaccess.conf file instead of the command line. Give it shot. docker pull xavierh/goaccess-for-nginxproxymanager:develop |
OK, Thanks a lot I will try. I founded mostly requests going from Authelia and nextcloud also I have Uptime Kuma every 5 min. The container start OK but after some time it's going much more request. So I need to stop it for some days. This very strange issue I didn't had this problem on old version of https://github.com/GregYankovoy |
Sadly still having the same issue. It will start just fine but after a few seconds it will create the 8,000 requests once every second. @masterwishx You and I have a very similar set up! I have Nextcloud and Uptime Kuma running as well. I will try disabling them both from NPM to see if it narrows down the issue. |
I tried stopping NPM but the GoAccess request counter is still going strong. |
I don't think the problem in them Becouse befor I used other same docker but with old version of goaccess 1.4 and was no problem. |
@Mission-Contro1 and @masterwishx so I just found an issue in the current develop build that actually caused the problem that you found. It might be related to what you were seeing in the past but just manifested itself differently this time. Please pull the latest develop version: |
Still no dice -- the behavior is unchanged. Once it first loads, the counter will remain static for a few seconds before it ticks up by 8.000 requests per second. Also the Tx. Amount ticks up very rapidly as well. |
@Mission-Contro1 can you add the debug flag if you haven't already. "DEBUG=True" and browser to /goaccess_conf.html search for this flag "#GOAN_PROXY_FILES" and provide me the output of the files listed after that. |
However these are the files that are listed at /goaccess-config/proxy_logs: |
From yesterday dev version until today I don't |
Sorry but checked now problem still exist every second. Much requests and TX amount. |
can you please explain where to add this flag ? |
Hmm... That screenshot looks good. I added a variable for the container recently called DEBUG but you got me the information I needed.
Can you try skipping the archived logs?
|
OK i will try |
without arhived logs should be only for 3 day log ... I forgot to mention that i have another log file from old container of GregYankovoy called proxy_log but in your container its read all "proxy-host-_access." what is much better way , so i dont think its make issue ?!? |
That additional file can't be the issue. I can't figure out what might be causing the problem. Do you have any additional customizations to NPM? |
No other customizations on my end -- 3 Proxy Hosts with 3 different certs through Let's Encrypt, that's all. I haven't been able to get any closer to figuring out what's wrong. |
@Mission-Contro1 can you post a screenshot of all your files in that directory? |
No |
@masterwishx I read the thread and I think I'd recommend as well what allinurl said. If you can run goaccess directly against the logs and see if it happens that'd be best. If you need help with that maybe I can lend a hand. |
OK, I can try but I don't know what is mean directly? Without the docker? |
If you can help with it will be awesome |
sorry been busy for a bit, i'll get to this by the end of the week |
Ok good news! I was able to resolve it: It turns out I was correct in regards to the file access. This issue only happens when you are using Bind mount (connecting directly to a host drive). Switching to named volumes fixes the problem and works perfectly. |
@tonyle8 can you provide an example of what you changed? Also, are you using the docker container directly (docker-compose), portainer, or through the unraid template? |
See below for docker compose on portainer. My ngix app volume is set to the same "data" volume where saves the logs goaccess: |
@tonyle8 - I'll add this to the README file as an option to try if you're getting this issue. Thanks! |
after stopped container for a week , started it again and see same issue some 20000 every second ... |
@masterwishx |
@masterwishx looks like you are using bind mount with unraid. Try switching to named volume if it supports it? |
OK Thanks
can we use it in unraid ? |
@masterwishx so working off of @tonyle8 explanation/assumption can you try to change the access mode for the host path? Try changing it to Read Only - Slave. If that doesn't work then try Read Only - Shared. |
No dice with changing the access modes on the containers: Also doesn't work for shared mode. :( |
i have Read Only now i will try these ... |
if i remember correctly Read Only Slave its for Unassigned Devices but i have in /mnt/user/Logs/NginxProxyManager/
Do you also still having this issue in unraid ? |
Yes, still having this issue in Unraid. I'm going to try and create a volume in docker/unraid and have NPM write the logs to the volume and GoAccess read the logs from it. |
Please write here if it works or not. Thanks |
I wasn't able to get it to work -- combination of running low on time and there not being a way to do it via Unraid's UI easily. I pointed NPM to a Docker volume I created but it failed to start because I had two mount points at the same location. Then the image uninstalled itself and I had to reinstall. Nasty bug. |
i see , thanks for sharing this try |
@xavier-hernandez |
@masterwishx I don't believe that is how unraid works. Maybe I can create a temporary build where the logs will be copied into the container itself and see if that fixes the issue. We can try that at least. |
Sure, if you can, we can do it. Then container need to copy logs for some cron times? Or how? Also wanted to check again the container yesterday , it's stopped for now. |
@masterwishx - do you leave the website open for hours or do you close it and come back? Yes, some sort of cron job or sleep timer. This would be just for you so maybe just a sleep timer. If it works then maybe I can make it a cron job. |
Thanks , i can help whatever need and what i can to find the isshue ...
Tryed both ways, the end is same :( |
I think the problem is solved ?!? |
i meaned no more increasing requsets ,can someone also confirm ? |
Yes I can confirm, it seem to run stable now. |
First impressions are good -- it appears to be working! I'll leave it running for a few days. What did you change this time around? |
@Mission-Contro1 if this question is for me, a lot has changed. GoAccess was upgraded twice I believe and the way the processes were running has also changed. I was never able to reproduce this issue on my end so I'm not totally sure what could have fixed it if it is stable now. |
if you read above, for some one helped named volume even befor this was fixed by author .... on unraid i have another problem , on autostart somehow #86 |
Marking this ticket as closed since 3 users have confirmed this is no longer an issue. Please re-open or open a new issue if this reoccurs. Thanks. |
im very sorry but i again have this issue ,maybe yo can open the old one
#28
it was running about 2 days normal then it start grow up about 10000 in second ,
if im not running container for some days it again working Good for 2 days ,and then again start raising
Very strange i dont have this isshue on gregyankovoy/goaccess
becose i used his container befor i moved the Logs folder to /mnt/user/Logs/NginxProxyManager/
where i can look to find the problem ?
The text was updated successfully, but these errors were encountered: