prometheus-pve / prometheus-pve-exporter

Exposes information gathered from Proxmox VE cluster for use by the Prometheus monitoring system
Apache License 2.0
809 stars 95 forks source link

PVE Exporter on Proxmox VE Node in a venv failure #266

Closed AptGetGnome closed 2 months ago

AptGetGnome commented 2 months ago

Trying to install prometheus-pve-exporter on my proxmox node, got some issues when installing and found the guide here https://github.com/prometheus-pve/prometheus-pve-exporter/wiki/PVE-Exporter-on-Proxmox-VE-Node-in-a-venv

followed it to a T, changed the credentials to suit mine and i believe everything should be okay, i can even run the program from the command line no issues when doing the help command yet this is the issue i get and the output from journalctl -u prometheus-pve-exporter.service

Jul 10 19:27:52 horus systemd[1]: Started prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:52 horus systemd[1]: prometheus-pve-exporter.service: Main process exited, code=exited, status=217/USER
Jul 10 19:27:52 horus systemd[1]: prometheus-pve-exporter.service: Failed with result 'exit-code'.
Jul 10 19:27:52 horus systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 1.
Jul 10 19:27:52 horus systemd[1]: Stopped prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:52 horus systemd[1]: Started prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:52 horus (exporter)[2824818]: prometheus-pve-exporter.service: Failed to determine user credentials: No such process
Jul 10 19:27:52 horus (exporter)[2824818]: prometheus-pve-exporter.service: Failed at step USER spawning /opt/prometheus-pve-exporter/bin/pve_exporter: No such process
Jul 10 19:27:52 horus systemd[1]: prometheus-pve-exporter.service: Main process exited, code=exited, status=217/USER
Jul 10 19:27:52 horus systemd[1]: prometheus-pve-exporter.service: Failed with result 'exit-code'.
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 2.
Jul 10 19:27:53 horus systemd[1]: Stopped prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus systemd[1]: Started prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus (exporter)[2824819]: prometheus-pve-exporter.service: Failed to determine user credentials: No such process
Jul 10 19:27:53 horus (exporter)[2824819]: prometheus-pve-exporter.service: Failed at step USER spawning /opt/prometheus-pve-exporter/bin/pve_exporter: No such process
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Main process exited, code=exited, status=217/USER
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Failed with result 'exit-code'.
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 3.
Jul 10 19:27:53 horus systemd[1]: Stopped prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus systemd[1]: Started prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus (exporter)[2824820]: prometheus-pve-exporter.service: Failed to determine user credentials: No such process
Jul 10 19:27:53 horus (exporter)[2824820]: prometheus-pve-exporter.service: Failed at step USER spawning /opt/prometheus-pve-exporter/bin/pve_exporter: No such process
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Main process exited, code=exited, status=217/USER
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Failed with result 'exit-code'.
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 4.
Jul 10 19:27:53 horus systemd[1]: Stopped prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus systemd[1]: Started prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus (exporter)[2824821]: prometheus-pve-exporter.service: Failed to determine user credentials: No such process
Jul 10 19:27:53 horus (exporter)[2824821]: prometheus-pve-exporter.service: Failed at step USER spawning /opt/prometheus-pve-exporter/bin/pve_exporter: No such process
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Main process exited, code=exited, status=217/USER
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Failed with result 'exit-code'.
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 5.
Jul 10 19:27:53 horus systemd[1]: Stopped prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Start request repeated too quickly.
Jul 10 19:27:53 horus systemd[1]: prometheus-pve-exporter.service: Failed with result 'exit-code'.
Jul 10 19:27:53 horus systemd[1]: Failed to start prometheus-pve-exporter.service - Prometheus exporter for Proxmox VE.
Rassilion commented 2 months ago

you need to add linux user for systemd service

useradd -s /bin/false prometheus
AptGetGnome commented 2 months ago

you need to add linux user for systemd service

useradd -s /bin/false prometheus

thank you so much!