homarr icon indicating copy to clipboard operation
homarr copied to clipboard

Proxmox integration shows empty values

Open paxvinci opened this issue 7 months ago • 3 comments

Environment

Docker

Version

1.16.0

Describe the problem

I followed the guidelines at https://homarr.dev/docs/integrations/hardware/ and everything is fine but the widget doesn't show any values. Under Tools->Logs I see that Homarr is trying to get information from https://proxmox1:8006/api2/json/cluster/resources and if I login to proxmox1 and trying to get values from API I can retrieve values (below an example of json values): {"data":[{"type":"qemu","diskwrite":31454867456,"template":0,"vmid":100,"diskread":737509888,"cpu":0.0141062696185477,"netout":2762095575,"id":"qemu/100","status":"running","node":"proxmox1","name":"ADHPROD01","netin":6666004794,"maxmem":2147483648,"maxdisk":34359738368,"mem":1814781952,"uptime":3683375,"maxcpu":1,"disk":0},{"maxmem":6442450944,"netin":444970123637,"maxdisk":68719476736,"uptime":2915137,"mem":5852594176,"disk":0,"maxcpu":4,"diskwrite":24347643904,"vmid":101,"template":0,"type":"qemu","status":"running","node":"proxmox2","name":"PBSHPROD01","diskread":4022350946,"netout":9490797547,"id":"qemu/101","cpu":0.00647555723179809},{"node":"proxmox3","name":"NASHPROD01","status":"running","netout":160113988246,"cpu":0.0141301769093308,"id":"qemu/102","diskread":23549275786,"template":0,"vmid":102,"diskwrite":869217685504,"type":"qemu","maxcpu":4,"disk":0,"maxdisk":214748364800,"uptime":3683043,"mem":7778770944,"maxmem":17179869184,"netin":148241191300},{"status":"running","name":"UNIHPROD01","node":"proxmox3","diskread":11745350656,"netout":19484145014,"cpu":0.00814281381215672,"id":"qemu/103","diskwrite":126303975424,"template":0,"vmid":103,"type":"qemu","maxdisk":34359738368,"uptime":3683039,"mem":3817775104,"disk":0,"maxcpu":2,"maxmem":4294967296,"netin":17758945407},{"maxmem":4294967296,"netin":29998828295,"uptime":3086047,"mem":3700727808,"maxdisk":34359738368,"maxcpu":4,"disk":0,"diskwrite":121125923328,"vmid":104,"template":0,"type":"qemu","status":"running","name":"HAHPROD01","node":"proxmox1","diskread":1817321490,"cpu":0.0136024742750281,"netout":4406792711,"id":"qemu/104"},{"vmid":105,"template":0,"diskwrite":2587073187328,"type":"qemu","name":"WAZHPROD01","node":"proxmox2","status":"running","id":"qemu/105","netout":4099052397,"cpu":0.00647555723179809,"diskread":62968837640,"maxmem":8589934592,"netin":190177151503,"maxcpu":4,"disk":0,"maxdisk":107374182400,"mem":8116748288,"uptime":2914092},{"netin":122252329102,"maxmem":6442450944,"disk":0,"maxcpu":4,"maxdisk":751619276800,"mem":5720109056,"uptime":2493774,"type":"qemu","template":0,"vmid":106,"diskwrite":259430574592,"cpu":0.00431090142996532,"netout":1678539391,"id":"qemu/106","diskread":80042478232,"node":"proxmox3","name":"IMMHPROD01","status":"running"}

Logs

Under Tools-Logs I see these values:

2025-04-17T07:42:08.946Z info A tRPC client has connected to the logging procedure
2025-04-17T07:42:10.221Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:10.258Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:15.226Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:15.265Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:20.232Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:20.268Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:25.238Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:25.273Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:30.241Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:30.277Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:35.246Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:35.284Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:40.252Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:40.292Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:45.257Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:45.293Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:50.269Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:50.308Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0
2025-04-17T07:42:55.266Z info Dispatching request https://proxmox1:8006/api2/json/cluster/resources (6 headers)
2025-04-17T07:42:55.302Z info Found 3 resources in Proxmox cluster node=3 lxc=0 qemu=0 storage=0

Context

Proxmox widget Image Proxmox configuration Image Homarr logs Image Proxmox JSON data with Homarr user/password Image

Please tick the boxes

  • [x] I confirm that I attached the proper logs
  • [x] I've read the docs
  • [x] I've checked for duplicate issues
  • [x] I've tried to debug myself

paxvinci avatar Apr 17 '25 07:04 paxvinci

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

github-actions[bot] avatar Apr 17 '25 07:04 github-actions[bot]

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏

github-actions[bot] avatar Jun 16 '25 17:06 github-actions[bot]

I'm having this same issue!

toeachbyeach avatar Jun 18 '25 04:06 toeachbyeach

Okay, today I tried it again. Removing tokens, users, groups, permissions... With my new attempt I got it to work and also found/replicated my error. If you don't get any values from proxmox the authentication seems to work, but something is wrong with the permissions. I had forgotten to set the group permissions:

  1. Click on the Permissions "folder"
  2. Click Add -> Group Permission
Path: /
Group: [group name you created for the api users]
Role: PVEAuditor
Propagate: Checked

The documentation for generating a api-token is a pain. Maybe you could replace the manual process by commands for the proxmox console.

hbast avatar Jul 20 '25 08:07 hbast

Please create a new issue at https://github.com/homarr-labs/homarr if this is still an issue

Meierschlumpf avatar Aug 04 '25 17:08 Meierschlumpf