wborn
(Wouter Born)
December 18, 2016, 10:50am
7
@Niko_Izsak
I ran in the same issue with my RPi 3. After debugging it a bit it seems you need PhantomJS installed on the RPi 3 to get rendered images. A solution is provided by fg2it in the InfluxDB+Grafana topic . I haven’t tried the solution myself yet.
The GitHub page for the PhantomJS packages is: GitHub - fg2it/phantomjs-on-raspberry: Phantomjs for raspberry pi (armv6/armv7) and aarch64/arm64 · GitHub
In my case sudo cat /var/log/grafana/grafana.log showed following:
t=2016-12-17T18:34:02+0100 lvl=eror msg="Failed to render to png" logger=context userId=0 orgId=1 uname= error="PhantomRenderer::renderToPng timeout (>30s)"
After searching on the error message the following Grafana issue tells the root cause may be the missing PhantomJS:
opened 05:05AM - 03 Sep 15 UTC
closed 05:11AM - 03 Sep 15 UTC
I'm attempting to use the `Direct link rendered image` link on the Share Panel i… n Grafana.
When I click this however, I get:
<img width="594" alt="screenshot 2015-09-03 15 02 14" src="https://cloud.githubusercontent.com/assets/243499/9650937/0b911b58-524d-11e5-9278-829858de9d51.png">
(Server side error :( - Failed to render to png).
In the shell session where I'm running Grafana, I see:
```
2015/09/03 15:00:37 [I] PhantomRenderer::renderToPng url https://localhost:3000/dashboard-solo/db/new-dashboard?panelId=1&fullscreen&from=1439761214361&to=1439761699278&width=1000&height=500
2015/09/03 15:00:37 [render.go:40 RenderToPng()] [E] Failed to render to png: fork/exec /Users/victorhooi/code/gocode/src/github.com/grafana/grafana/vendor/phantomjs/phantomjs: exec format error
2015/09/03 15:00:37 [I] Completed /render/dashboard-solo/db/new-dashboard 500 Internal Server Error in 10.398804ms
2015/09/03 15:02:10 [I] PhantomRenderer::renderToPng url https://localhost:3000/dashboard-solo/db/new-dashboard?panelId=1&fullscreen&from=1439761214361&to=1439761699278&width=1000&h
eight=500
2015/09/03 15:02:10 [render.go:40 RenderToPng()] [E] Failed to render to png: fork/exec /Users/victorhooi/code/gocode/src/github.com/grafana/grafana/vendor/phantomjs/phantomjs: exec
format error
2015/09/03 15:02:10 [I] Completed /render/dashboard-solo/db/new-dashboard 500 Internal Server Error in 6.730725ms
```
Is there some additional setup that needs to be done to get PNG rendering working out of the box?