[Bug 215468] www/grafana3 install phantomjs binaries wrong architecture
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 6 18:57:17 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215468
Vick Khera <vivek at khera.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vivek at khera.org
--- Comment #3 from Vick Khera <vivek at khera.org> ---
I don't think the problem is that this mach-o binary exists. According to
https://github.com/grafana/grafana/issues/2662 and the updated documentation
resulting from that ticket, one is required to install phantomjs binary at the
location vendor/phantomjs/phantomjs. Specifically for FreeBSD port, this is
/usr/local/share/grafana/vendor/phantomjs/phantomjs.
If you run grafana3 on command line in the foreground, you will see the exact
error. It would be nice if this could have shown up in the grafana logs, but
that's another issue.
INFO[01-06|12:23:59] PhantomRenderer::renderToPng url
[http://analytics.example.com:3000/dashboard-solo/db/example-application?from=1483592400000&to=1483678799999&panelId=4&width=1000&height=500]
EROR[01-06|12:23:59] Failed to render to png logger=context
userId=2 orgId=1 uname=vivek error="fork/exec
/usr/local/share/grafana/vendor/phantomjs/phantomjs: no such file or directory"
And indeed there is no such binary existing.
The following gets us past this error:
pkg install phantomjs
cd /usr/local/share/grafana
mkdir -p vendor/phantomjs
cd vendor/phantomjs
ln -shf /usr/local/bin/phantomjs
but then grafana complains: Can't open
'/usr/local/share/grafana/vendor/phantomjs/render.js'
but I have yet to find why that is not installed. It appears to be part of the
grafana distribution. I fixed it by copying from github:
fetch
https://raw.githubusercontent.com/grafana/grafana/v3.1.1/vendor/phantomjs/render.js
and viola! it works.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list