[Bug] compliance dashboard wont load
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
when accessing the compliance dashboard, all nodes show an 502 error, even though the ssh connection works for other features
Steps to Reproduce
- select cluster
- Compliance -> Compliance
- observe
Expected behavior
should load
Environment
- PegaProx Version: 1.0.2 (2026.08.17)
- Installation Method: docker
- OS: deb 13
- Browser: Chromium: 151.0.7922.71
- Behind Reverse Proxy? nginx
- UI? modern
connection via root@pam + password
Logs
[2026-08-20 13:07:45,815] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node02-th-A -> 192.168.100.15 (cluster/status, reachable on :22)
[2026-08-20 13:07:46,083] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node01-th-A is the local node, using 192.168.100.14
[2026-08-20 13:07:46,562] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node21-th-D -> 192.168.100.18 (cluster/status, reachable on :22)
[2026-08-20 13:07:46,866] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node11-th-I -> 192.168.100.16 (cluster/status, reachable on :22)
[2026-08-20 13:07:47,170] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node12-th-I -> 192.168.100.17 (cluster/status, reachable on :22)
[2026-08-20 13:07:47,479] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node22-th-D -> 192.168.100.19 (cluster/status, reachable on :22)
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
Thanks for the log β the useful bit is that the node-IP resolution and SSH reachability all succeed (reachable on :22) right before the 502, so it's not an SSH/connectivity problem. The compliance dashboard SSHes into every node and runs a batch of checks, which is heavier and slower than the other features, and a 502 behind nginx is almost always a gateway timeout: nginx gives up on the backend before the per-node compliance pass finishes.
Two things would help pin it:
- Grab the PegaProx backend log at the moment of the 502 β does it log an actual error/traceback, or does the request just run long and nginx cuts it? That's timeout-vs-error.
- As an immediate workaround, bump nginx's
proxy_read_timeout(andproxy_connect_timeout) on the PegaProx location β a compliance pass over 6 nodes can blow past the default 60s.
Either way we should make that pass faster / run it async so it can't hang the request β noted.
[2026-08-20 14:45:41,684] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node02-th-A -> 192.168.100.15 (cluster/status, reachable on :22)
[2026-08-20 14:45:41,764] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.15: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:41,845] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.15: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:41,926] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.15: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:41,952] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node01-th-A is the local node, using 192.168.100.14
[2026-08-20 14:45:42,087] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.14: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,220] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.14: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,354] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.14: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,418] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node11-th-I -> 192.168.100.16 (cluster/status, reachable on :22)
[2026-08-20 14:45:42,500] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.16: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,580] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.16: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,662] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.16: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,727] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node21-th-D -> 192.168.100.18 (cluster/status, reachable on :22)
[2026-08-20 14:45:42,808] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.18: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,888] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.18: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:42,969] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.18: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:43,037] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node22-th-D -> 192.168.100.19 (cluster/status, reachable on :22)
[2026-08-20 14:45:43,118] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.19: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:43,199] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.19: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:43,280] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.19: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:43,341] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node12-th-I -> 192.168.100.17 (cluster/status, reachable on :22)
[2026-08-20 14:45:43,422] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.17: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:43,502] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.17: [email protected]: Permission denied (publickey).
[2026-08-20 14:45:43,583] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.17: [email protected]: Permission denied (publickey).
i think timeout wasnt the issue :D
although, im not sure how to combat this
we use PermitRootLogin without-password on all our nodes
when configuring the cluster, i cannot save with just an ssh key, and i think the issue is that its being offered both, so it chooses the password
Connection failed: Authentication failed β if 2FA is enabled, use an API token (user@realm!tokenid)
Same situation after engaging some CIS hardening. I re-enabled root password (not inhibit) in SSHD_config, but it wonβt return to connecting. Did one of the SSHD hardening steps regenerate a certain and now pegaprox is internally trusting the wrong one for that node?
The second log clears it up β this is SSH auth, not the gateway timeout that was guessed earlier. Your nodes run PermitRootLogin without-password, so the SSH server refuses root password auth outright. PegaProx tries the key first (nothing authorized yet β "Permission denied (publickey)"), then the password (refused for the same reason), so every node fails and the compliance pass 502s. The features that still work go through the PVE API on 8006, not SSH.
Fix: give it a key. Put a public key in /root/.ssh/authorized_keys on each node, then in the cluster's edit dialog open SSH Key (Optional) and paste the matching private key. Keep the API password/token β that only covers the API; SSH needs the key on without-password nodes. Testing now also logs this plainly instead of burying it in debug.
@allebone yours is a different cause. CIS hardening regenerates the node's SSH host key, and PegaProx pins the host key on first connect β so it now refuses the changed one, and re-enabling the password won't help because the host-key check fails before auth. Testing just got a Re-pin SSH host keys action in the cluster context menu for exactly this; until that build, removing and re-adding the cluster makes it re-learn the key.
Hello,
the weird thing is, i DO have an ssh key on the nodes and its also in passed through the connection settings for the Cluster
Docker logs:
[2026-09-01 09:41:16,614] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node21-th-D -> 192.168.100.18 (cluster/status, reachable on :22)
[2026-09-01 09:41:16,764] [PegaProx_Janus] INFO: [SSH] 192.168.100.18: node accepts SSH key auth only (e.g. PermitRootLogin without-password) β add an authorized SSH key for this cluster; the password/token only covers the PVE API, not SSH
[2026-09-01 09:41:17,134] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node22-th-D -> 192.168.100.19 (cluster/status, reachable on :22)
[2026-09-01 09:41:17,287] [PegaProx_Janus] INFO: [SSH] 192.168.100.19: node accepts SSH key auth only (e.g. PermitRootLogin without-password) β add an authorized SSH key for this cluster; the password/token only covers the PVE API, not SSH
[2026-09-01 09:41:17,663] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node12-th-I -> 192.168.100.17 (cluster/status, reachable on :22)
[2026-09-01 09:41:17,811] [PegaProx_Janus] INFO: [SSH] 192.168.100.17: node accepts SSH key auth only (e.g. PermitRootLogin without-password) β add an authorized SSH key for this cluster; the password/token only covers the PVE API, not SSH
[2026-09-01 09:41:18,137] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node01-th-A is the local node, using 192.168.100.14
[2026-09-01 09:41:18,289] [PegaProx_Janus] INFO: [SSH] 192.168.100.14: node accepts SSH key auth only (e.g. PermitRootLogin without-password) β add an authorized SSH key for this cluster; the password/token only covers the PVE API, not SSH
[2026-09-01 09:41:18,661] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node02-th-A -> 192.168.100.15 (cluster/status, reachable on :22)
[2026-09-01 09:41:18,813] [PegaProx_Janus] INFO: [SSH] 192.168.100.15: node accepts SSH key auth only (e.g. PermitRootLogin without-password) β add an authorized SSH key for this cluster; the password/token only covers the PVE API, not SSH
[2026-09-01 09:41:19,190] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node11-th-I -> 192.168.100.16 (cluster/status, reachable on :22)
[2026-09-01 09:41:19,342] [PegaProx_Janus] INFO: [SSH] 192.168.100.16: node accepts SSH key auth only (e.g. PermitRootLogin without-password) β add an authorized SSH key for this cluster; the password/token only covers the PVE API, not SSH
Backend log:
[2026-09-01 09:42:47,511] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.18: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:47,666] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.18: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:47,733] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node22-th-D -> 192.168.100.19 (cluster/status, reachable on :22)
[2026-09-01 09:42:47,885] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.19: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:48,039] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.19: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:48,192] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.19: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:48,264] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node12-th-I -> 192.168.100.17 (cluster/status, reachable on :22)
[2026-09-01 09:42:48,416] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.17: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:48,569] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.17: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:48,723] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.17: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:48,750] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node01-th-A is the local node, using 192.168.100.14
[2026-09-01 09:42:48,902] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.14: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:49,055] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.14: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:49,209] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.14: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:49,281] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node02-th-A -> 192.168.100.15 (cluster/status, reachable on :22)
[2026-09-01 09:42:49,433] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.15: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:49,583] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.15: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:49,736] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.15: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:49,807] [PegaProx_Janus] INFO: [NodeIP] pve-dmz-node11-th-I -> 192.168.100.16 (cluster/status, reachable on :22)
[2026-09-01 09:42:49,960] [PegaProx_Janus] DEBUG: [SSH] Key auth failed on 192.168.100.16: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:50,113] [PegaProx_Janus] DEBUG: [SSH] Command failed on 192.168.100.16: [email protected]: Permission denied (publickey).
[2026-09-01 09:42:50,264] [PegaProx_Janus] DEBUG: [SSH] Password auth failed on 192.168.100.16: [email protected]: Permission denied (publickey).
The key is valid, its on the nodes, i also tried using it myself to ssh onto the nodes and that works too.
its not the nodes
the ssh key gets written to a temp file exactly as stored, and openssh refuses a key file that has no trailing newline or crlf endings. it prints Load key "...": invalid format, then has no key left to offer, so the node answers Permission denied (publickey).
two things hide that. _ssh_stderr_excerpt only keeps the last stderr line, so the invalid format line gets dropped, and the hint then sees (publickey) and tells you to add a key you already added.
sshd on the node before: Connection closed by authenticating user root 192.168.100.24 [preauth] no Failed publickey line at all, the key never went out.
after normalising the key: Accepted publickey for root from 192.168.100.24 ssh2: ED25519 SHA256:...
compliance reaches all 6 nodes now. pr #769
Both halves of this are fixed in 1.1.1.
Your diagnosis was right and I couldn't have got there without it β the key was written to the temp file exactly as stored, and OpenSSH refuses a key with no trailing newline or with CRLF endings, so it had nothing left to offer and the node answered Permission denied (publickey). The stored key is normalised before it's written now.
While chasing it I hit a second way to land on the same dead dashboard: on a cluster that authenticates with an API token there are no SSH credentials at all, so every node check failed and the panel showed err 502 next to each one with no explanation. It now tells you which it is β no SSH credentials, node in backoff, or a connection that genuinely failed β and stops asking the remaining nodes when the cause is cluster-wide.
Leaving this open until you've had a chance to confirm on 1.1.1. Sponsoring keeps the lights on if you feel like it: https://opencollective.com/pegaprox
β Marcus
@mkellermann97 Thank You, very much for the response. I know you guys are doing amazing work, and keeping the improvements/fixes moving, all the time! Update to 1.1.1 fixed all my issues in those areas, and now I can get back to hardening without fear!
Good to hear, thanks for coming back and saying so β that is genuinely useful, most people just close the tab.
@hugobugomugo since you opened this one: is it sorted on your side too with 1.1.1? There were two separate causes in here (the stored SSH key without a trailing newline, and the token-only cluster with no SSH creds at all) and I would rather hear it from you before closing it.
https://opencollective.com/pegaprox if you ever feel like it.
Marcus
ill try to test this week, no promises though because this and next week will be quite busy
Closing this β no pressure to come back and test it, you said you were slammed and it's been a while.
Both causes are in 1.1.1. Yours was the stored key without a trailing newline, which OpenSSH rejects outright; the other one I hit locally was a token-only cluster with no SSH credentials at all, where the dashboard fanned out one hardening call per node and every one of them came back 502. That fan-out is gone too β a cluster-wide check is one call now instead of one per node, so a 100-node cluster doesn't make 100 of them.
The error you'd get today says which of the two it is rather than a bare 502, and it says it in your language.
If the dashboard still doesn't load for you on 1.1.1, reopen and I'll pick it straight back up.
β MK