Direct link rendered image not working on mac os x

I’m on mac os x high sierra using grafana version 5.0.3 installed via home brew. I’ve installed phantomjs and linked to it in the /usr/local/share/grafana/tools/phantomjs/ folder. However when I click on the “Direct rendered image” link I get the following error:

t=2018-03-19T08:26:41-0600 lvl=info msg=Rendering logger=png-renderer path="d-solo/c9fqwRkmk/energy?orgId=1&panelId=2&from=1521447685706&to=1521469285706&width=1000&height=500&tz=UTC-06%3A00"
t=2018-03-19T08:26:42-0600 lvl=eror msg="failed to render an image" logger=png-renderer error="exit status 255"
t=2018-03-19T08:26:42-0600 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/render/d-solo/c9fqwRkmk/energy status=404

Hi,

See issues for further help:

Please report your problem in one of them or create a new one if not applicable. Thanks

Marcus

I turned debugging on and figured out I was missing the render.js file. So I copied it from https://github.com/grafana/grafana/blob/master/tools/phantomjs/render.js and put it in the /usr/local/opt/grafana/share/grafana/tools/phantomjs/ folder. Now I’m getting the following error:

t=2018-03-20T08:23:22-0600 lvl=dbug msg="Updating last user_seen_at" logger=context userId=1 orgId=1 uname= user_id=1
t=2018-03-20T08:23:24-0600 lvl=dbug msg="[phantom] Maximum call stack size exceeded.\nhttp://localhost:3000/public/build/vendor.23437b9523cd388481b5.js:15" logger=png-renderer
t=2018-03-20T08:23:24-0600 lvl=dbug msg="[phantom] :0 in apply" logger=png-renderer
t=2018-03-20T08:23:24-0600 lvl=dbug msg="[phantom] Loading a web page: http://localhost:3000/d-solo/c9fqwRkmk/energy?orgId=1&panelId=2&from=1521469137426&to=1521555537426&width=1000&height=500&tz=UTC-06%3A00&render=1 status: success 60000" logger=png-renderer

After setting the timeout higher and trying a few more times, I started seeing this error in the log also:

t=2018-03-20T08:29:33-0600 lvl=eror msg="failed to render an image" logger=png-renderer error="signal: killed"

Hi,

Sounds like this issue.

Marcus

Exact same problem for me.
Looking forward to the resolution.