immauss / openvas

Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose.
GNU Affero General Public License v3.0
354 stars 102 forks source link

PDF generation 0 bytes #85

Closed DRIgnazGortngschirl closed 2 years ago

DRIgnazGortngschirl commented 2 years ago

Seems that in the latest version PDF generation is not working correctly (Files have 0 bytes in size)

openvas    | md manage:WARNING:2021-11-12 12h28.28 UTC:833: run_report_format_script: system failed with ret 256, 1, /var/lib/gvm/gvmd/report_formats/c00c685f-1415-48fd-b3b4-d7bdae0daba7/c402cc3e-b531-11e1-9163-406186ea4fc5/generate /tmp/gvmd_2QT92Q/report.xml '<files><basedir>/tmp/gvmd_2QT92Q</basedir></files>' > /tmp/gvmd_2QT92Q/c402cc3e-b531-11e1-9163-406186ea4fc5-c6jTCM.pdf 2> /dev/null

image

immauss commented 2 years ago

This should be fixed in the latest image. There was a dependency missing.

DRIgnazGortngschirl commented 2 years ago

Hmmm seems that the latest version just exits out without any logs.

Attaching to openvas
openvas exited with code 0
cybermcm commented 2 years ago

container exit with no log: related to https://github.com/immauss/openvas/issues/83 and https://github.com/immauss/openvas/issues/84 just wait for the new image, the pdf issue was already fixed in 21.4.4-03

cybermcm commented 2 years ago

you can try latest now, pdf report is working there

DRIgnazGortngschirl commented 2 years ago

Sadly still the same issue in 21.4.4-05. Also tried with latest docker release and this is what happens.

openvas    | Wait for redis socket to be created...
openvas    | Container stopped, performing shutdown
openvas    | pg_ctl: PID file "/data/database/postmaster.pid" does not exist
openvas    | Is server running?
openvas    | Wait for redis socket to be created...
cybermcm commented 2 years ago

yeah, seems that @immauss broke it again, yesterday's latest was working, today's is not... I'm sure he'll fix it soon

immauss commented 2 years ago

@cybermcm .... :/ Thanks .... I was getting close to resolving most of the issues with the last set of changes and wanted to update the DB. So I ran the refresh, which I forgot also rebuilds from the current source and pushes to the latest. I've put the working image back as latest.

DRIgnazGortngschirl commented 2 years ago

No worries @immauss you are doing a great job. Thank you for the docker images!

immauss commented 2 years ago

@MrMarioMichel Could you please try 21.4.4-06 and let me know if this resolve the problem? Thanks, Scott

DRIgnazGortngschirl commented 2 years ago

@immauss The version 21.4.4-06 seems to fix the broken PDF generation and creates PDF files again as expected!

I think you can close this issue!

immauss commented 2 years ago

Awesome! Thank you for the follow up.