2015-12-01 10:25 PM - edited 2015-12-01 10:25 PM
I applied OS updates to my Ubuntu box on the weekend and in that process it upgraded Grafana to 2.5 (I think).
I now get an error when trying to start Grafana with service grafana-server start
The /var/log/grafana/grafana.log reports this:
2015/12/02 08:13:46 [I] Starting Grafana 2015/12/02 08:13:46 [I] Version: 2.5.0, Commit: v2.5.0+1-g287d8ca, Build date: 2015-10-28 10:43:28 +0200 SAST 2015/12/02 08:13:46 [I] Configuration Info Config files: : /usr/share/grafana/conf/defaults.ini : /etc/grafana/grafana.ini Command lines overrides: : default.paths.data=/var/lib/grafana : default.paths.logs=/var/log/grafana Paths: home: /usr/share/grafana data: /var/lib/grafana logs: /var/log/grafana 2015/12/02 08:13:46 [I] Database: sqlite3 2015/12/02 08:13:46 [I] Migrator: Starting DB migration 2015/12/02 08:13:46 [I] Listen: https://0.0.0.0:443 2015/12/02 08:13:46 [web.go:93 StartServer()] [E] Fail to start server: listen tcp 0.0.0.0:443: bind: permission denied
To get Grafana to load I then changed the port in /etc/grafana/grafana.ini to 8443 and it loads fine and I can view my data etc.
Port 443 isn't being used by anything else so I'm not sure where else to look
Things all work OK on 8443 however the import of the new dashboards as per your blog post ( http://blog.pkiwi.com/grafana-2-5-support-with-netapp-harvest/ step 3 ) fails as it tries to talk to port 443. I tried putting my server IP in the conf file but that still failed.
Any ideas where I can look to see why I can't load it on port 443.
Solved! SEE THE SOLUTION
2015-12-02 09:57 PM
I managed to sort this out with:
setcap 'cap_net_bind_service=+ep' /usr/sbin/grafana-server
I found this referenced on some site that basically said you had to allow the grafana server to use a privilged port <1024