Did you install influxdb and grafana from the openhabian-config utility?
if so, in my experience that utility creates the users openhab and grafana in influxdb but doens’t grant them permissions.
try
(from InfluxDB+Grafana persistence and graphing)