Active IQ Unified Manager Discussions

netapp-harvest - Grafana port permission denied


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:
  [0]: /usr/share/grafana/conf/defaults.ini
  [1]: /etc/grafana/grafana.ini
Command lines overrides:
  [1]: default.paths.logs=/var/log/grafana
  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:
2015/12/02 08:13:46 [web.go:93 StartServer()] [E] Fail to start server: listen tcp 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 ( 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.


Re: netapp-harvest - Grafana port permission denied


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

View solution in original post

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums