Date: Fri, 06 Jan 2017 18:57:17 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215468] www/grafana3 install phantomjs binaries wrong architecture Message-ID: <bug-215468-13-Ni5WOpEMFy@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-215468-13@https.bugs.freebsd.org/bugzilla/> References: <bug-215468-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215468 Vick Khera <vivek@khera.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vivek@khera.org --- Comment #3 from Vick Khera <vivek@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 exa= ct 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?fr= om=3D1483592400000&to=3D1483678799999&panelId=3D4&width=3D1000&height=3D500] EROR[01-06|12:23:59] Failed to render to png logger=3Dcont= ext userId=3D2 orgId=3D1 uname=3Dvivek error=3D"fork/exec /usr/local/share/grafana/vendor/phantomjs/phantomjs: no such file or direct= ory" 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/r= ender.js and viola! it works. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215468-13-Ni5WOpEMFy>