johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
375 stars 103 forks source link

Grott will not start after upgrading to the latest version #440

Closed thoompje closed 9 months ago

thoompje commented 9 months ago

After upgrading the Grott - HA Extension to Grott 2.7.8 i got the following error and the Addon will not start on Home Assistant

Home Assistant 2023.10.1 Supervisor 2023.10.0

Config Add-on:

data_path: /config/grott
gmode: proxy
grott_mqtt: false
ginvtype: default
ginvtypemap: ""
retain: false
verbose: false
ha_plugin: true
mqtt:
  host: core-mosquitto
  port: 1883
  username: XXXXXX
  password: XXXXXX
gnomqtt: false
gpvoutput: false

Add-on Log:

-----------------------------------------------------------
 Add-on: grott
 The Growatt inverter monitor with current HA plugin integrated
-----------------------------------------------------------
 Add-on version: 044729b
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.10.1
 Home Assistant Supervisor: 2023.10.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-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[08:09:15] INFO: Preparing to start...
./script.sh: line 230: GROTT_CONFIG_MQTT_USER: unbound variable
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
thoompje commented 9 months ago

After editing the config from username to user i got the following message:

-----------------------------------------------------------
 Add-on: grott
 The Growatt inverter monitor with current HA plugin integrated
-----------------------------------------------------------
 Add-on version: 044729b
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.10.1
 Home Assistant Supervisor: 2023.10.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-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[08:13:31] INFO: Preparing to start...
     **********************************************************************************
     - Grott - libscrc not installed, no CRC checking only record validation on length!
     **********************************************************************************
Grott Growatt logging monitor : 2.7.8

Grott process configuration file

Grott process environmental variables

    Pulled 'ginvtype=default' from the environment

    Pulled 'gnomqtt=True' from the environment

    Pulled 'gpvoutput=false' from the environment

    Pulled 'gextension=True' from the environment

    Pulled 'gextname=grott_ha' from the environment

    Pulled 'gextvar={"ha_mqtt_host": "core-mosquitto", "ha_mqtt_port": "1883", "ha_mqtt_user": "XXXXX", "ha_mqtt_password": "XXXXX", "ha_mqtt_retain": False}' from the environment

Grott override settings if set in commandline

Grott process json layout files

Grott proxy mode started
     **********************************************************************************
     - Grott - libscrc not installed, no CRC checking only record validation on length!
     **********************************************************************************
Hostname : 8ce4abae-grott
IP :  172.30.33.10 , port :  5279 

What to do?

thoompje commented 9 months ago

Looks like it starts now after the change from username to user. Closed.