[GH-ISSUE #1679] Dashboard incorrect number of hosts #1253

Closed
opened 2026-02-26 06:36:25 +03:00 by kerem · 23 comments
Owner

Originally created by @jayjupdhig on GitHub (Dec 24, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1679

1
2

Originally created by @jayjupdhig on GitHub (Dec 24, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1679 ![1](https://user-images.githubusercontent.com/42765391/147343190-879988ea-ac78-4599-ac94-1df0dfc29d38.jpg) ![2](https://user-images.githubusercontent.com/42765391/147343193-ad4f5476-6d24-4467-afbf-32dfec767f99.jpg)
kerem 2026-02-26 06:36:25 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@chaptergy commented on GitHub (Dec 24, 2021):

So just the dashboard shows 0, but when you go to the proxy hosts list everything is correct?

<!-- gh-comment-id:1000866722 --> @chaptergy commented on GitHub (Dec 24, 2021): So just the dashboard shows 0, but when you go to the proxy hosts list everything is correct?
Author
Owner

@jayjupdhig commented on GitHub (Dec 24, 2021):

yes. seems so.

<!-- gh-comment-id:1000875807 --> @jayjupdhig commented on GitHub (Dec 24, 2021): yes. seems so.
Author
Owner

@chaptergy commented on GitHub (Dec 30, 2021):

Have a look at your browsers developer console, whether it shows anything that could be helpful. Also have a look at the network tab in your browsers developer console when refreshing the page. It should contain a network request with file name hosts, and if you click on it you should see it is a request to <domain>/api/reports/hosts. What is the response of this request?

<!-- gh-comment-id:1003008069 --> @chaptergy commented on GitHub (Dec 30, 2021): Have a look at your browsers developer console, whether it shows anything that could be helpful. Also have a look at the network tab in your browsers developer console when refreshing the page. It should contain a network request with file name `hosts`, and if you click on it you should see it is a request to `<domain>/api/reports/hosts`. What is the response of this request?
Author
Owner

@jayjupdhig commented on GitHub (Jan 3, 2022):

Before holidays, i updated it via apt update && apt upgrade... now i came back and wanted to to i again.

but now i see that ALL space on my ~30gb VM HD is used:

image

when i enter df i get that:

image

I don't no what this is...

  • Maybe the log files?

  • Which is /var/lib/docker/overlay2/c52a5ad4ec466b99391ce1cb4d5227ff32f215473602df5a722be35be7ea48fa/merged which needs 100% ??

  • Maybe the server was hacked? (has no ssh connetion to port 22 in public internet)

<!-- gh-comment-id:1003952096 --> @jayjupdhig commented on GitHub (Jan 3, 2022): Before holidays, i updated it via apt update && apt upgrade... now i came back and wanted to to i again. but now i see that ALL space on my ~30gb VM HD is used: ![image](https://user-images.githubusercontent.com/42765391/147913910-00d6ede5-527e-43b5-b395-29539fb2a6e0.png) when i enter df i get that: ![image](https://user-images.githubusercontent.com/42765391/147913942-23aba9cb-4319-422a-8e0a-cfd0dafe3bf7.png) I don't no what this is... - Maybe the log files? - Which is /var/lib/docker/overlay2/c52a5ad4ec466b99391ce1cb4d5227ff32f215473602df5a722be35be7ea48fa/merged which needs 100% ?? - Maybe the server was hacked? (has no ssh connetion to port 22 in public internet)
Author
Owner

@jayjupdhig commented on GitHub (Jan 3, 2022):

Is your product using log4j? Was i hacked!?!?

<!-- gh-comment-id:1004018854 --> @jayjupdhig commented on GitHub (Jan 3, 2022): Is your product using log4j? Was i hacked!?!?
Author
Owner

@chaptergy commented on GitHub (Jan 3, 2022):

No, nothing used by npm is Java-based so it has nothing to do with log4j. So if you were actually compromised it was most likely due to weak passwords, an insecurely set up server or (though unlikely) due to some unknown vulnerability.
But must likely you weren't hacked. Is there a specific file which is that large? It could be the logs. It so, you would have to create your own logrotate config and mount it into the container. Also have a look at the original logrotate config to see how it is set up by default, and what you can change to have the log files deleted earlier.

And by the way, apt update && apt upgrade does not update npm. You have to do that via docker

<!-- gh-comment-id:1004030017 --> @chaptergy commented on GitHub (Jan 3, 2022): No, nothing used by npm is Java-based so it has nothing to do with log4j. So if you were actually compromised it was most likely due to weak passwords, an insecurely set up server or (though unlikely) due to some unknown vulnerability. But must likely you weren't hacked. Is there a specific file which is that large? It could be the logs. It so, you would have to create your own [logrotate](https://linux.die.net/man/8/logrotate) config and [mount it into the container](https://github.com/jc21/nginx-proxy-manager/issues/1317#issuecomment-898376878). Also have a look at the [original logrotate config](https://github.com/jc21/nginx-proxy-manager/blob/develop/docker/rootfs/etc/logrotate.d/nginx-proxy-manager) to see how it is set up by default, and what you can change to have the log files deleted earlier. And by the way, `apt update && apt upgrade` does not update npm. You have to do that [via docker](https://nginxproxymanager.com/upgrading/)
Author
Owner

@jayjupdhig commented on GitHub (Jan 3, 2022):

Makes no sense in investigate close before the "off-topic"-Problem is solved...

<!-- gh-comment-id:1004042522 --> @jayjupdhig commented on GitHub (Jan 3, 2022): Makes no sense in investigate close before the "off-topic"-Problem is solved...
Author
Owner

@jayjupdhig commented on GitHub (Jan 3, 2022):

I also startet a new installation with must current versions (debian , docker, mariadb), but there fails something with db condig in yml file: https://github.com/jc21/nginx-proxy-manager/issues/1720

<!-- gh-comment-id:1004042952 --> @jayjupdhig commented on GitHub (Jan 3, 2022): I also startet a new installation with must current versions (debian , docker, mariadb), but there fails something with db condig in yml file: https://github.com/jc21/nginx-proxy-manager/issues/1720
Author
Owner

@jayjupdhig commented on GitHub (Jan 3, 2022):

closed wrongly - now opend again ;-)

<!-- gh-comment-id:1004043098 --> @jayjupdhig commented on GitHub (Jan 3, 2022): closed wrongly - now opend again ;-)
Author
Owner

@jayjupdhig commented on GitHub (Jan 4, 2022):

closed

<!-- gh-comment-id:1004624371 --> @jayjupdhig commented on GitHub (Jan 4, 2022): closed
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

What i see is that when i open developer tools then do a browser refresh:

image

<!-- gh-comment-id:1005745252 --> @jayjupdhig commented on GitHub (Jan 5, 2022): What i see is that when i open developer tools then do a browser refresh: ![image](https://user-images.githubusercontent.com/42765391/148236402-128156cd-0647-47c0-a989-452b272517e4.png)
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

...but nothing with /api/reports/hosts:

image

<!-- gh-comment-id:1005746443 --> @jayjupdhig commented on GitHub (Jan 5, 2022): ...but nothing with /api/reports/hosts: ![image](https://user-images.githubusercontent.com/42765391/148236570-8e531e8e-e05a-4cdb-ba48-222dcef22a2f.png)
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

[complete new installation with debian 11 as described above.. ]

<!-- gh-comment-id:1005747356 --> @jayjupdhig commented on GitHub (Jan 5, 2022): [complete new installation with debian 11 as described above.. ]
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

After adding one (1) "HTTP only" i see:

image

Does this only work if http instead of https...? Strange..

<!-- gh-comment-id:1005751115 --> @jayjupdhig commented on GitHub (Jan 5, 2022): After adding one (1) "HTTP only" i see: ![image](https://user-images.githubusercontent.com/42765391/148237327-f6408bf9-a657-4cc1-8c07-cfc88de66030.png) Does this only work if http instead of https...? Strange..
Author
Owner

@chaptergy commented on GitHub (Jan 5, 2022):

Were your screenshots from the network tab taken after the dashboard was loaded while the network tab was open? Because it seems the proxy host page was loaded, not the dashboard.

So it does work for http only hosts, but it is still not counting the https hosts? Or have you only tried http only hosts?

<!-- gh-comment-id:1005763094 --> @chaptergy commented on GitHub (Jan 5, 2022): Were your screenshots from the network tab taken after the dashboard was loaded while the network tab was open? Because it seems the proxy host page was loaded, not the dashboard. So it does work for http only hosts, but it is still not counting the https hosts? Or have you only tried http only hosts?
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

  1. Visited page
  2. Called dev tools
  3. Refreshed the page

So it does work for http only hosts, but it is still not counting the https hosts?

Yes.

Or have you only tried http only hosts?

No. I have 4 https and 1 http host

<!-- gh-comment-id:1005765112 --> @jayjupdhig commented on GitHub (Jan 5, 2022): 1. Visited page 2. Called dev tools 3. Refreshed the page So it does work for http only hosts, but it is still not counting the https hosts? Yes. Or have you only tried http only hosts? No. I have 4 https and 1 http host
Author
Owner

@chaptergy commented on GitHub (Jan 5, 2022):

Hm, I'm really not able to replicate it, no matter what combination of https and http hosts I have.

What database are you using? MySQL or SQLite?

<!-- gh-comment-id:1005808290 --> @chaptergy commented on GitHub (Jan 5, 2022): Hm, I'm really not able to replicate it, no matter what combination of https and http hosts I have. What database are you using? MySQL or SQLite?
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

SQLite

<!-- gh-comment-id:1005813315 --> @jayjupdhig commented on GitHub (Jan 5, 2022): SQLite
Author
Owner

@chaptergy commented on GitHub (Jan 5, 2022):

Hm, is the incorrect number still the case after a full refresh of the dashboard page? The only thing I can replicate is the number of proxy hosts on the dashboard staying the same after creating one, but updating / being correct after a page reload. I'm assuming that's what you are seeing as well, or some sort of caching issue if a refresh is not helping either.

<!-- gh-comment-id:1005831725 --> @chaptergy commented on GitHub (Jan 5, 2022): Hm, is the incorrect number still the case after a full refresh of the dashboard page? The only thing I can replicate is the number of proxy hosts on the dashboard staying the same after creating one, but updating / being correct after a page reload. I'm assuming that's what you are seeing as well, or some sort of caching issue if a refresh is not helping either.
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

Shift-F5 for browser refresh (bypass cache in chrome / chromium [so also edge] engine based rowsers) does also not show all 5 hosts on main (entry) page

<!-- gh-comment-id:1005836613 --> @jayjupdhig commented on GitHub (Jan 5, 2022): Shift-F5 for browser refresh (bypass cache in chrome / chromium [so also edge] engine based rowsers) does also not show all 5 hosts on main (entry) page
Author
Owner

@chaptergy commented on GitHub (Jan 5, 2022):

Hm, then I'm really at a loss here, I have no clue what might cause something like this

<!-- gh-comment-id:1005845396 --> @chaptergy commented on GitHub (Jan 5, 2022): Hm, then I'm really at a loss here, I have no clue what might cause something like this
Author
Owner

@jayjupdhig commented on GitHub (Jan 5, 2022):

anyway..

<!-- gh-comment-id:1005856798 --> @jayjupdhig commented on GitHub (Jan 5, 2022): anyway..
Author
Owner

@jayjupdhig commented on GitHub (Jan 11, 2022):

Another question HERE: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1736

<!-- gh-comment-id:1010031335 --> @jayjupdhig commented on GitHub (Jan 11, 2022): Another question HERE: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1736
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1253
No description provided.