-
Notifications
You must be signed in to change notification settings - Fork 170
Description
Expected behavior
Greenbone functions will build PDF report files containing scan report information such as download report from report page, or selecting the alert option attach report with PDF report should deliver a valid PDF file with report via email.
Actual behavior
Greenbone builds 0-byte PDF reports
Steps to reproduce
Use any feature that create a PDF report file such as download PDF report from scan results page or create an alert that delivers a PDF report file. The PDF report created is a 0-byte file.
GVM versions
gsa: most recent
gvm: most recent
openvas-scanner: most recent
gvm-libs: most recent
Environment
Operating system:
source installation on CentOS 9 Stream. Does not affect other Kali Native Install, Ubuntu source code install, or Ubuntu Docker containers.
uname -a
Linux localhost.localdomain 5.14.0-319.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 25 19:53:58 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Logfiles
This log seems to indicate the function causing the error when attaching PDF report to alert email.
Again this only impact CentOS source code install only.
md manage:WARNING:2023-08-29 17h22.13 UTC:159651: run_report_format_script: system failed with ret 256, 1, /var/lib/gvm/gvmd/report_formats/0f10252f-4527-4d7e-8594-2c93f54da4f1/c402cc3e-b531-11e1-9163-406186ea4fc5/generate /tmp/gvmd_Od1vYh/report.xml '<files><basedir>/tmp/gvmd_Od1vYh</basedir></files>' > /tmp/gvmd_Od1vYh/c402cc3e-b531-11e1-9163-406186ea4fc5-KTdM2A.pdf 2> /dev/null