home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.33k stars 30.63k forks source link

Broken update 0.73.2 #15496

Closed swetoast closed 6 years ago

swetoast commented 6 years ago
Jul 16 22:32:23 assistant hass[17772]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 352, in main
Jul 16 22:32:23 assistant hass[17772]:     args = get_arguments()
Jul 16 22:32:23 assistant hass[17772]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 85, in get_arguments
Jul 16 22:32:23 assistant hass[17772]:     import homeassistant.config as config_util
Jul 16 22:32:23 assistant hass[17772]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 162, in <module>
Jul 16 22:32:23 assistant hass[17772]:     vol.All(cv.ensure_list, [auth.AUTH_PROVIDER_SCHEMA])
Jul 16 22:32:23 assistant hass[17772]: AttributeError: module 'homeassistant.auth' has no attribute 'AUTH_PROVIDER_SCHEMA'
Jul 16 22:32:23 assistant systemd[1]: home-assistant@homeassistant.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 22:32:23 assistant systemd[1]: home-assistant@homeassistant.service: Unit entered failed state.
Jul 16 22:32:23 assistant systemd[1]: home-assistant@homeassistant.service: Failed with result 'exit-code'.

got this when i updated and i have not defined the new auth in config and if i enable the new one and try to get started

$ hass --script auth --config /home/homeassistant/.homeassistant/configuration.yaml 
usage: hass [-h] [--script {auth}] [-c CONFIG]
            {list,add,validate,change_password} ...
hass: error: the following arguments are required: func
bl0rp commented 6 years ago

same here. Update from 0.73.0 to 0.73.2.


Jul 16 22:54:39 metis systemd[1]: Started Home Assistant.
Jul 16 22:54:40 metis hass[28903]: Traceback (most recent call last):
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/bin/hass", line 11, in <module>
Jul 16 22:54:40 metis hass[28903]:     sys.exit(main())
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/__main__.py", line 352, in main
Jul 16 22:54:40 metis hass[28903]:     args = get_arguments()
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/__main__.py", line 85, in get_arguments
Jul 16 22:54:40 metis hass[28903]:     import homeassistant.config as config_util
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/config.py", line 162, in <module>
Jul 16 22:54:40 metis hass[28903]:     vol.All(cv.ensure_list, [auth.AUTH_PROVIDER_SCHEMA])
Jul 16 22:54:40 metis hass[28903]: AttributeError: module 'homeassistant.auth' has no attribute 'AUTH_PROVIDER_SCHEMA'
Jul 16 22:54:40 metis systemd[1]: home-assistant@homeassistant.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 22:54:40 metis systemd[1]: home-assistant@homeassistant.service: Failed with result 'exit-code'
```.
balloob commented 6 years ago

Ugh, looks like the wheel of 0.73.2 accidentally included some files from the rc branch. I have deleted the wheel. Downgrade and upgrade again and it should install the tar.gz version which I have verified to be correct.

balloob commented 6 years ago

When upgrading, add --no-cache-dir to your pip command to make sure that you don't use the local cache with the bad wheel.

fliphess commented 6 years ago

Jup, and we're back online :)

Thanks for the quick fix! šŸ‘

torris63 commented 6 years ago

Hello After I upgraded my Raspberrypi 3B+ with Home Assistant (Hassbian) from 0.73.0 to version 0.73.2 I lost all my entities, automations and all my groups except the sun-icon on my frontend. I tried to upgrade to 0.74.0 bu no change. All the data is still in my configuration.yaml, automations.yaml, entity_registry.yaml, customize.yaml and groups.yaml. On my frontend it says: Invalid config. The following components and platforms could not be set up:

Any idea why this happened, and what I can do to get them back on my frontend. For now nothing works.

Best regards from a rookie :-)