Invalid configuration on hassio



  • HASSIO 0.62.1 on RPI with serial gateway attached
    I get "invalid configuration" when running "hassio homeassistant check"

    When running configuration validation in the UI I get "valid configuration"

    What am I missing?

    Error on homeassistant/check: starting version 3.2.4
    Testing configuration at /config
    2018-02-09 16:40:18 ERROR (MainThread) [homeassistant.bootstrap] Unable to setup error log /config/home-assistant.log (access denied)
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up logger
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up introduction
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up recorder
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up http
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up history
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up system_log
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up api
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up frontend
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
    2018-02-09 16:40:19 ERROR (MainThread) [homeassistant.config] Invalid config for [mysensors]: /config directory does not exist or is not writetable for dictionary value @ data['mysensors']['gateways'][0]['persistence_file']. Got 'mysensors.json'
    not a valid value for dictionary value @ data['mysensors']['gateways'][0]['device']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 52). Please check the docs at https://home-assistant.io/components/mysensors/
    2018-02-09 16:40:19 ERROR (MainThread) [homeassistant.setup] Setup failed for mysensors: Invalid config.
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up sun
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up group
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up map
    2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up discovery
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up thethingsnetwork
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up updater
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up sensor
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.3 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.3 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.3 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.2 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain thethingsnetwork took 0.2 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up history_graph
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up logbook
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up config
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up cloud
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up conversation
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up automation
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up script
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain history_graph took 0.0 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
    2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
    Failed config
      mysensors:
        gateways: [source /config/configuration.yaml:53]
          - baud_rate: 115200
            device: /dev/ttyUSB0
            persistence_file: mysensors.json
        optimistic: False
        persistence: True
        retain: True
        version: 2.0
      General Errors:
        - Setup failed for mysensors: Invalid config.
    Successful config (partial)
      mysensors:
    core-ssh:~#
    
    

  • Plugin Developer

    I think you need to specify the absolute path to the persistence file. It should be in a directory where home assistant has write permission. Usually the configuration directory is good.



  • The mysensors.json is in the same directory as the configuration.yaml.

    The first ERROR line in the log above says " unable to setup error log. But in my config directory is also a "home-assistant.log".

    Despite the errors in the config check the system seems to works as far as I can see.



  • I am having the same issue with Hass.io. I have tried defining the persistence file location as '/core/config/mysensors1.json', '/config/mysensors1.json', 'congif/mysensors1.json', ... I have tried having it within quotes, double quotes, and without.

    Any thoughts would be appreciated.



  • I'm getting similar errors:

    core-ssh:/config# hassio ha check
    ERROR
    starting version 3.2.4
    Testing configuration at /config
    ERROR:homeassistant.config:Invalid config for [mysensors]: /config directory does not exist or is not writeable for dictionary value @ data['mysensors']['gateways'][0]['persistence_file']. Got '/config/mysensors3.json'
    not a valid value for dictionary value @ data['mysensors']['gateways'][0]['device']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 112). Please check the docs at https://home-assistant.io/components/mysensors/
    ERROR:homeassistant.setup:Setup failed for mysensors: Invalid config.
    Failed config
    mysensors:
    gateways: [source /config/configuration.yaml:113]
    - device: /dev/ttyUSB0
    persistence_file: /config/mysensors3.json
    optimistic: False
    persistence: True
    retain: True
    version: 2.1
    General Errors:
    - Setup failed for mysensors: Invalid config.
    Successful config (partial)
    mysensors:

      gateways:
        - device: '/dev/ttyUSB0'
          persistence_file: '/config/mysensors3.json'
          
      optimistic: false
      persistence: true
      retain: true
      version: '2.1'


  • On the latest HASSIO release now and still not solved Can someone help with this problem?

    core-ssh:~# hassio ha check
    ERROR
    starting version 3.2.4
    Testing configuration at /config
    Failed config
      mysensors:
        - Invalid config for [mysensors]: /config directory does not exist or is not writeable        
    for dictionary value @ data
    ['mysensors']
    ['gateways'][0]
    ['persistence_file']. Got '/config/mysensors.json'not a valid value for dictionary value @ data
    ['mysensors']
    ['gateways']
    [0]
    ['device']. Got '/dev/ttyUSB0'. 
    (See /config/configuration.yaml, line 85). 
    Please check the docs at https://home-assistant.io/components/mysensors/
    

    The mysensors.json and configuration.yaml are in the same config directory.
    Despite the above problem the system seems to work fine.

    Is this a fake error?



  • I’m experiencing the same error and issues.



  • Make new dir in config dir. Then add by hand mysensors.json.



  • @mredone said in Invalid configuration on hassio:

    Make new dir in config dir. Then add by hand mysensors.json.

    Thank you for the suggestion. That does not resolve the issue. It appears it is only an issue with the config checker. The file exists and is written to just fine so there is no real effect on operation. However, it prevents using the built-in HA restart function since that won't execute fully when the checker throws an error.



  • I'm having the same problem as well, very frustrating not getting it to work!



  • @iteafreely When I make a configuration change, this change is not gone thru after a restart. I have to power off/on the RPi to activate the configuration change.
    So, you think this is also because of this configuration error


Log in to reply
 

321
Online

7.3k
Users

8.1k
Topics

87.5k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.