Closed rudnypc closed 3 years ago
@rudnypc If you don't fill out the bug template completely we won't be able to help you.
Describe the bug When I try to download a PDF report, the report is 0 bytes, I'm using the image "21.4.3-v1-data-full".
To Reproduce Steps to reproduce the behavior:
Expected behavior I would like a complete report.
Screenshots If applicable, add screenshots to help explain your problem.
Host Device:
Image in use:
docker image inspect <image>
:
root@SRV-SWARM-INFRA:~# docker image inspect securecompliance/gvm:latest-data-full@sha256:ae8ac631f48ebb825c1135d513d3bd059f0b6ba4d2a346b587d3da9f1b888e7e
[
{
"Id": "sha256:6532c9ce329f7afafb88862a77ed26bd22c17d5005fca037fd8e86c8607a114c",
"RepoTags": [],
"RepoDigests": [
"securecompliance/gvm@sha256:ae8ac631f48ebb825c1135d513d3bd059f0b6ba4d2a346b587d3da9f1b888e7e"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2021-08-08T20:46:18.956494363Z",
"Container": "",
"ContainerConfig": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"22/tcp": {},
"5432/tcp": {},
"8081/tcp": {},
"9392/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"SUPVISD=supervisorctl",
"USERNAME=admin",
"PASSWORD=adminpassword",
"PASSWORD_FILE=none",
"TIMEOUT=15",
"DEBUG=N",
"RELAYHOST=smtp",
"SMTPPORT=25",
"AUTO_SYNC=true",
"HTTPS=true",
"CERTIFICATE=none",
"CERTIFICATE_KEY=none",
"TZ=Etc/UTC",
"SSHD=false",
"DB_PASSWORD=none",
"DB_PASSWORD_FILE=none",
"LANG=en_US.UTF-8",
"LANGUAGE=en_US.UTF-8",
"LC_ALL=en_US.UTF-8",
"MUSL_LOCPATH=/usr/share/i18n/locales/musl",
"SETUP=0",
"OPT_PDF=1"
],
"Cmd": [
"/usr/bin/supervisord",
"-n",
"-c",
"/etc/supervisord.conf"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/etc/ssh": {},
"/opt/database": {},
"/var/lib/gvm": {},
"/var/lib/openvas/plugins": {}
},
"WorkingDir": "",
"Entrypoint": [
"/entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"org.opencontainers.image.created": "2021-08-08T20:40:19.640Z",
"org.opencontainers.image.description": "Greenbone Vulnerability Management Docker Image with OpenVAS",
"org.opencontainers.image.licenses": "MIT",
"org.opencontainers.image.revision": "45166f1b9bc1c5314303b99ee1a94bb7552bc153",
"org.opencontainers.image.source": "https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker",
"org.opencontainers.image.title": "GVM-Docker",
"org.opencontainers.image.url": "https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker",
"org.opencontainers.image.version": "21.4.3-v1-data-full"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 4297891289,
"VirtualSize": 4297891289,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/aeac4f9793e7be0d326ccbc6a520a31f585d5270cca386a0fd31094564aa77f7/diff:/var/lib/docker/overlay2/a729be592fbffe721ab0a2a48ce7fb03e302f8eba9e83579be6a78b7a71a2b03/diff:/var/lib/docker/overlay2/3f2b374331f3b3a1becdad31ec094373238074773b4ed1ba6d6fcdaec921347d/diff:/var/lib/docker/overlay2/400df655cee3de0116e49c28296851973709199178afc12e9a77e36e65803b66/diff:/var/lib/docker/overlay2/b0ac1f5e796bfe286f31308f2d227915f5af8673c95d4d8cc7fbbb24fa9f951f/diff:/var/lib/docker/overlay2/2ca7e864758c92e9f36f0581fcbe5f6d0353811c37a3ed1d85478d33a782f2ef/diff:/var/lib/docker/overlay2/8dc5c6360301ef8118ae3511531eb0cb02dc420bbf70a526cb0162b0fd629720/diff:/var/lib/docker/overlay2/01ec4b575bced3cdb82de4f5c76d2cf2d44bd63132c5676e5049347ba5dd1347/diff:/var/lib/docker/overlay2/487f80b2e6354c7739ae86b9ed4f9d6d15e9f39432f0fb07b44251cd5470d807/diff:/var/lib/docker/overlay2/928c1cde8e8cd9af68a9a4b9462fded7b05ec9414643b054c042d855f84fb0cf/diff:/var/lib/docker/overlay2/1f6b19dfa3a03ac102ec2abf9203bfc179ba0abfb2af37f7302e3d121f008035/diff:/var/lib/docker/overlay2/f1ae862ce0ac4ef7e010a3400be89ca591c189847c6b94b9079e672a0d1f20da/diff:/var/lib/docker/overlay2/d112e03ab53dde3b7cad179548cad5ddc8ec9d8b2a468fb355f3551a8f35836d/diff:/var/lib/docker/overlay2/d721d90a1e794ca6fe7a65c4af2cf9d4a584491a61c38e89a77c296bb23db0b4/diff",
"MergedDir": "/var/lib/docker/overlay2/4a3c4a0253c198b2cb1edf59b802ebcedabd9b7a2515beaaf7e535ef70fa285f/merged",
"UpperDir": "/var/lib/docker/overlay2/4a3c4a0253c198b2cb1edf59b802ebcedabd9b7a2515beaaf7e535ef70fa285f/diff",
"WorkDir": "/var/lib/docker/overlay2/4a3c4a0253c198b2cb1edf59b802ebcedabd9b7a2515beaaf7e535ef70fa285f/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:bc276c40b172b1c5467277d36db5308a203a48262d5f278766cf083947d05466",
"sha256:0c4ac070c4f03cca7c16a747fd9d467b485c061795399010bd3100581ec41c0a",
"sha256:5d6bbd2dcce5feb5424d1e3ee6b44049d37071d175d18eb303a73a79916848d8",
"sha256:16695a3a00062961220ed6f18b64cfd35358523af07e29a8883d0cafa5c96527",
"sha256:a59e5a6ab44c1b2ed1afea4e2f931ef547f4bf63c6fdd8285b67fe8a5a2ce99f",
"sha256:9036d1e8e0173202f37107495ca936ea7212936b6ee822bc0b9382e486a99e3d",
"sha256:ee290c784570e9d71576d06e5c05cb1174d72c1c2b280d4cfa8018ccda0fed88",
"sha256:b0a7804131f6cd5ae9b6527379c0a374fa76e960f2201e4d3dd2df94bb3cdde6",
"sha256:2e640983d7088266c796b233ed6c949e118a8b043108b1e3c98e74413fec2383",
"sha256:a9ae95a9e54ee4eeb73c72bf88e5d799274f94daa6f984924531d12633469129",
"sha256:02b18ec11a49495185b7cef99d3ed5a332123c17fd699a460cbd7bfda57d0cae",
"sha256:1a0a0799c42ce65f726c5454d3d6656b80dd854dbb05747e6d43f497e124535a",
"sha256:93ce1cb27fbd99165639d00f5b8626d938ccf9de99aecbddb21c9a474eede731",
"sha256:3e84b4adb1addaf3f08304f8629ffdaad7fb6bf4c52c19efea8ad390edde16ff",
"sha256:cc31467c23b6882ffbd66baf9f5fea4d9783a396450214678452142a04607a4e"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]
**Additional context**
Hi there, I have the same issue in 21.4.3-v1 image.
Hi there, I have the same issue in 21.4.3-v1 image.
This work for me https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/issues/249#issuecomment-894805814
It looks badly like a memory shortage on the build system, because this never happened on a 16GB ram system and only on the GitHub servers… with ~2GB ram.
Von meinem iPhone gesendet
Am 22.09.2021 um 16:38 schrieb SOC-LaneWan @.***>:
Hi there, I have the same issue in 21.4.3-v1 image.
This worked for me too. #249 (comment) Had the same issue.
Thanks 👍
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.
I don't think this is related to RAM limitations. My system has 24GB of RAM, running only this container and I'm getting the same 0 byte issue when exporting PDF.
Ok! It's working here now after installing the addon package:
apk add texmf-dist-latexextra
@DaniloMussolini
Doesn't make sense... It's already listed here.
Hi there, I have the same issue in 21.4.3-v1 image.
This work for me #249 (comment)
I merge that fix with all entrypoint code after that I mapped the entrypoint file to /entrypoint.sh . everything works fine now
@rudnypc How do you map the entrypoint file?
Nevermind, I got it guys. I ran the line apk add --no-cache --allow-untrusted texlive texmf-dist-latexextra texmf-dist-fontsextra It seems that you need to install all three packages instead of just the one.
Have switch to Debian. Closing this.
We have found another bug that related to the PDF Reports that we track on https://github.com/DeineAgenturUG/greenbone-gvm-openvas-for-docker/issues/9
Hi,
When I try to download a PDF report, the report is 0 bytes, I'm using the image "21.4.3-v1-data-full". I have to run that command: https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/issues/249#issuecomment-894805814
DOCKERHUB
MY STACK: