mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #257] Incorrect RAM and CPU Information in Dashboard for LXC #4567
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#4567
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mateo08c on GitHub (Jan 14, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/257
The bug
If your host or nginx-ui is installed using LXC virtualization, it does not display the correct number of available CPUs and RAM on the homepage.
To Reproduce
Steps to reproduce the behavior:
Screenshots

Info:
Additional context
For the 270GB of RAM, it refers to the memory of the physical server and not the LXC container, which is defined with 16GB.
Physical server resources:

My LXC server:

@0xJacky commented on GitHub (Feb 7, 2024):
Hi, I just using pve 8.1.4 to create a debian LXC container which has 2 vCPU and 1G of RAM, than I install nginx-ui on it.

It seems that the nginx-ui works as expect.
@0xJacky commented on GitHub (Feb 7, 2024):
Could you please upgrade nginx-ui to v2.0.0-beta.14 to check if this problem still exists?
@mateo08c commented on GitHub (Feb 7, 2024):
Same problem, I tried with a new LXC on Debian 11 and still the same issue. I also tried on another Proxmox, but nothing changes; I still see the host's resources.
@0xJacky commented on GitHub (Feb 8, 2024):
Can you provide the output of executing
cat /proc/cpuinfoin LXC?@mateo08c commented on GitHub (Feb 8, 2024):
I forgot to specify that I am starting nginx-ui in docker! oups..
Ouput in LXC:
In docker container:
@0xJacky commented on GitHub (Feb 9, 2024):
You can use the installation script from linux to install nginx-ui in your lxc container directly, this should work as you expect.