[Bug] CVE Scanner: install debsecan silently fails
Describe the bug
Opening the CVE Scanner tab for a cluster starts with an empty view, which is ok:
Clicking on "Scan All Nodes" does something and comes back with the information "debsecan not installed":
Clicking on "Install debsecan" does something:
but after some time is comes back with the above:
Checking on a node in the cluster shows that "debsecan" in fact is installed:
which debsecan
/usr/bin/debsecan
Any log that could be checked to see what went wrong?
Steps to Reproduce
Follow the above.
Expected behavior
PegaProx detects installed debsecan and uses it.
Environment
- PegaProx Beta 0.9.3
- PVE: 9.1.6 on all nodes
- Installation Method: Manual (git clone)
- OS: Debian GNU/Linux 13
- Browser: Firefox 148
- Behind Reverse Proxy? No
- UI? Corporate
Checklist
- [x] I have searched existing issues to make sure this is not a duplicate
- [x] I am using the latest version of PegaProx
Hi @tfoks ,
if you want to check in the support bundle there should be logs which should give you a hint here.
Regards, Marcus
Hi @mkellermann97 , checked those, no hints found. What I have found (in the journal of a node) is a login and an attempt that dealt with debscan:
Mar 23 11:58:01 ... CRON[42353]: pam_unix(cron:session): session opened for user daemon(uid=1) by daemon(uid=0)
Mar 23 11:58:01 ... CRON[42355]: (daemon) CMD (test -x /usr/bin/debsecan && /usr/bin/debsecan --cron)
Mar 23 11:58:01 ... CRON[42353]: pam_unix(cron:session): session closed for user daemon
Regards, Thomas
Hi @tfoks ,
Hm, that's interesting. Which user did you use to connect to the PVE node, and does everything else SSH-related work?
Since you mentioned you already have debsecan installed – could you try running it manually and see what output you get? Thanks!
Regards, Marcus
Hi @mkellermann97 , the PVE nodes are connected via "root@pam" and seems as everything else works as expected (or I haven't used it yet ;-)). Running debscan manually provides the CVE list while "debsecan --cron" immediately returns -- vulnerability data has already been downloaded today.
Regards, Thomas
Hi @tfoks ,
this should be now a bit better with the update v0.9.3.1 . And now it should actually catch the error :).
Best Regards, Nico
...well...it didn't catch any error but simply works now ;-)...
Regards, Thomas
Hi @tfoks ,
that sounds great then! So its possible then to close also the issue or any questions remaining? :)
Regards, Nico
sorry...sure. Closing.