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

[Bug] PP wont start after updating to 0.98 (Python 3.14)

Open surreal70 opened this issue 7 months ago • 3 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

After upgrading from 0.97 to 0.98 wont start and exits with error.

Steps to Reproduce

  1. Ubuntu 26.04(Python 3.14)
  2. Upgrade from 0.97 to 0.98

Expected behavior

normal start

Environment

  • PegaProx Version: 0.97->0.98
  • Installation Method: update.sh
  • OS: Ubuntu 26.04

Logs

2026-04-27T08:49:19.382721+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Main process exited, code=exited, status=1/FAILURE
2026-04-27T08:49:19.382910+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Failed with result 'exit-code'.
2026-04-27T08:49:24.503382+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Scheduled restart job, restart counter is at 7.
2026-04-27T08:49:24.506545+00:00 srv-adh-vm-0084 systemd[1]: Started pegaprox.service - PegaProx - Proxmox Cluster Management.
2026-04-27T08:49:25.254130+00:00 srv-adh-vm-0084 pegaprox[116635]: Gevent monkey-patching applied
2026-04-27T08:49:25.254330+00:00 srv-adh-vm-0084 pegaprox[116635]: Checking optional libraries...
2026-04-27T08:49:25.254420+00:00 srv-adh-vm-0084 pegaprox[116635]:   ✓ websockets (VNC/SSH console)
2026-04-27T08:49:25.254514+00:00 srv-adh-vm-0084 pegaprox[116635]:   ✓ paramiko (SSH features)
2026-04-27T08:49:25.254590+00:00 srv-adh-vm-0084 pegaprox[116635]:   ✓ gevent (high performance)
2026-04-27T08:49:25.254663+00:00 srv-adh-vm-0084 pegaprox[116635]:   ✓ argon2-cffi (secure password hashing)
2026-04-27T08:49:25.254736+00:00 srv-adh-vm-0084 pegaprox[116635]:   ✓ XenAPI (XCP-ng integration)
2026-04-27T08:49:25.254853+00:00 srv-adh-vm-0084 pegaprox[116635]: Traceback (most recent call last):
2026-04-27T08:49:25.255386+00:00 srv-adh-vm-0084 pegaprox[116635]:   File "/opt/PegaProx/pegaprox_multi_cluster.py", line 171, in <module>
2026-04-27T08:49:25.255459+00:00 srv-adh-vm-0084 pegaprox[116635]:     main(debug_mode=debug_mode)
2026-04-27T08:49:25.255564+00:00 srv-adh-vm-0084 pegaprox[116635]:     ~~~~^^^^^^^^^^^^^^^^^^^^^^^
2026-04-27T08:49:25.255601+00:00 srv-adh-vm-0084 pegaprox[116635]:   File "/opt/PegaProx/pegaprox/app.py", line 554, in main
2026-04-27T08:49:25.255626+00:00 srv-adh-vm-0084 pegaprox[116635]:     app = create_app()
2026-04-27T08:49:25.255702+00:00 srv-adh-vm-0084 pegaprox[116635]:   File "/opt/PegaProx/pegaprox/app.py", line 203, in create_app
2026-04-27T08:49:25.255736+00:00 srv-adh-vm-0084 pegaprox[116635]:     register_blueprints(app)
2026-04-27T08:49:25.255807+00:00 srv-adh-vm-0084 pegaprox[116635]:     ~~~~~~~~~~~~~~~~~~~^^^^^
2026-04-27T08:49:25.255881+00:00 srv-adh-vm-0084 pegaprox[116635]:   File "/opt/PegaProx/pegaprox/api/__init__.py", line 31, in register_blueprints
2026-04-27T08:49:25.255917+00:00 srv-adh-vm-0084 pegaprox[116635]:     from pegaprox.api.webauthn import bp as webauthn_bp
2026-04-27T08:49:25.255987+00:00 srv-adh-vm-0084 pegaprox[116635]: ModuleNotFoundError: No module named 'pegaprox.api.webauthn'
2026-04-27T08:49:25.372876+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Main process exited, code=exited, status=1/FAILURE
2026-04-27T08:49:25.373014+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Failed with result 'exit-code'.
2026-04-27T08:49:30.503589+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Scheduled restart job, restart counter is at 8.
2026-04-27T08:49:30.506808+00:00 srv-adh-vm-0084 systemd[1]: Started pegaprox.service - PegaProx - Proxmox Cluster Management.
2026-04-27T08:49:31.240605+00:00 srv-adh-vm-0084 pegaprox[116639]: Gevent monkey-patching applied
2026-04-27T08:49:31.240717+00:00 srv-adh-vm-0084 pegaprox[116639]: Checking optional libraries...
2026-04-27T08:49:31.240773+00:00 srv-adh-vm-0084 pegaprox[116639]:   ✓ websockets (VNC/SSH console)
2026-04-27T08:49:31.240809+00:00 srv-adh-vm-0084 pegaprox[116639]:   ✓ paramiko (SSH features)
2026-04-27T08:49:31.240834+00:00 srv-adh-vm-0084 pegaprox[116639]:   ✓ gevent (high performance)
2026-04-27T08:49:31.240857+00:00 srv-adh-vm-0084 pegaprox[116639]:   ✓ argon2-cffi (secure password hashing)
2026-04-27T08:49:31.240886+00:00 srv-adh-vm-0084 pegaprox[116639]:   ✓ XenAPI (XCP-ng integration)
2026-04-27T08:49:31.241409+00:00 srv-adh-vm-0084 pegaprox[116639]: Traceback (most recent call last):
2026-04-27T08:49:31.242050+00:00 srv-adh-vm-0084 pegaprox[116639]:   File "/opt/PegaProx/pegaprox_multi_cluster.py", line 171, in <module>
2026-04-27T08:49:31.242088+00:00 srv-adh-vm-0084 pegaprox[116639]:     main(debug_mode=debug_mode)
2026-04-27T08:49:31.242118+00:00 srv-adh-vm-0084 pegaprox[116639]:     ~~~~^^^^^^^^^^^^^^^^^^^^^^^
2026-04-27T08:49:31.242142+00:00 srv-adh-vm-0084 pegaprox[116639]:   File "/opt/PegaProx/pegaprox/app.py", line 554, in main
2026-04-27T08:49:31.242170+00:00 srv-adh-vm-0084 pegaprox[116639]:     app = create_app()
2026-04-27T08:49:31.242206+00:00 srv-adh-vm-0084 pegaprox[116639]:   File "/opt/PegaProx/pegaprox/app.py", line 203, in create_app
2026-04-27T08:49:31.242233+00:00 srv-adh-vm-0084 pegaprox[116639]:     register_blueprints(app)
2026-04-27T08:49:31.242256+00:00 srv-adh-vm-0084 pegaprox[116639]:     ~~~~~~~~~~~~~~~~~~~^^^^^
2026-04-27T08:49:31.242280+00:00 srv-adh-vm-0084 pegaprox[116639]:   File "/opt/PegaProx/pegaprox/api/__init__.py", line 31, in register_blueprints
2026-04-27T08:49:31.242312+00:00 srv-adh-vm-0084 pegaprox[116639]:     from pegaprox.api.webauthn import bp as webauthn_bp
2026-04-27T08:49:31.242347+00:00 srv-adh-vm-0084 pegaprox[116639]: ModuleNotFoundError: No module named 'pegaprox.api.webauthn'
2026-04-27T08:49:31.358881+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Main process exited, code=exited, status=1/FAILURE
2026-04-27T08:49:31.359008+00:00 srv-adh-vm-0084 systemd[1]: pegaprox.service: Failed with result 'exit-code'.

Screenshots

Checklist

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

surreal70 avatar Apr 27 '26 08:04 surreal70

a update --force solved the problem.

surreal70 avatar Apr 27 '26 08:04 surreal70

Yeah that one's on us, sorry. The new webauthn.py blueprint made it into the package but I forgot to add it to the update_files list in version.json, so the incremental updater just skipped the file. update --force does a full archive sync, that's why it picked it up.

I'll patch the manifest today and roll a 0.9.8.1 so others don't run into the same thing. Cheers for closing it out yourself.

— Marcus

mkellermann97 avatar Apr 27 '26 09:04 mkellermann97

Manifest patched — ba2f25c is in. Was actually 4 files I'd forgotten to add to update_files, not just webauthn (also metrics_exporter.py, ssh_pool.py, webhooks.py). So anyone else still on 0.9.7 will pick them up cleanly on the next update.sh run. Cheers for the prod logs, made it easy to find.

mkellermann97 avatar Apr 27 '26 10:04 mkellermann97