prometheus-pve/prometheus-pve-exporter

PVE Exporter on Proxmox VE Node in a venv failure

AptGetGnome opened this issue · 2 comments

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.

you need to add linux user for systemd service

useradd -s /bin/false prometheus

you need to add linux user for systemd service

useradd -s /bin/false prometheus

thank you so much!