Hi Community,
Have installed 4.5.1 and 4.5.2 on a macOS 10.10.5 machine via brew. The first time I tried 4.5.1 it had some errors because I had node already installed, but finished, subsequent builds look pretty “all good”, like this:
server:Cellar svradmin$ brew install grafana
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Downloading https://github.com/grafana/grafana/archive/v4.5.2.tar.gz
Already downloaded: /Users/svradmin/Library/Caches/Homebrew/grafana-4.5.2.tar.gz
==> go run build.go build
==> yarn install --ignore-engines
==> node_modules/grunt-cli/bin/grunt build --force
==> Caveats
To have launchd start grafana now and restart at login:
brew services start grafana
Or, if you don't want/need a background service you can just run:
grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins
==> Summary
🍺 /usr/local/Cellar/grafana/4.5.2: 5,769 files, 139.7MB, built in 4 minutes 42 seconds
However, you run it and …
EROR[09-28|13:47:11] Failed to detect generated css or javascript files in static root (/usr/local/share/grafana/public), have you executed default grunt task? logger=server
Googling the error finds issue 7805, but (as some other google hits have pointed out), it’s difficult to run a default grunt task when you have no idea which folder contains the right gruntfile - and in fact there doesn’t appear to be a suitable-looking gruntfile in the whole (presumed) brew install directory , i.e. /usr/local/Cellar/grafana/4.5.2/
Somehow yesterday with 4.5.1 and trying some of the suggested npm installs, I did get the server to start and run, but the css was missing (which somewhat defeats the purpose of grafana).
I will probably switch now to building from source, but I thought I’d ask/report this.
Maybe 10.10 is too old now and nobody tested it, there’s no reason I can’t update that server other than “if it aint broke…”
- I guess I should also report this to the homebrew guys - macOS 10.10 is not working. This time I worked around things by taking the css files from my hand-built 4.x into the 5.x public/css folder. At least things are more or less viewable now. I have a homebrew build on a 10.13 VM and I think I’ll take the css from that)