Skip to content
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

Proxmox integration shows NAN for stats and doesn't list CTs/VMs #2133

Open
4 tasks done
Aikufurr opened this issue Sep 18, 2024 · 18 comments
Open
4 tasks done

Proxmox integration shows NAN for stats and doesn't list CTs/VMs #2133

Aikufurr opened this issue Sep 18, 2024 · 18 comments
Labels
🐛 Bug Something isn't working

Comments

@Aikufurr
Copy link

Environment

Docker

Version

No response

Describe the problem

Followed the setup guide and added the System Health Monitoring widget.
But, uptime shows NAN, stats show NAN, and doesn't list my CTs/VMs.~
Checked homarr logs and doesn't report any issues.

Logs

yarn run v1.22.19

$ ts-node ./migrate.ts

Done in 2.25s.

Starting production server...

Listening on port 7575 url: http://557bf27fa281:7575

ℹ Local icons repository directory exists and contains 0 icons

ℹ Saving updated configuration of 'default' config.

Context

Screenshot_20240918_085619

Please tick the boxes

  • I confirm that I attached the proper logs
  • I've read the docs
  • I've checked for duplicate issues
  • I've tried to debug myself
@Aikufurr Aikufurr added the 🐛 Bug Something isn't working label Sep 18, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Homarr Kanban Sep 18, 2024
Copy link

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.

@timfischbach
Copy link

Looks like missing permissions for me. Did you follow the Homarr guide for Proxmox integration? Did you give the token and user group PVEAuditor rights inside Proxmox? Also the api-token, user and group shall not have the same names, since this bugs out the Proxmox API :)

@Aikufurr
Copy link
Author

Yeah I followed that guide, used the same names it showed and set permissions to PVEAuditor.

Screenshot_20240918_150711_Firefox Nightly
Screenshot_20240918_150721_Firefox Nightly
Screenshot_20240918_150736_Firefox Nightly

@duka10
Copy link

duka10 commented Sep 19, 2024

Look on proxmox do you have status for all your containers and vm or you have question mark (unknown status)?
You vm/conctainers can be live but service with statuses stopped, you can check services on proxmox with systemctl status pve*, maybe pvestatd.service is just stoped.

@sosudaniel
Copy link

Hello everyone, I have the same problem, on my machine looks like pvestatd.service is running

● pvestatd.service - PVE Status Daemon
Loaded: loaded (/lib/systemd/system/pvestatd.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-09-20 22:13:44 EEST; 8min ago
Process: 1169 ExecStart=/usr/bin/pvestatd start (code=exited, status=0/SUCCESS)
Main PID: 1185 (pvestatd)
Tasks: 1 (limit: 18370)
Memory: 109.0M
CPU: 3.000s
CGroup: /system.slice/pvestatd.service
└─1185 pvestatd

Sep 20 22:13:43 proxmox systemd[1]: Starting pvestatd.service - PVE Status Daemon...
Sep 20 22:13:44 proxmox pvestatd[1185]: starting server
Sep 20 22:13:44 proxmox systemd[1]: Started pvestatd.service - PVE Status Daemon.

@duka10
Copy link

duka10 commented Sep 20, 2024

Try to restart pvestatd.service. If you get error, reboot proxmox server.

@sosudaniel
Copy link

sosudaniel commented Sep 20, 2024

@duka10 neither restarting the service or the proxmox host does not work

@sosudaniel
Copy link

additional info, unchecking the Ignore Certificate Errors setting will make the widget to not show anything

@duka10
Copy link

duka10 commented Sep 21, 2024

If you check ignore cert. the widget will not show anything because you are probably accessing proxmox over http, and not over https.

First, does this widget work for you from the start and you now got this error or you got this error when you setup for the first time?

@sosudaniel
Copy link

the widget does not work from the start

@sosudaniel
Copy link

update: if setting the administrator role, then everything works as expected

@manuel-rw
Copy link
Collaborator

Can we consider this as resolved then?

@sosudaniel
Copy link

for me it does the job like this, so yes we can close this. still would be nice to know why setting the PVE Auditor role as specified in the config manual does not do it.

also the issue was open by @Aikufurr not by me. I just stumbled upon it and tried to help the investigation as I was also affected by this.

@Razor094
Copy link

Razor094 commented Oct 4, 2024

I have the same problem. If I only add a Proxmox card, it looks like the first picture and if I need OpenMediavault, it is completely broken.
image
image

I have read the documentation, searched twice for the API key and cannot resolve the problem.
I hope someone can help me. Thanks in advance

@manuel-rw
Copy link
Collaborator

I have the same problem. If I only add a Proxmox card, it looks like the first picture and if I need OpenMediavault, it is completely broken. image image

I have read the documentation, searched twice for the API key and cannot resolve the problem. I hope someone can help me. Thanks in advance

Please post your logs

@Razor094
Copy link

Razor094 commented Oct 4, 2024

Here they are:

Exporting hostname...
Migrating database...
yarn run v1.22.19
$ ts-node ./migrate.ts
Done in 2.42s.
Starting production server...
Listening on port 7575 url: http://48757887a8e6:7575
Exporting hostname...
Migrating database...
yarn run v1.22.19
$ ts-node ./migrate.ts
Done in 2.44s.
Starting production server...
Listening on port 7575 url: http://48757887a8e6:7575

@manuel-rw
Copy link
Collaborator

Have you followed the documentation at https://homarr.dev/docs/integrations/hardware step by step?

@jimsander
Copy link

update: if setting the administrator role, then everything works as expected

I had the same issue. Overlooked the Privilege Separation: unchecked step.
Go back and edit the API token and voila.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

7 participants