Grafana causes errors in Supervisor log

Hello,

I’ve recently added InfluxDB and Grafana to my installation. I’ve noticed that I receive some errors in log, they show up when I open Grafana tab… any suggestions on what could be the cause, how can I solve it…?

Error entry:

21-06-15 13:47:39 ERROR (MainThread) [supervisor.api.ingress] Ingress error: 400, message='Invalid response status', url=URL('http://172.30.33.4:1337/api/live/ws')

I’ve noticed that it shows up, when I open Grafana.

1 Like

There was an update released today. Are you on the latest version (7.0.1)?

Yes, it looks still the same - even on the new 7.0.1 version

My config of the Grafana looks:

plugins: []
env_vars: []
ssl: true
certfile: fullchain.pem
keyfile: privkey.pem

Config of InfluxDB:

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

In configuration.yaml, I’ve added:

influxdb:
  host: 192.168.7.7
  port: 8086
  database: homeassistant
  username: homeassistant
  password: **********
  max_retries: 3
  default_measurement: state

Go to the supervisor page an see if there are any errors in the log there.

The errors I’ve mentioned are from the Supervisor>System>Log (Log Provider: Supervisor).

In general it seams to be working, the Grafana shows data on created dashboard, but I’d like to get rid of theese logs, there are a lot of them, but only if I browse in Grafana…

Below is the log from Grafana addon, I can’t see nothing wrong here…:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Grafana
 The open platform for beautiful analytics and monitoring
-----------------------------------------------------------
 Add-on version: 7.0.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.0  (armv7 / raspberrypi4)
 Home Assistant Core: 2021.6.4
 Home Assistant Supervisor: 2021.06.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] grafana.sh: executing... 
[cont-init.d] grafana.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:23:30] INFO: Starting Memcached...
[20:23:30] INFO: Starting Grafana...
t=2021-06-15T20:23:30+0200 lvl=info msg="Starting Grafana" logger=server version=8.0.2 commit=5c5d45e19f branch=HEAD compiled=2021-06-14T10:55:02+0200
t=2021-06-15T20:23:30+0200 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2021-06-15T20:23:30+0200 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
t=2021-06-15T20:23:30+0200 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
t=2021-06-15T20:23:30+0200 lvl=info msg="Path Data" logger=settings path=/data
t=2021-06-15T20:23:30+0200 lvl=info msg="Path Logs" logger=settings path=/var/logs/grafana
t=2021-06-15T20:23:30+0200 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
t=2021-06-15T20:23:30+0200 lvl=info msg="Path Provisioning" logger=settings path=/usr/share/grafana/conf/provisioning
t=2021-06-15T20:23:30+0200 lvl=info msg="App mode production" logger=settings
t=2021-06-15T20:23:30+0200 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2021-06-15T20:23:30+0200 lvl=info msg="Starting DB migrations" logger=migrator
t=2021-06-15T20:23:30+0200 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=329 duration=3.33752ms
t=2021-06-15T20:23:30+0200 lvl=info msg="Starting plugin search" logger=plugins
t=2021-06-15T20:23:31+0200 lvl=info msg="Registering plugin" logger=plugins id=input
t=2021-06-15T20:23:31+0200 lvl=info msg="Registering plugin" logger=plugins id=grafana-plugin-admin-app
t=2021-06-15T20:23:31+0200 lvl=info msg="External plugins directory created" logger=plugins directory=/var/lib/grafana/plugins
t=2021-06-15T20:23:31+0200 lvl=info msg="Live Push Gateway initialization" logger=live.push_http
t=2021-06-15T20:23:31+0200 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl=/api/hassio_ingress/hNmxABROUrPwJhBLzudWsL6_xMsAX76m8UXrBSheiWU socket=
[20:23:31] INFO: Starting NGinx...

here is the log of the InfluxDB, also I can’t see anything bad here either…:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: InfluxDB
 Scalable datastore for metrics, events, and real-time analytics
-----------------------------------------------------------
 Add-on version: 4.1.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.0  (armv7 / raspberrypi4)
 Home Assistant Core: 2021.6.4
 Home Assistant Supervisor: 2021.06.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] create-users.sh: executing... 
[cont-init.d] create-users.sh: exited 0.
[cont-init.d] influxdb.sh: executing... 
[cont-init.d] influxdb.sh: exited 0.
[cont-init.d] kapacitor.sh: executing... 
[cont-init.d] kapacitor.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:21:32] INFO: Kapacitor is waiting until InfluxDB is available...
[20:21:32] INFO: Starting the InfluxDB...
[20:21:32] INFO: Chronograf is waiting until InfluxDB is available...
[20:22:03] INFO: Starting the Kapacitor
[20:22:03] INFO: Starting Chronograf...
'##:::'##::::'###::::'########:::::'###:::::'######::'####:'########::'#######::'########::
 ##::'##::::'## ##::: ##.... ##:::'## ##:::'##... ##:. ##::... ##..::'##.... ##: ##.... ##:
 ##:'##::::'##:. ##:: ##:::: ##::'##:. ##:: ##:::..::: ##::::: ##:::: ##:::: ##: ##:::: ##:
 #####::::'##:::. ##: ########::'##:::. ##: ##:::::::: ##::::: ##:::: ##:::: ##: ########::
 ##. ##::: #########: ##.....::: #########: ##:::::::: ##::::: ##:::: ##:::: ##: ##.. ##:::
 ##:. ##:: ##.... ##: ##:::::::: ##.... ##: ##::: ##:: ##::::: ##:::: ##:::: ##: ##::. ##::
 ##::. ##: ##:::: ##: ##:::::::: ##:::: ##:. ######::'####:::: ##::::. #######:: ##:::. ##:
..::::..::..:::::..::..:::::::::..:::::..:::......:::....:::::..::::::.......:::..:::::..::
2021/06/15 20:22:03 Using configuration at: /etc/kapacitor/kapacitor.conf
time="2021-06-15T20:22:18+02:00" level=info msg="Reporting usage stats" component=usage freq=24h reporting_addr="https://usage.influxdata.com" stats="os,arch,version,cluster_id,uptime"
time="2021-06-15T20:22:18+02:00" level=info msg="Serving chronograf at http://127.0.0.1:8889" component=server
[20:22:18] INFO: Starting NGinx..
1 Like

I am having the identical issue, Anybody have any ideas on how to fix it?

I have the same

Same here.

21-06-15 20:51:22 ERROR (MainThread) [supervisor.api.ingress] Ingress error: 400, message='Invalid response status', url=URL('http://172.30.33.4:1337/api/live/ws')

(Error is repeated many times)

it has been reported:

1 Like