Grafana having issue connecting to InfluxDB when accessing through duckdns.org:8123

Hi,

I have grafana installed as an add-on and it is linked to InfluxDB. I usually access the frontend using https://xxx.duckdns.org:8123 and it has been good since I started using HASS years ago but it is not working for the last week. Getting “InfluxDB Error: Forbidden” also says “origin not allowed null”. I’ve upgraded to the latest 2022.3.7 to see if something was fixed but no luck.

But it works on the mobile app and also works if I access using local IP address.

this is my Grafana configuration below

certfile: fullchain.pem
env_vars:
  - name: GF_SECURITY_COOKIE_SAMESITE
    value: none
  - name: GF_SECURITY_COOKIE_SECURE
    value: 'true'
  - name: GF_SECURITY_LOGIN_REMEMBER_DAYS
    value: '180'
  - name: GF_AUTH_BASIC_ENABLED
    value: 'true'
keyfile: privkey.pem
plugins: []
ssl: true

influxDB config

auth: true
certfile: fullchain.pem
envvars: []
keyfile: privkey.pem
reporting: true
ssl: true

I found this article but can’t figure out what I should be doing.

Anyone else has the same issue? Can anyone help?

Thank you.

System Health

version: core-2022.3.7
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.9
os_name: Linux
os_version: 5.10.103
arch: x86_64
timezone: Australia/Melbourne


GitHub API: ok
GitHub Content: ok
GitHub Web: ok
GitHub API Calls Remaining: 4906
Installed Version: 1.23.0
Stage: running
Available Repositories: 1007
Downloaded Repositories: 16


logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok


host_os: Home Assistant OS 7.5
update_channel: stable
supervisor_version: supervisor-2022.03.5
docker_version: 20.10.9
disk_total: 48.5 GB
disk_used: 43.6 GB
healthy: true
supported: failed to load: Unsupported
board: ova
supervisor_api: ok
version_api: ok
installed_addons: Samba share (9.5.1), Duck DNS (1.14.0), File editor (5.3.3), Grafana (7.5.2), InfluxDB (4.4.1), Node-RED (11.1.1), Assistant Relay (0.7.4), motionEye (0.18.0), Portainer (2.0.0), Mosquitto broker (6.0.1)


dashboards: 4
resources: 12
views: 23
mode: storage

I am seeing the same issue.

same for me ! I’ve already spent 4 hours on it without any improvement.
Just noticed if I log using https://192.168.1.6:3000/ instead of https://192.168.1.6:8123, it is working well.
Found this info https://issueantenna.com/repo/hassio-addons/addon-grafana/issues/255

well… tried with Firefox… .worked. Cleared the navigator cache and now works :rage:

1 Like

Yeah, I cleared the cache on Chrome and now it’s working!

1 Like

It works for a bit and again stops. Don’t know what to do :frowning: