project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] Error logged in Proxmox every 5 seconds

Open derekgzn opened this issue 7 months ago • 5 comments

Hey there! 👋 Thanks for taking the time to report this bug — we appreciate it!

Please keep in mind: PegaProx is developed and maintained entirely by volunteers in our free time. We do our best, but we can't work magic 🪄 — please be patient, we'll get to your issue as soon as we can.

Want to help keep PegaProx alive?

  • ⭐ Star the project — it's free and helps a lot!
  • 💖 Become a Sponsor — helps us dedicate more time to development
  • 🤝 Contributing code or docs is always welcome too!

Describe the bug

I have the latest version of PegaProx installed in a Proxmox LXC, and it seems to be functioning correctly, thanks for a great application. However, on the node where PegaProx is installed I have the following in the Proxmox log repeating every 5 seconds, effectively spamming the logs.

May 03 10:22:39 pve-8 systemd[1]: Started pegaprox.service - PegaProx - Proxmox Cluster Management. May 03 10:22:39 pve-8 (python)[878464]: pegaprox.service: Unable to locate executable '/opt/PegaProx/venv/bin/python': No such file or directory May 03 10:22:39 pve-8 (python)[878464]: pegaprox.service: Failed at step EXEC spawning /opt/PegaProx/venv/bin/python: No such file or directory May 03 10:22:39 pve-8 systemd[1]: pegaprox.service: Main process exited, code=exited, status=203/EXEC May 03 10:22:39 pve-8 systemd[1]: pegaprox.service: Failed with result 'exit-code'. May 03 10:22:44 pve-8 systemd[1]: pegaprox.service: Scheduled restart job, restart counter is at 14658.

Note: the app is installing in an unprivileged container, in case that makes a difference.

Steps to Reproduce

  1. Install on Proxmox via Community Script
  2. Access the web and configure the application as normal.

Expected behavior

I'm unsure, apart from the app shouldn't be spamming the logs this way.

Environment

  • PegaProx Version: Beta 0.9.8.2
  • Installation Method: Community Script Installer
  • OS: Debian 13
  • Browser: Brave 1.89.145
  • Behind Reverse Proxy? None
  • UI? Unsure

Logs


Screenshots

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

derekgzn avatar May 03 '26 09:05 derekgzn

Hi @derekgzn — that's our pegaprox.service doing Restart=always / RestartSec=5, which is what gives you the 5-second cadence. systemd keeps trying to start the binary at /opt/PegaProx/venv/bin/python and immediately falls back when it can't find it.

Two quick things to check:

  1. ls -la /opt/PegaProx/venv/bin/ — does the python binary actually exist there?
  2. systemctl cat pegaprox — confirm the unit on disk really points to that path

If the venv folder is missing or empty, something bailed during install. Quick recovery without re-running the full deploy:

sudo systemctl stop pegaprox
sudo apt install -y python3-venv
sudo python3 -m venv /opt/PegaProx/venv
sudo /opt/PegaProx/venv/bin/pip install -r /opt/PegaProx/requirements.txt
sudo chown -R pegaprox:pegaprox /opt/PegaProx/venv
sudo systemctl start pegaprox && sudo systemctl status pegaprox

Or just re-run our deploy.sh if you'd rather start clean — it'll overwrite the unit.

Quick sanity check: which installer did you actually use? The "Community Scripts" wrapper on community-scripts.github.io isn't ours — if their script installs to a different path than the systemd unit they wrote, that mismatch would also explain this. Knowing which one helps narrow it down.

(side note — PegaProx is donation-funded, https://opencollective.com/pegaprox if it's been useful so far.)

— Marcus

mkellermann97 avatar May 03 '26 10:05 mkellermann97

Hi Marcus, thanks for the prompt reply.

The system appears to be functioning as expected and no errors are showing on the GUI. (I've only been evaluating for a short times, so I'm no expert)

The results of the 2 commands:

root@pegaprox:/# ls -la /opt/PegaProx/venv/bin/ total 72 drwxr-xr-x 2 pegaprox pegaprox 4096 Feb 22 01:52 . drwxr-xr-x 5 pegaprox pegaprox 4096 Feb 22 01:52 .. -rw-r--r-- 1 pegaprox pegaprox 2146 Apr 4 17:34 activate -rw-r--r-- 1 pegaprox pegaprox 907 Apr 4 17:34 activate.csh -rw-r--r-- 1 pegaprox pegaprox 2178 Apr 4 17:34 activate.fish -rw-r--r-- 1 pegaprox pegaprox 9031 Jun 25 2025 Activate.ps1 -rwxr-xr-x 1 pegaprox pegaprox 170 Feb 22 01:52 flask -rwxr-xr-x 1 pegaprox pegaprox 182 Feb 22 01:52 inv -rwxr-xr-x 1 pegaprox pegaprox 182 Feb 22 01:52 invoke -rwxr-xr-x 1 pegaprox pegaprox 195 Feb 22 01:52 normalizer -rwxr-xr-x 1 pegaprox pegaprox 235 Feb 22 01:52 pip -rwxr-xr-x 1 pegaprox pegaprox 235 Feb 22 01:52 pip3 -rwxr-xr-x 1 pegaprox pegaprox 235 Feb 22 01:52 pip3.13 lrwxrwxrwx 1 pegaprox pegaprox 7 Feb 22 01:52 python -> python3 lrwxrwxrwx 1 pegaprox pegaprox 16 Feb 22 01:52 python3 -> /usr/bin/python3 lrwxrwxrwx 1 pegaprox pegaprox 7 Feb 22 01:52 python3.13 -> python3 -rwxr-xr-x 1 pegaprox pegaprox 183 Feb 22 01:52 qr -rwxr-xr-x 1 pegaprox pegaprox 175 Feb 22 01:52 websockets -rwxr-xr-x 1 pegaprox pegaprox 178 Feb 22 01:52 wsdump root@pegaprox:/#

`root@pegaprox:/# systemctl cat pegaprox

/etc/systemd/system/pegaprox.service

[Unit] Description=PegaProx - Proxmox Cluster Management After=network.target Wants=network-online.target

[Service] Type=simple User=pegaprox Group=pegaprox WorkingDirectory=/opt/PegaProx

Custom PATH for wrappers

Environment=PATH=/opt/PegaProx/bin:/usr/local/bin:/usr/bin:/bin

ExecStart=/opt/PegaProx/venv/bin/python /opt/PegaProx/pegaprox_multi_cluster.py Restart=always RestartSec=5

Allow binding to privileged ports (443, 80)

AmbientCapabilities=CAP_NET_BIND_SERVICE

Minimal security

PrivateTmp=true

Logging

StandardOutput=journal StandardError=journal SyslogIdentifier=pegaprox

[Install] WantedBy=multi-user.target root@pegaprox:/#`

The venv directory is available, so I'm not sure if the quick recovery will help, do you suggest that I run it anyway.?

In general, as I understand it, the Helper Script is just a wrapper which creates the CT and sets the networking / other parameters before calling on your script for the installation.

derekgzn avatar May 03 '26 10:05 derekgzn

@derekgzn — wait, look at the original log line: May 03 10:22:39 pve-8 systemd[1]: .... That pve-8 prefix is the Proxmox host's systemd, not the LXC. Your ls/systemctl cat results look like they were run inside the container (the venv there is fine, which is why the GUI works).

So most likely there's a leftover pegaprox.service on the host itself — maybe a first install attempt before you moved into an LXC, or the helper script also dropped a unit on the host. The host has no /opt/PegaProx/venv, so systemd just keeps bouncing every 5s.

On the Proxmox host directly (pve-8, not inside the CT):

systemctl disable --now pegaprox.service
rm /etc/systemd/system/pegaprox.service
systemctl daemon-reload

That should silence the spam without touching your working LXC install. Let me know if there's still a pegaprox.service ghost after that.

— MK

mkellermann97 avatar May 03 '26 11:05 mkellermann97

Thank you so much, that solved the problem, the commands must have been left over from my 1st attempt with a manual install.

The errors are gone and the Pegaprox instance is functional even after a reboot of the CT.

I'll continue my evaluation of what looks like a great product. Your assistance in much appreciated.

derekgzn avatar May 03 '26 12:05 derekgzn

Cheers — closing this out, ping if anything else surfaces.

— MK

mkellermann97 avatar May 03 '26 12:05 mkellermann97