IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
947 stars 307 forks source link

error calling LaTeX preprocessing #273

Open yvesdeceuleners opened 3 years ago

yvesdeceuleners commented 3 years ago

Upstream K8s, with the following (all in one namespace):

pods:

services:

When trying to generate a report, the following is seen on screen: `error calling LaTeX preprocessing: "exit status 1". Latex preprocessing failed with output: This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./report.tex LaTeX2e <2018-12-01> (/opt/TinyTeX/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/opt/TinyTeX/texmf-dist/tex/latex/base/size10.clo)) (/opt/TinyTeX/texmf-dist/tex/latex/graphics/graphicx.sty (/opt/TinyTeX/texmf-dist/tex/latex/graphics/keyval.sty) (/opt/TinyTeX/texmf-dist/tex/latex/graphics/graphics.sty (/opt/TinyTeX/texmf-dist/tex/latex/graphics/trig.sty) (/opt/TinyTeX/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/opt/TinyTeX/texmf-dist/tex/latex/graphics-def/pdftex.def))) (/opt/TinyTeX/texmf-dist/tex/latex/geometry/geometry.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ifvtex.sty) (/opt/TinyTeX/texmf-dist/tex/generic/ifxetex/ifxetex.sty)) No file report.aux. (/opt/TinyTeX/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/opt/TinyTeX/texmf-dist/tex/latex/oberdiek/grfext.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))) (/opt/TinyTeX/texmf-dist/tex/latex/oberdiek/kvoptions.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/etexcmds.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))) (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty) (/opt/TinyTeX/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))libpng error: Not a PNG file

geometry driver: auto-detecting geometry detected driver: pdftex

LaTeX Warning: No \author given.

!pdfTeX error: pdflatex (file ./images/image1.png): libpng: internal error ==> Fatal error occurred, no output PDF file produced!`

The report is setup, following the documentation: Type: link Url: localhost:8686/api/v5/report/jfyc5pDGk?apitoken=XXXXXXXXXXXXXXXXXXX Title: report Tooltip: Icon: doc

Include: Time range, Variable values and Open in new tab

Manifest for reporting: `apiVersion: apps/v1 kind: Deployment metadata: name: grafana-reporting namespace: metrics spec: replicas: 1 selector: matchLabels: k8s-app: grafana-reporting template: metadata: labels: k8s-app: grafana-reporting spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms:

Manifest for renderer: `apiVersion: apps/v1 kind: Deployment metadata: name: grafana-renderer namespace: metrics spec: replicas: 1 selector: matchLabels: k8s-app: grafana-renderer template: metadata: labels: k8s-app: grafana-renderer spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms:

yvesdeceuleners commented 3 years ago

Log file of the reporting-pod:

`2021/02/01 20:16:19 Reporter called 2021/02/01 20:16:19 Called with api Token: xxxxxxxx 2021/02/01 20:16:19 Called without variable 2021/02/01 20:16:19 Called with dashboard: jfya3pDGk 2021/02/01 20:16:19 Called with time range: {now-5m now} 2021/02/01 20:16:19 Connecting to dashboard at http://grafana-service.metrics:3000/api/dashboards/uid/jfya3pDGk 2021/02/01 20:16:19 Populated dashboard datastructure: {Title:Bareos Description:This is a simple view for Bareos backup system. You must have datasource named Bareos with mysql database - default Bareos. If you have a question write us VariableValues: Rows:[] Panels:[{Id:1 Type:table-old Title:Job sizes GridPos:{H:6 W:8 X:0 Y:0}} {Id:2 Type:table-old Title:Job status GridPos:{H:6 W:8 X:8 Y:0}} {Id:8 Type:singlestat Title:Pool GridPos:{H:6 W:4 X:16 Y:0}} {Id:9 Type:singlestat Title:FileSet GridPos:{H:6 W:4 X:20 Y:0}} {Id:3 Type:singlestat Title:Jobs GridPos:{H:8 W:6 X:0 Y:6}} {Id:4 Type:singlestat Title:Storage GridPos:{H:8 W:6 X:6 Y:6}} {Id:5 Type:singlestat Title:Volume Size GridPos:{H:8 W:6 X:12 Y:6}} {Id:6 Type:singlestat Title:Clients GridPos:{H:8 W:6 X:18 Y:6}} {Id:7 Type:table-old Title:Job reports GridPos:{H:10 W:24 X:0 Y:14}}]} 2021/02/01 20:16:19 Downloading image 1 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=500&panelId=1&theme=light&to=now&width=1000 2021/02/01 20:16:19 Downloading image 2 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=500&panelId=2&theme=light&to=now&width=1000 2021/02/01 20:16:19 Downloading image 9 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=150&panelId=9&theme=light&to=now&width=300 2021/02/01 20:16:19 Downloading image 8 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=150&panelId=8&theme=light&to=now&width=300 2021/02/01 20:16:19 Downloading image 3 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=150&panelId=3&theme=light&to=now&width=300 2021/02/01 20:16:20 Downloading image 4 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=150&panelId=4&theme=light&to=now&width=300 2021/02/01 20:16:20 Downloading image 5 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=150&panelId=5&theme=light&to=now&width=300 2021/02/01 20:16:20 Downloading image 6 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=150&panelId=6&theme=light&to=now&width=300 2021/02/01 20:16:20 Downloading image 7 http://grafana-service.metrics:3000/render/d-solo/jfya3pDGk/_?from=now-5m&height=500&panelId=7&theme=light&to=now&width=1000 2021/02/01 20:16:21 Calling LaTeX - preprocessing 2021/02/01 20:16:21 Error generating report: error calling LaTeX preprocessing: "exit status 1". Latex preprocessing failed with output: This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./report.tex LaTeX2e <2018-12-01> (/opt/TinyTeX/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/opt/TinyTeX/texmf-dist/tex/latex/base/size10.clo)) (/opt/TinyTeX/texmf-dist/tex/latex/graphics/graphicx.sty (/opt/TinyTeX/texmf-dist/tex/latex/graphics/keyval.sty) (/opt/TinyTeX/texmf-dist/tex/latex/graphics/graphics.sty (/opt/TinyTeX/texmf-dist/tex/latex/graphics/trig.sty) (/opt/TinyTeX/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/opt/TinyTeX/texmf-dist/tex/latex/graphics-def/pdftex.def))) (/opt/TinyTeX/texmf-dist/tex/latex/geometry/geometry.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ifvtex.sty) (/opt/TinyTeX/texmf-dist/tex/generic/ifxetex/ifxetex.sty)) No file report.aux. (/opt/TinyTeX/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/opt/TinyTeX/texmf-dist/tex/latex/oberdiek/grfext.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))) (/opt/TinyTeX/texmf-dist/tex/latex/oberdiek/kvoptions.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/etexcmds.sty (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))) (/opt/TinyTeX/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty) (/opt/TinyTeX/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))libpng error: Not a PNG file

geometry driver: auto-detecting geometry detected driver: pdftex

LaTeX Warning: No \author given.

!pdfTeX error: pdflatex (file ./images/image1.png): libpng: internal error ==> Fatal error occurred, no output PDF file produced! `

d1nd141 commented 3 years ago

Hi, you solved this? I'm having exactly the same error. Thanks

yvesdeceuleners commented 2 years ago

Unfortunately, this is not yet solved.

sonickyu commented 2 years ago

I have the same problem

Ma-Jing commented 2 years ago

I have the same problem too.

caoke commented 2 years ago

I have the same problem too.

ssh30 commented 1 year ago

i'm a little late late to the party but it doesn't work for me neither

wayahnawe commented 1 year ago

i think no one manage this issue..