[Bug] Proxmox Backup Server integration does not show syslog when pressing click to load syslog
Describe the bug
Proxmox Backup Server integration does not show syslog when pressing click to load syslog
Steps to Reproduce
- Login to a PegaProx instance where Proxmox Backup Server is configured.
- Click on the Proxmox Backup Server.
- Click on "Click to load syslog".
Expected behavior
The (recent?) syslog should be shown.
Environment
- PegaProx Version: 1.1.1
- Installation Method: Manual
- OS: Debian 13
- Browser: Mozilla Firefox 155.0.1 and Google Chrome 151.
- Behind Reverse Proxy? No
- UI? Corporate
Logs
Not Applicable
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
You are right, and it is a bit worse than "not shown": the backend endpoint for PBS syslog exists and works, the UI just never calls it. Syslog is only wired up for PVE nodes. So the data is there, nobody built the panel for it.
Small one, taking it.
— MK
There were two problems stacked on top of each other here, and the one that matters is ours.
Our PBS client doesn't raise on a refusal — it returns a dict with the error in it. The syslog route then reached straight for data and got nothing, so it answered 200 with an empty list. The panel treats an empty list as "not loaded yet" and re-renders its own "Click to load syslog" prompt. That is why the button looks dead: every click really did complete, successfully, with nothing in it. Nothing in the browser console either, because as far as the browser was concerned it worked. The only trace was a warning line in our own log.
That is fixed. The route now returns the actual status, and the panel distinguishes not-loaded, loading, loaded-but-empty and failed, with a retry.
The second problem is probably on your side, and you should now be able to see it. PBS guards /nodes/<node>/syslog with Sys.Audit on /system/log. A token or user created for backup work alone (the Datastore.* privileges) does not carry it, and that is the common case. If that is what your PBS is refusing, the panel will now say so in as many words, naming the privilege and the path.
Could you pull the next Testing build and click it once? If you get the Sys.Audit message, adding that privilege to the PBS user or token should be all it needs. If you get something else, that message will tell us both what.
Good report — it went in as "does not show syslog", which is exactly right, and the reason it was so hard to say more than that was our own doing.
In 1.2.0. The syslog panel no longer gets taken back by a request that was already overtaken, and PBS stopped reporting a refusal as an empty result — which is what made it look like there was simply nothing there.
Marcus