Skip to content
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

PDF-reports are empty #249

Open
kaptenkrille opened this issue Jul 31, 2021 · 23 comments
Open

PDF-reports are empty #249

kaptenkrille opened this issue Jul 31, 2021 · 23 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed Priority:High

Comments

@kaptenkrille
Copy link

kaptenkrille commented Jul 31, 2021

Describe the bug
I started a container with OPT_PDF="1" but pdf-reports are empty on exports, XML/TXT works. Command I used to deploy the container:
docker run --detach --publish 8080:9392 --env OPT_PDF="1" --volume gvm-data:/data --name gvm securecompliance/gvm

To Reproduce
Steps to reproduce the behavior:

  1. docker run --detach --publish 8080:9392 --env OPT_PDF="1" --volume gvm-data:/data --name gvm securecompliance/gvm
  2. Run scan
  3. Export PDF

Expected behavior
A "normal" pdf-report.

Host Device:

  • OS: Ubuntu
  • Version: 18.04

docker image inspect

[
    {
        "Id": "bf38c39a8ce06ac2d219dc94af302fa24219f064253ecfe3f41168f53595ef4b",
        "Created": "2021-07-31T09:21:20.129206961Z",
        "Path": "/entrypoint.sh",
        "Args": [
            "/usr/bin/supervisord",
            "-n",
            "-c",
            "/etc/supervisord.conf"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 13811,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2021-07-31T09:21:41.113405474Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:e6002888b2e120d09c48b2cd135e65b7824995f5cc2da709eee48fcf0e76cc47",
        "ResolvConfPath": "/var/lib/docker/containers/bf38c39a8ce06ac2d219dc94af302fa24219f064253ecfe3f41168f53595ef4b/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/bf38c39a8ce06ac2d219dc94af302fa24219f064253ecfe3f41168f53595ef4b/hostname",
        "HostsPath": "/var/lib/docker/containers/bf38c39a8ce06ac2d219dc94af302fa24219f064253ecfe3f41168f53595ef4b/hosts",
        "LogPath": "/var/lib/docker/containers/bf38c39a8ce06ac2d219dc94af302fa24219f064253ecfe3f41168f53595ef4b/bf38c39a8ce06ac2d219dc94af302fa24219f064253ecfe3f41168f53595ef4b-json.log",
        "Name": "/gvm",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "gvm-data:/data"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "9392/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "host",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/a110b783bf4ebdc129decc6c4cdf80a4084b5d0100b43491cc8072f896c371f1-init/diff:/var/lib/docker/overlay2/47fa2083a01524e547b1397f04c256fa2407b1ad7fff6d22c4bd14f55de80c46/diff:/var/lib/docker/overlay2/2484f395e72fb7c5b0eb9021d9a63eed34bc0d82bfb8e554146168a46b465640/diff:/var/lib/docker/overlay2/5331eb6fe3ccc43e27415cdec5e34e581d2388097d1c645c842bd96da7a2ab98/diff:/var/lib/docker/overlay2/4055c27c146dbf2c3b443a6cd266ad5b325ec972492b022c05f246ca5b2aa958/diff:/var/lib/docker/overlay2/fc81fb40bab8a8464ca78fcc8cc704ec133bb12bab0c907526f94929449bd56a/diff:/var/lib/docker/overlay2/7428c72e0b9deba5f1ae626e7b564ca4368a919f2d2a04a3d339bc7dcc7ae590/diff:/var/lib/docker/overlay2/f4fc91334f0e8222c1c2a096729157dede1f4dbdd7b48c7a7e6c487bf3a8ffd4/diff:/var/lib/docker/overlay2/2d90786a5fce42b3008834f9c73c2e56a2d927e6d556e827f27a04fac996adec/diff:/var/lib/docker/overlay2/27ab3e5012117061726c40550f4f0310f9d06432582d7f70d653c92ba2c1bf7a/diff:/var/lib/docker/overlay2/611b6729e609db23dcb9d33d144762d274408f4f93f38e840df5b3107c39300e/diff:/var/lib/docker/overlay2/39653532a6f37cf4ab94e1bbe785ee11226f7b691e245ae2c9bfc9eeffc60921/diff:/var/lib/docker/overlay2/4fef033b50929a088aebc1b0a245221ed03f14d0c483568b9be3931f0f111976/diff:/var/lib/docker/overlay2/1cd58aa2350cc61e547a63123916af543ddcc1be7f5ff93af070c19c04401d1c/diff:/var/lib/docker/overlay2/3144c73ddfdde16bf11e4186b025449ca56ef22ddc83cfa7d1759ee222938f66/diff",
                "MergedDir": "/var/lib/docker/overlay2/a110b783bf4ebdc129decc6c4cdf80a4084b5d0100b43491cc8072f896c371f1/merged",
                "UpperDir": "/var/lib/docker/overlay2/a110b783bf4ebdc129decc6c4cdf80a4084b5d0100b43491cc8072f896c371f1/diff",
                "WorkDir": "/var/lib/docker/overlay2/a110b783bf4ebdc129decc6c4cdf80a4084b5d0100b43491cc8072f896c371f1/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "gvm-data",
                "Source": "/var/lib/docker/volumes/gvm-data/_data",
                "Destination": "/data",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "dfc42d0293a00b73ea8be4ebd67bd54f955bbcced0f79d57926555959ed265ef",
                "Source": "/var/lib/docker/volumes/dfc42d0293a00b73ea8be4ebd67bd54f955bbcced0f79d57926555959ed265ef/_data",
                "Destination": "/opt/database",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "9485a02582324ee48246f224ce488c02fbfa282db149639a5bd77d330fabe910",
                "Source": "/var/lib/docker/volumes/9485a02582324ee48246f224ce488c02fbfa282db149639a5bd77d330fabe910/_data",
                "Destination": "/var/lib/gvm",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "b9ef24fd92daee46407de83e354b948197df57c0bedba32e47da74c3ea71c54d",
                "Source": "/var/lib/docker/volumes/b9ef24fd92daee46407de83e354b948197df57c0bedba32e47da74c3ea71c54d/_data",
                "Destination": "/var/lib/openvas/plugins",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "844185e5c70693b926cf838e81cf72424f4cf63527b9c87cbe40ecf7365d70b3",
                "Source": "/var/lib/docker/volumes/844185e5c70693b926cf838e81cf72424f4cf63527b9c87cbe40ecf7365d70b3/_data",
                "Destination": "/etc/ssh",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "bf38c39a8ce0",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "22/tcp": {},
                "5432/tcp": {},
                "8081/tcp": {},
                "9392/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "OPT_PDF=1",
                "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"
            ],
            "Cmd": [
                "/usr/bin/supervisord",
                "-n",
                "-c",
                "/etc/supervisord.conf"
            ],
            "Image": "securecompliance/gvm",
            "Volumes": {
                "/etc/ssh": {},
                "/opt/database": {},
                "/var/lib/gvm": {},
                "/var/lib/openvas/plugins": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "org.opencontainers.image.created": "2021-07-28T13:52:22.633Z",
                "org.opencontainers.image.description": "Greenbone Vulnerability Management Docker Image with OpenVAS",
                "org.opencontainers.image.licenses": "MIT",
                "org.opencontainers.image.revision": "fea49b6dcf7c33af4ee577cd4b2c17ec487e8efb",
                "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.2-v3-data-full"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "718d1a38d3db78282e098f7ed209eedf631ce97ff79cb467873afcdec568100b",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "22/tcp": null,
                "5432/tcp": null,
                "8081/tcp": null,
                "9392/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8080"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/718d1a38d3db",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "819d9a01ca1b47169686c4d3d9b7a90d2097ee0bc6f4d25578ac4c04d4f05bd3",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "b436e5105096cd6e9ea506680895c1f59fbf6abc764069fbf3dd9404b21d09f8",
                    "EndpointID": "819d9a01ca1b47169686c4d3d9b7a90d2097ee0bc6f4d25578ac4c04d4f05bd3",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                }
            }
        }
    }
]

Additional context
I'm probably doing something wrong but guides are pretty straight forward so I can't figure out where it goes wrong.

@kaptenkrille kaptenkrille added the bug Something isn't working label Jul 31, 2021
@Dexus
Copy link
Contributor

Dexus commented Jul 31, 2021

First question: you read the docs correctly? Volumes changed!

Second question: was the database final initialized? Takes up to 1 hour on fresh setups. (Same as on new installations from source)

@kaptenkrille
Copy link
Author

First question: you read the docs correctly? Volumes changed!

Sorry I don't understand your remark here, but I changed my command now to:
docker run --detach --publish 8080:9392 --env OPT_PDF="1" --name gvm securecompliance/gvm

Second question: was the database final initialized? Takes up to 1 hour on fresh setups. (Same as on new installations from source)

I think so yes, is there some way to double check? The container was running for more than 1 hour when I tested.

@Dexus
Copy link
Contributor

Dexus commented Jul 31, 2021

First question: you read the docs correctly? Volumes changed!

Sorry I don't understand your remark here, but I changed my command now to:

docker run --detach --publish 8080:9392 --env OPT_PDF="1" --name gvm securecompliance/gvm

Let me check this one more time, on my tests it worked without problems. Has the report only some or many findings?

Can you attach the pdf output? This would help if you think it's confidential then send it via email to me. Thank you.

Second question: was the database final initialized? Takes up to 1 hour on fresh setups. (Same as on new installations from source)

I think so yes, is there some way to double check? The container was running for more than 1 hour when I tested.

I know that if the DB is not final initialized your reports can be incomplete and broken. Also the Tests not fully done. But mostly the DB is finished when you have no SCAP error in the NVT page in the UI and you have all the configs available, in other words the scanconfigs are there in the UI.

@rudnypc
Copy link

rudnypc commented Jul 31, 2021

I have the same problem, I'm using the image securecompliance/gvm:master-data-full

@kaptenkrille
Copy link
Author

First question: you read the docs correctly? Volumes changed!

Sorry I don't understand your remark here, but I changed my command now to:
docker run --detach --publish 8080:9392 --env OPT_PDF="1" --name gvm securecompliance/gvm

Let me check this one more time, on my tests it worked without problems. Has the report only some or many findings?

Can you attach the pdf output? This would help if you think it's confidential then send it via email to me. Thank you.

All I get is an empty file. I can e-mail that you if you think it could be useful?

Second question: was the database final initialized? Takes up to 1 hour on fresh setups. (Same as on new installations from source)

I think so yes, is there some way to double check? The container was running for more than 1 hour when I tested.

I know that if the DB is not final initialized your reports can be incomplete and broken. Also the Tests not fully done. But mostly the DB is finished when you have no SCAP error in the NVT page in the UI and you have all the configs available, in other words the scanconfigs are there in the UI.

Looks like it finished then because I got all the 75288 NVT's there.

@Dexus Dexus added help wanted Extra attention is needed Priority:High labels Aug 2, 2021
@Dexus
Copy link
Contributor

Dexus commented Aug 2, 2021

It looks like the problem is that the generation of the PDF will fail, pdflatex returns an error. I' try to find the problem, but would like to get additional help on this.

@Dexus
Copy link
Contributor

Dexus commented Aug 2, 2021

What I found so far: is looks like it is GVMD related. I have created a bug greenbone/gvmd#1658

@tmuncks
Copy link

tmuncks commented Aug 6, 2021

I'm having the same problem and while I haven't found a solution, this is my report.log

This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/Alpine Linux) (preloaded format=pdflatex 2021.7.28)  6 AUG 2021 17:11
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**/tmp/tmp.XEvGGzNVex/report.tex
(/tmp/tmp.XEvGGzNVex/report.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18> (/usr/share/texmf-dist/tex/latex/base/article
.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count179
\c@section=\count180
\c@subsection=\count181
\c@subsubsection=\count182
\c@paragraph=\count183
\c@subparagraph=\count184
\c@figure=\count185
\c@table=\count186
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/share/texmf-dist/tex/latex/tools/tabularx.sty
Package: tabularx 2020/01/15 v2.11c `tabularx' package (DPC)
(/usr/share/texmf-dist/tex/latex/tools/array.sty
Package: array 2020/10/01 v2.5c Tabular extension package (FMi)
\col@sep=\dimen139
\ar@mcellbox=\box47
\extrarowheight=\dimen140
\NC@list=\toks15
\extratabsurround=\skip49
\backup@length=\skip50
\ar@cellbox=\box48
)
\TX@col@width=\dimen141
\TX@old@table=\dimen142
\TX@old@col=\dimen143
\TX@target=\dimen144
\TX@delta=\dimen145
\TX@cols=\count187
\TX@ftn=\toks16
) (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
) (/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm@cnth=\count188
\Gm@cntv=\count189
\c@Gm@tempcnt=\count190
\Gm@bindingoffset=\dimen146
\Gm@wd@mp=\dimen147
\Gm@odd@mp=\dimen148
\Gm@even@mp=\dimen149
\Gm@layoutwidth=\dimen150
\Gm@layoutheight=\dimen151
\Gm@layouthoffset=\dimen152
\Gm@layoutvoffset=\dimen153
\Gm@dimlist=\toks18
) (/usr/share/texmf-dist/tex/latex/comment/comment.sty
\CommentStream=\write3
Excluding comment 'comment') (/usr/share/texmf-dist/tex/latex/tools/longtable.s
ty
Package: longtable 2020/01/07 v4.13 Multi-page Table package (DPC)
\LTleft=\skip51
\LTright=\skip52
\LTpre=\skip53
\LTpost=\skip54
\LTchunksize=\count191
\LTcapwidth=\dimen154
\LT@head=\box49
\LT@firsthead=\box50
\LT@foot=\box51
\LT@lastfoot=\box52
\LT@cols=\count192
\LT@rows=\count193
\c@LT@tables=\count194
\c@LT@chunks=\count195
\LT@p@ftn=\toks19
) (/usr/share/texmf-dist/tex/latex/titlesec/titlesec.sty
Package: titlesec 2019/10/16 v2.13 Sectioning titles
\ttl@box=\box53
\beforetitleunit=\skip55
\aftertitleunit=\skip56
\ttl@plus=\dimen155
\ttl@minus=\dimen156
\ttl@toksa=\toks20
\titlewidth=\dimen157
\titlewidthlast=\dimen158
\titlewidthfirst=\dimen159
) (/usr/share/texmf-dist/tex/latex/changepage/chngpage.sty
Package: chngpage 2009/10/20 v1.2b change page layout
\c@cp@cnt=\count196
\c@cp@tempcnt=\count197
) (/usr/share/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count198
\calc@Bcount=\count199
\calc@Adimen=\dimen160
\calc@Bdimen=\dimen161
\calc@Askip=\skip57
\calc@Bskip=\skip58
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count266
\calc@Cskip=\skip59
) (/usr/share/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip16
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
) (/usr/share/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks21
\inpenc@posthook=\toks22
(/usr/share/texmf-dist/tex/latex/ucs/utf8x.def
File: utf8x.def 2004/10/17 UCS: Input encoding UTF-8
)) (/usr/share/texmf-dist/tex/latex/ucs/ucs.sty
Package: ucs 2013/05/11 v2.2 UCS: Unicode input support
(/usr/share/texmf-dist/tex/latex/ucs/data/uni-global.def
File: uni-global.def 2013/05/13 UCS: Unicode global data
)
\uc@secondtry=\count267
\uc@combtoks=\toks23
\uc@combtoksb=\toks24
\uc@temptokena=\toks25
) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
) (/usr/share/texmf-dist/tex/latex/colortbl/colortbl.sty
Package: colortbl 2020/01/04 v1.0e Color table columns (DPC)
(/usr/share/texmf-dist/tex/latex/graphics/color.sty
Package: color 2020/02/24 v1.2b Standard LaTeX Color (DPC)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package color Info: Driver file: pdftex.def on input line 147.
(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
))
\everycr=\toks26
\minrowclearance=\skip60
) (/usr/share/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2021-02-27 v7.00k Hypertext links for LaTeX
(/usr/share/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
) (/usr/share/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
) (/usr/share/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
) (/usr/share/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
) (/usr/share/texmf-dist/tex/generic/pdfescape/pdfescape.sty
Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
) (/usr/share/texmf-dist/tex/latex/hycolor/hycolor.sty
Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
) (/usr/share/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty
Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
) (/usr/share/texmf-dist/tex/latex/auxhook/auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
) (/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO)
)
\@linkdim=\dimen162
\Hy@linkcounter=\count268
\Hy@pagecounter=\count269
(/usr/share/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2021-02-27 v7.00k Hyperref: PDFDocEncoding definition (HO)
) (/usr/share/texmf-dist/tex/latex/hyperref/hyperref-langpatches.def
File: hyperref-langpatches.def 2021-02-27 v7.00k Hyperref: patches for babel la
nguages
) (/usr/share/texmf-dist/tex/generic/intcalc/intcalc.sty
Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO)
) (/usr/share/texmf-dist/tex/generic/etexcmds/etexcmds.sty
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
)
\Hy@SavedSpaceFactor=\count270
(/usr/share/texmf-dist/tex/latex/hyperref/puenc.def
File: puenc.def 2021-02-27 v7.00k Hyperref: PDF Unicode definition (HO)
)
Package hyperref Info: Hyper figures OFF on input line 4192.
Package hyperref Info: Link nesting OFF on input line 4197.
Package hyperref Info: Hyper index ON on input line 4200.
Package hyperref Info: Plain pages OFF on input line 4207.
Package hyperref Info: Backreferencing OFF on input line 4212.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4445.
\c@Hy@tempcnt=\count271
LaTeX Info: Redefining \url on input line 4804.
\XeTeXLinkMargin=\dimen163
(/usr/share/texmf-dist/tex/generic/bitset/bitset.sty
Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO)
(/usr/share/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty
Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO
)
))
\Fld@menulength=\count272
\Field@Width=\dimen164
\Fld@charsize=\dimen165
Package hyperref Info: Hyper figures OFF on input line 6075.
Package hyperref Info: Link nesting OFF on input line 6080.
Package hyperref Info: Hyper index ON on input line 6083.
Package hyperref Info: backreferencing OFF on input line 6090.
Package hyperref Info: Link coloring OFF on input line 6095.
Package hyperref Info: Link coloring with OCG OFF on input line 6100.
Package hyperref Info: PDF/A mode OFF on input line 6105.
LaTeX Info: Redefining \ref on input line 6145.
LaTeX Info: Redefining \pageref on input line 6149.
(/usr/share/texmf-dist/tex/latex/base/atbegshi-ltx.sty
Package: atbegshi-ltx 2020/08/17 v1.0a Emulation of the original atbegshi packa
ge
with kernel methods
)
\Hy@abspage=\count273
\c@Item=\count274
\c@Hfootnote=\count275
)
Package hyperref Info: Driver (autodetected): hpdftex.
(/usr/share/texmf-dist/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2021-02-27 v7.00k Hyperref driver for pdfTeX
(/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty
Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atvery packag
e
with kernel methods
)
\Fld@listcount=\count276
\c@bookmark@seq@number=\count277
(/usr/share/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
Package: rerunfilecheck 2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
(/usr/share/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty
Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO)
)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
86.
)
\Hy@SectionHShift=\skip61
)
Package hyperref Info: Option `colorlinks' set `true' on input line 40.

Package hyperref Warning: Option `bookmarks' has already been used,
(hyperref)                setting the option has no effect on input line 40.

Package hyperref Info: Option `bookmarksopen' set `true' on input line 40.
(/usr/share/texmf-dist/tex/latex/oberdiek/hypcap.sty
Package: hypcap 2016/05/16 v1.12 Adjusting the anchors of captions (HO)
) (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2021-03-18 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count278
\l__pdf_internal_box=\box54
) (/tmp/tmp.XEvGGzNVex/report.aux)
\openout1 = `report.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for PU/pdf/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
*geometry* verbose mode - [ preamble ] result:
* driver: pdftex
* paper: a4paper
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes: 
* h-part:(L,W,R)=(89.62709pt, 418.25368pt, 89.6271pt)
* v-part:(T,H,B)=(101.40665pt, 591.5302pt, 152.11pt)
* \paperwidth=597.50787pt
* \paperheight=845.04684pt
* \textwidth=418.25368pt
* \textheight=591.5302pt
* \oddsidemargin=17.3571pt
* \evensidemargin=17.3571pt
* \topmargin=-7.86334pt
* \headheight=12.0pt
* \headsep=25.0pt
* \topskip=10.0pt
* \footskip=30.0pt
* \marginparwidth=65.0pt
* \marginparsep=11.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)

(/usr/share/texmf-dist/tex/latex/ucs/ucsencs.def
File: ucsencs.def 2011/01/21 Fixes to fontencodings LGR, T3
) (/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count279
\scratchdimen=\dimen166
\scratchbox=\box55
\nofMPsegments=\count280
\nofMParguments=\count281
\everyMPshowfont=\toks27
\MPscratchCnt=\count282
\MPscratchDim=\dimen167
\MPnumerator=\count283
\makeMPintoPDFobject=\count284
\everyMPtoPDFconversion=\toks28
)
Package hyperref Info: Link coloring ON on input line 51.
(/usr/share/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2021-04-02 v2.47 Cross-referencing by name of section
(/usr/share/texmf-dist/tex/latex/refcount/refcount.sty
Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO)
) (/usr/share/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty
Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO)
)
\c@section@level=\count285
)
LaTeX Info: Redefining \ref on input line 51.
LaTeX Info: Redefining \pageref on input line 51.
LaTeX Info: Redefining \nameref on input line 51.
(/tmp/tmp.XEvGGzNVex/report.out) (/tmp/tmp.XEvGGzNVex/report.out)
\@outlinefile=\write4
\openout4 = `report.out'.

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 54.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 54.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 54.

LaTeX Warning: No \author given.

(/tmp/tmp.XEvGGzNVex/report.toc)
\tf@toc=\write5
\openout5 = `report.toc'.

[1



pdfTeX warning: pdflatex (file pdftex.map): cannot open font map file
]
Underfull \vbox (badness 10000) detected at line 87
 []


Underfull \hbox (badness 10000) in paragraph at lines 88--98

 []

[2] (/tmp/tmp.XEvGGzNVex/report.aux)
Package rerunfilecheck Info: File `report.out' has not changed.
(rerunfilecheck)             Checksum: 4B0DA185DE8A678BDB447023E930E262;248.
 ) 
Here is how much of TeX's memory you used:
 9171 strings out of 478994
 133424 string characters out of 5864716
 455166 words of memory out of 5000000
 26525 multiletter control sequences out of 15000+600000
 413140 words of font info for 45 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 71i,7n,74p,326b,324s stack positions out of 5000i,500n,10000p,200000b,80000s

!pdfTeX error: pdflatex (file ecsl1000): Font ecsl1000 at 600 not found
 ==> Fatal error occurred, no output PDF file produced!

Hopefully this means something to people smarter than me. :)

Dexus pushed a commit to Dexus-Forks/scs-docker-gvm that referenced this issue Aug 8, 2021
@Dexus
Copy link
Contributor

Dexus commented Aug 8, 2021

@kaptenkrille @tmuncks @rudnypc You can run in the container:

#!/bin/sh
echo " --> updmap-sys --syncwithtrees"
yes 2> /dev/null | updmap-sys --syncwithtrees > /dev/null 2>&1 > /dev/null
echo " --> updmap-sys"
updmap-sys > /dev/null 2>&1 > /dev/null
echo " --> mktexlsr"
mktexlsr > /dev/null 2>&1 > /dev/null
echo " --> texhash"
texhash > /dev/null 2>&1 > /dev/null
echo " --> fmtutil-sys --all"
fmtutil-sys --all > /dev/null 2>&1 > /dev/null
echo " --> updmap-sys --force"
updmap-sys --force > /dev/null 2>&1 > /dev/null
exit 0

This will fix the missing font maps. And PDF should work again.

@Dexus Dexus closed this as completed Aug 8, 2021
@tmuncks
Copy link

tmuncks commented Aug 8, 2021

Just confirming that this solved the PDF problems here. Thanks a lot! :)

@Dexus
Copy link
Contributor

Dexus commented Aug 8, 2021

You are welcome.

With the upcomming release v21.4.3-v1 it will fixed with upstream package.

Also it will be fixed if you run in container: apk upgrade --no-cache texlive should be updated with -r3 which include the fix from upstream.

@Dexus Dexus mentioned this issue Aug 8, 2021
@kaptenkrille
Copy link
Author

Yes, I can confirm to that this solved the issue. Thank you very much!

@joed22636
Copy link

These workarounds were not helpful in my case. My container got broken after applying them.

#249 (comment) did not fix anything for me.

#249 (comment) broke the GVM, no scan was possible afterwards. I had to delete and create the GVM container from scratch again.

@austinsonger austinsonger reopened this Sep 12, 2021
@Dexus
Copy link
Contributor

Dexus commented Sep 12, 2021

These workarounds were not helpful in my case. My container got broken after applying them.

#249 (comment) did not fix anything for me.

#249 (comment) broke the GVM, no scan was possible afterwards. I had to delete and create the GVM container from scratch again.

Sorry but that can only be bull.
If this is happening it was nothing because of texlive. Then you have done something wrong before like restart the container without full initialized import of the feeds. So don't blame us on your own faults!

@joed22636
Copy link

The container was running several days before applying the workaround.
I followed the workaround exactly as described and ended up breaking the container.
Not blaming anybody, just documenting that this can happen.

@DaniloMussolini
Copy link

It's working here now after installing the addon package:

apk add texmf-dist-latexextra

In my case the workarounds mentioned above didn't work too.

@austinsonger
Copy link
Contributor

austinsonger commented Sep 23, 2021

@rudnypc
Copy link

rudnypc commented Oct 7, 2021

@kaptenkrille @tmuncks @rudnypc You can run in the container:

#!/bin/sh
echo " --> updmap-sys --syncwithtrees"
yes 2> /dev/null | updmap-sys --syncwithtrees > /dev/null 2>&1 > /dev/null
echo " --> updmap-sys"
updmap-sys > /dev/null 2>&1 > /dev/null
echo " --> mktexlsr"
mktexlsr > /dev/null 2>&1 > /dev/null
echo " --> texhash"
texhash > /dev/null 2>&1 > /dev/null
echo " --> fmtutil-sys --all"
fmtutil-sys --all > /dev/null 2>&1 > /dev/null
echo " --> updmap-sys --force"
updmap-sys --force > /dev/null 2>&1 > /dev/null
exit 0

This will fix the missing font maps. And PDF should work again.

I merge that fix with all entrypoint code after that I mapped the entrypoint file to /entrypoint.sh .
everything works fine now

@nickdtong
Copy link

These workarounds were not helpful in my case. My container got broken after applying them.
#249 (comment) did not fix anything for me.
#249 (comment) broke the GVM, no scan was possible afterwards. I had to delete and create the GVM container from scratch again.

Sorry but that can only be bull. If this is happening it was nothing because of texlive. Then you have done something wrong before like restart the container without full initialized import of the feeds. So don't blame us on your own faults!

Hey Dexus, I faced the same issue after doing that fix above. My container is broken.

@ciscoqid
Copy link
Contributor

I don't even see pdflatex in a fresh container build. I installed texlive-latex-base manually so now the command exists. The generate script is still failing, though, and I can't quite see why after the fact.

md manage:WARNING:2021-12-16 19h09.57 UTC:216336: run_report_format_script: system failed with ret 256, 1, /var/lib/gvm/gvmd/report_formats/c012a19f-689f-464e-8679-079abe0b43e2/c402cc3e-b531-11e1-9163-406186ea4fc5/generate /tmp/gvmd_xwb72T/report.xml '/tmp/gvmd_xwb72T' > /tmp/gvmd_xwb72T/c402cc3e-b531-11e1-9163-406186ea4fc5-HQN1rN.pdf 2> /dev/null

@Dexus
Copy link
Contributor

Dexus commented Mar 14, 2022

You can now use the https://hub.docker.com/r/deineagenturug/gvm images, which are using the latest gvmd and components releases.

It use POSTGRESQL 13.

What are meaning the tags:

docker pull deineagenturug/gvm:latest               # is an not initialized basic image, that first start its initialization on the first start (short: no db & no PDF report support)
docker pull deineagenturug/gvm:latest-full          # is an not initialized basic image, that first start its initialization on the first start (short: no db, PDF report is support)
docker pull deineagenturug/gvm:latest-data          # is an initialized basic image, that can run directly without extra VOLUMES added (short: included db, but no PDF report support)
docker pull deineagenturug/gvm:latest-data-full     # is an initialized basic image, that can run directly without extra VOLUMES added (short: included db & PDF report is support)

It can be used as direct replacement for the here provided image, with the same arguments on docker run.


PDF support is always broken if the release is build on Github runners, because of limited memory. The releases of deineagenturug/gvm are build on dedicated servers with enough memory so it should no problem anymore.

@Dexus
Copy link
Contributor

Dexus commented Apr 1, 2022

We have found another bug that related to the PDF Reports that we track on DeineAgenturUG/greenbone-gvm-openvas-for-docker#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed Priority:High
Projects
None yet
Development

No branches or pull requests

10 participants