-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS creates 0-byte PDF report #2071
Comments
It looks like the error is occurring because the report.pdf file is not generated from the
On CentOS the output from the command is below, but no report.pdf file is created:
However, on a working distribution such as Kali Linux, the command ouput is much more extensive and successfully creates the report.pdf file. Here is just the start of the output from Kali linux:
Maybe the version on CentOS is too old and causing an issue? |
I can confirm that upgrading to texlive 2023 is able to compile PDF files as expected. Even CentOS 9 only has the TeX Live 2020 version available in the native repositories. The 2020 version's error is reported in the
I guess the 2020 version could be patched by installing the comments.sty package. It is available from CTAN here: https://www.ctan.org/pkg/comment but not sure whether its easier to do that or to just install the 2023 version and replace the pdflatex binary. |
Finally, I have also solved this issue by just installing the Latex So, after looking at both potential solutions for this issue just adding the Latex comment package to the 2020 version looks like the best solution. The main source of information for creating this process can be found here Unfortunately, the first suggested solution, to install via the
Here are the instructions that can be added to the CentOS source code install documentation to enable the Latex Download and unzip the
Find the appropriate system-wide install directory for Tex Live
The path Make the directory path and copy the comment package to the final destination path:
The texlive package cache must be refreshed
Greenbone should now be able to compile PDF report files for CentOS source code installations. |
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.
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.
The text was updated successfully, but these errors were encountered: