Are you sure you enabled anymous access?
Quoted from InfluxDB+Grafana persistence and graphing :
Disable user signup and enable anonymous access (for later image export) in the configuration92 file /etc/grafana/grafana.ini:
[users]
# disable user signup / registration
allow_sign_up = false
...
[auth.anonymous]
# enable anonymous access
enabled = true