0.39.0 upgrade experience

are you connecting to your samsung tv through a command line? Also, you might want to try uninstalling and re-installing nmap. I seem to remember having to do that once when I was rebuilding my HA instance.

Thanks will check it out.

I was nervous about the upgrade and didn’t understand the customise, groups and zwave stuff but decided I’d just try it and then downgrade if it didn’t work right away. I was expecting it to fail but it worked and so far everything seems to be working OK. Have had it running overnight. Unexpected since I use groups, zwave, customize, and have limitlessLed (v4 Bridge).

That said, I do have a ton of errors in the log that I don’t have time to dig through right now.

The part that is confusing me is that it says no entities found. Are groups entities just as the devices HA controls are entities? If they are, then I think it would be clearer if it specified the type of entity that could not be found.

Nearly the same, editing a group and calling it a view killed the rest of the groups

Same here. Set one of my groups to a view and now the dropdown only lets me select that view. The other groups are not selectable.

Mine appears to be hanging after upgrading:

Feb 26 21:43:15 homeassistant systemd[1]: Started Home Assistant for homeassistant.
Feb 26 21:43:20 homeassistant hass[1556]: 17-02-26 21:43:20 INFO (Thread-3 [homeassistant.config] Upgrading config directory from 0.38.3 to 0.39.1
Feb 26 21:43:20 homeassistant hass[1556]: Config directory: /home/homeassistant/.homeassistant

Wait 30 minutes and nothing happens

Got the same timeout here with samsung tv

17-02-27 11:55:49 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10

And this is what i get when i try to update a group

17-02-27 11:58:33 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/aiohttp/web_server.py", line 62, in handle_request
resp = yield from self._handler(request)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/aiohttp/web.py", line 270, in _handle
resp = yield from handler(request)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 57, in ban_middleware_handler
return (yield from handler(request))
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/coroutines.py", line 209, in coro
res = yield from res
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 417, in handle
result = yield from result
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/config/__init__.py", line 110, in post
yield from hass.loop.run_in_executor(None, _write, path, current)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self  # This tells Task to wait for completion.
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/config/__init__.py", line 134, in _write
data = dump(data)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/util/yaml.py", line 74, in dump
return yaml.safe_dump(_dict, default_flow_style=False) \
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/__init__.py", line 216, in safe_dump
return dump_all([data], stream, Dumper=SafeDumper, **kwds)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/__init__.py", line 188, in dump_all
dumper.represent(data)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/representer.py", line 26, in represent
node = self.represent_data(data)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/util/yaml.py", line 308, in <lambda>
represent_odict(dumper, u'tag:yaml.org,2002:map', value))
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/util/yaml.py", line 290, in represent_odict
node_value = dump.represent_data(item_value)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/util/yaml.py", line 308, in <lambda>
represent_odict(dumper, u'tag:yaml.org,2002:map', value))
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/util/yaml.py", line 290, in represent_odict
node_value = dump.represent_data(item_value)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/representer.py", line 57, in represent_data
node = self.yaml_representers[None](self, data)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/yaml/representer.py", line 229, in represent_undefined
raise RepresenterError("cannot represent an object: %s" % data)
yaml.representer.RepresenterError: cannot represent an object: ['sensor.battery_smoke', 'sensor.battery_voordeur', 'sensor.battery_keukendeur', 'sensor.battery_achterdeur']

I did give it a try with 0.39.1 too but still the same. Should be something in my configuration but I can’t find what. I did even comment all my configuration but HA didn’t start. Anyone that knows the command that starts HASS showing the log?

How did you install HASS? How are you running it?

If you use systemd, it’s:
journalctl -f -u home-assistant@[your user]
If you run your HASS in a docker:
docker logs -f [your container name]
or try to search for a home-assistant.log file.

Thanks. AIO so I guess will go with the first one.

i’m having huge slow downs of motion sensing… I checked and home assistant is hammering the cpu on my RPi3 at 100% and this was with 0.39.0 and 0.39.1, down grade time I think :frowning:

Do you see any unwanted activity in log? I didn’t see any change in CPU usage.

Maybe try to put your log in debug and see what hass is doing.

I presume you have z-wave motion sensors. I’m experiencing high CPU usage and associated slow downs with zwave enabled. When I disable z-wave with CPU is back to normal. I rolled back to 0.38.4

1 Like

yeah i do have multiple z-wave devices. I rolled back and has been stable since.

Hi All

I have had the time to now play more extensively with Groups and Views.
The behaviour of 0.39 is of course exactly as you would expect once the concepts are more completely understood.

Ben’s video from BRUH Automation explains it nicely.

The Group configuration instructions on the HA website also says
If you create a group default_view it will REPLACE the contents of the HOME tab so you can customize the HOME tab as you wish.

As ever thanks again to the HA community for all the help.
RAWB

After reading all those reported issues, I was a bit hesitant to go for the upgrade. But finally curiosity won and just went for the upgrade without much thought. and voila! this upgrade is as smooth as most of the other upgrades… No issues at all. However, I didn’t use the config: section as I already had a decent sized group configuration. So no point of doing that from scratch. However, on weekend I am planning to test that part. But so far so good.

EDIT : It was finally permissions problem, found the 2 folders that was causing the problem, changed the permissions and updated HA without any problem, everything works now

Still unable to upgrade, any help would be appreciated.

When I’m runnning journalctl -f -u home-assistant@[your user] I get the following:

-- Logs begin at Thu 2017-03-02 08:37:38 CET. --
Mar 02 08:37:48 hostname systemd[1]: Starting Home Assistant...
Mar 02 08:37:48 hostname systemd[1]: Started Home Assistant.
Mar 02 08:37:55 hostname hass[683]: 17-03-02 08:37:55 INFO (Thread-4) [homeassistant.config] Upgrading config directory from 0.38.3 to 0.39.2
Mar 02 08:37:55 hostname hass[683]: Config directory: /home/hass/.homeassistant

And then nothing more happens…

When I’m running hass manually from the virt env I get the following:

(hass_venv) hass@hostname:/home/pi$ hass
Config directory: /home/hass/.homeassistant
17-03-02 09:06:40 INFO (Thread-3) [homeassistant.config] Upgrading config directory from 0.38.3 to 0.39.2
Traceback (most recent call last):
File "/srv/hass/hass_venv/bin/hass", line 11, in 
sys.exit(main())
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 381, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 480, in from_config_file
hass.loop.run_until_complete(future)
File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_complete
return future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 471, in asyncinit_from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 513, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 391, in async_from_config_dict
None, conf_util.process_ha_config_upgrade, hass)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in iter
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/config.py", line 263, in process_ha_config_upgrade
shutil.rmtree(lib_path)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 463, in rmtree
rmtreesafe_fd(fd, path, onerror)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 401, in rmtreesafe_fd
rmtreesafe_fd(dirfd, fullname, onerror)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 421, in rmtreesafe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 419, in rmtreesafe_fd
os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'metadata.json'
Exception ignored in: 
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 1294, in _shutdown
t.join()
File "/usr/lib/python3.4/threading.py", line 1060, in join
self.waitfor_tstate_lock()
File "/usr/lib/python3.4/threading.py", line 1076, in waitfor_tstate_lock
elif lock.acquire(block, timeout):

I have the same problem mine turn one and off but for some reason will not start on automation (sunset). The light turns on at sunset but only 50% and cannot be controlled anymore until restart.
The only error in log is “Error during query: (sqlite3.DatabaseError) database disk image is malformed”
Please let me know if you manage to fix yours. Thanks

I’m not sure about @RAWB’s problem but you may want to move your db to someplace sfe and let HA recreate it.

You may lose history but it should at least start up.