Grafana Add-On "Origin not allowed"

Bonjour,

Je suis sur une VM Debian 11 avec HAOS, et depuis peu, sans action de ma part j’ai constaté que Grafana renvoi un message « Origin not allowed » et que je ne pouvais plus du tout gérer mes connections.

J’ai une connection « InfluxDB » provenant de l’Add-On HA, que je ne peux ni éditer ni supprimer. Dans la bibliothèque des connections « à ajouter » je ne peux pas en sélectionner d’autres non plus.

Les panels n’arrivent donc pas à atteindre la DB.

Voici la configuration dans l’interface de l’Add-on :

plugins: []
custom_plugins: []
env_vars:
  - name: GF_AUTH_ANONYMOUS_ENABLED
    value: "true"
  - name: GF_AUTH_ANONYMOUS_ORG_NAME
    value: Main Org.
ssl: false
certfile: fullchain.pem
keyfile: privkey.pem

Voici le journal :

-----------------------------------------------------------
 Add-on: Grafana
 The open platform for beautiful analytics and monitoring
-----------------------------------------------------------
 Add-on version: 9.1.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.1  (amd64 / qemux86-64)
 Home Assistant Core: 2023.11.3
 Home Assistant Supervisor: 2023.12.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[19:11:15] INFO: Configuring timezone (Europe/Paris)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-grafana: starting
s6-rc: info: service memcached: starting
s6-rc: info: service memcached successfully started
[19:11:17] INFO: Starting Memcached...
s6-rc: info: service init-nginx successfully started
s6-rc: info: service init-grafana successfully started
s6-rc: info: service grafana: starting
s6-rc: info: service grafana successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[19:11:18] INFO: Starting Grafana...
s6-rc: info: service legacy-services successfully started
[19:11:18] INFO: Setting GF_AUTH_ANONYMOUS_ENABLED to true
[19:11:18] INFO: Setting GF_AUTH_ANONYMOUS_ORG_NAME to Main Org.
Grafana server is running with elevated privileges. This is not recommended
logger=settings t=2024-01-03T19:11:20.032680737+01:00 level=info msg="Starting Grafana" version=10.1.2 commit=8e428858dd branch=HEAD compiled=2023-09-18T22:41:04+02:00
logger=settings t=2024-01-03T19:11:20.034030807+01:00 level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
logger=settings t=2024-01-03T19:11:20.03414811+01:00 level=info msg="Config loaded from" file=/etc/grafana/grafana.ini
logger=settings t=2024-01-03T19:11:20.03417526+01:00 level=info msg="Config overridden from Environment variable" var="GF_AUTH_ANONYMOUS_ENABLED=true"
logger=settings t=2024-01-03T19:11:20.034206748+01:00 level=info msg="Config overridden from Environment variable" var="GF_AUTH_ANONYMOUS_ORG_NAME=Main Org."
logger=settings t=2024-01-03T19:11:20.034232737+01:00 level=info msg=Target target=[all]
logger=settings t=2024-01-03T19:11:20.03429025+01:00 level=info msg="Path Home" path=/usr/share/grafana
logger=settings t=2024-01-03T19:11:20.03431565+01:00 level=info msg="Path Data" path=/data
logger=settings t=2024-01-03T19:11:20.034339601+01:00 level=info msg="Path Logs" path=/var/logs/grafana
logger=settings t=2024-01-03T19:11:20.034362565+01:00 level=info msg="Path Plugins" path=/var/lib/grafana/plugins
logger=settings t=2024-01-03T19:11:20.03438654+01:00 level=info msg="Path Provisioning" path=/usr/share/grafana/conf/provisioning
logger=settings t=2024-01-03T19:11:20.034410378+01:00 level=info msg="App mode production"
logger=sqlstore t=2024-01-03T19:11:20.035894551+01:00 level=info msg="Connecting to DB" dbtype=sqlite3
logger=migrator t=2024-01-03T19:11:20.211589889+01:00 level=info msg="Starting DB migrations"
logger=migrator t=2024-01-03T19:11:20.254542931+01:00 level=info msg="migrations completed" performed=0 skipped=493 duration=2.641525ms
logger=secrets t=2024-01-03T19:11:20.259373108+01:00 level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
logger=plugin.loader t=2024-01-03T19:11:20.534288796+01:00 level=warn msg="Plugin missing module.js" pluginID=input warning="Missing module.js, If you loaded this plugin from git, make sure to compile it."
logger=plugin.loader t=2024-01-03T19:11:20.534410762+01:00 level=info msg="Plugin registered" pluginID=input
logger=plugin.loader t=2024-01-03T19:11:29.413005702+01:00 level=info msg="Plugin registered" pluginID=grafana-image-renderer
logger=query_data t=2024-01-03T19:11:29.432247633+01:00 level=info msg="Query Service initialization"
logger=live.push_http t=2024-01-03T19:11:29.448010806+01:00 level=info msg="Live Push Gateway initialization"
logger=infra.usagestats.collector t=2024-01-03T19:11:40.425655888+01:00 level=info msg="registering usage stat providers" usageStatsProvidersLen=2
logger=modules t=2024-01-03T19:11:40.427246462+01:00 level=info msg=initialising module=http-server
logger=modules t=2024-01-03T19:11:40.43061758+01:00 level=info msg=initialising module=secret-migrator
logger=http.server t=2024-01-03T19:11:40.458249547+01:00 level=info msg="HTTP Server Listen" address=[::]:3000 protocol=http subUrl=/api/hassio_ingress/VWWfDAehaOKfKUv0Icncdxf97tNhSI1VPWSD4OfVX70 socket=
logger=modules t=2024-01-03T19:11:40.489831408+01:00 level=info msg=initialising module=provisioning
logger=provisioning.alerting t=2024-01-03T19:11:40.504303388+01:00 level=info msg="starting to provision alerting"
logger=provisioning.alerting t=2024-01-03T19:11:40.504436291+01:00 level=info msg="finished to provision alerting"
logger=modules t=2024-01-03T19:11:40.504946816+01:00 level=info msg=initialising module=background-services
logger=modules t=2024-01-03T19:11:40.509421484+01:00 level=info msg="All modules healthy" modules="[http-server secret-migrator provisioning background-services]"
logger=ngalert.state.manager t=2024-01-03T19:11:40.509965572+01:00 level=info msg="Warming state cache for startup"
logger=ngalert.state.manager t=2024-01-03T19:11:40.514138496+01:00 level=info msg="State cache has been initialized" states=0 duration=4.209563ms
logger=ngalert.scheduler t=2024-01-03T19:11:40.514351576+01:00 level=info msg="Starting scheduler" tickInterval=10s
logger=ticker t=2024-01-03T19:11:40.515894776+01:00 level=info msg=starting first_tick=2024-01-03T19:11:50+01:00
logger=ngalert.multiorg.alertmanager t=2024-01-03T19:11:40.528253706+01:00 level=info msg="Starting MultiOrg Alertmanager"
logger=grafanaStorageLogger t=2024-01-03T19:11:40.540043073+01:00 level=info msg="storage starting"
[19:11:40] INFO: Starting NGINX...
logger=grafana.update.checker t=2024-01-03T19:11:40.915348553+01:00 level=info msg="Update check succeeded" duration=388.919053ms
logger=plugin.grafana-image-renderer t=2024-01-03T19:11:46.577227685+01:00 level=warn msg="Plugin process is running with elevated privileges. This is not recommended"
logger=plugins.update.checker t=2024-01-03T19:11:46.736335443+01:00 level=info msg="Update check succeeded" duration=6.204668556s
logger=infra.usagestats t=2024-01-03T19:12:23.593938522+01:00 level=info msg="Usage stats are ready to report"

J’ai lu ce topic https://forum.hacf.fr/t/grafana-hacs-add-on-message-origin-not-allowed/
mais il ne m’a pas aidé

Merci d’avance pour votre aide.

Y compris ce qui est indiqué ici ?

Salut

Ce n’est pas très clair, tu ne peux pas avoir HAOS avec Debian.
Partage ta configuration correctement, stp.

J’ai fais la dernière maj du core et c’était réglé …

Je pensais que le problème était résolu, mais ça fonctionnait jusqu’à ce matin puis réapparition du problème.

J’ai une autre VM qui a Grafana et InfluxDB, que j’ai rallumé ce matin, mais que j’ai éteins et j’ai rebooté HA, sans succès.


J’ai HAOS pardon sur VM proxmox