From owner-freebsd-ports-bugs@freebsd.org Fri Jan 6 18:57:17 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C772CCA22EF for ; Fri, 6 Jan 2017 18:57:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CBD4125C for ; Fri, 6 Jan 2017 18:57:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v06IvHBt018288 for ; Fri, 6 Jan 2017 18:57:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215468] www/grafana3 install phantomjs binaries wrong architecture Date: Fri, 06 Jan 2017 18:57:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vivek@khera.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 18:57:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215468 Vick Khera changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vivek@khera.org --- Comment #3 from Vick Khera --- 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.=