Upgraded to 0.24.1 and now I can't start has

Hi,

I just did the upgrade from 0.24 to 0.24.1 on my RaspberryPi 2 with HASS and now I cannot start hass anymore. When trying to start manually, I am getting this as the error:

pi@homeassistant:~ $ hass Config directory: /home/pi/.homeassistant INFO:homeassistant.config:Upgrading config directory from 0.24.0 to 0.24.1 Traceback (most recent call last): File "/usr/local/bin/hass", line 11, in sys.exit(main()) File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 327, in main exit_code = setup_and_run_hass(config_dir, args) File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 244, in setup_and_run_hass log_rotate_days=args.log_rotate_days) File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 292, in from_config_file skip_pip=skip_pip) File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 227, in from_config_dict conf_util.process_ha_config_upgrade(hass) File "/usr/local/lib/python3.4/dist-packages/homeassistant/config.py", line 192, in process_ha_config_upgrade shutil.rmtree(lib_path) File "/usr/lib/python3.4/shutil.py", line 463, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.4/shutil.py", line 401, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.4/shutil.py", line 401, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.4/shutil.py", line 421, in _rmtree_safe_fd onerror(os.unlink, fullname, sys.exc_info()) File "/usr/lib/python3.4/shutil.py", line 419, in _rmtree_safe_fd os.unlink(name, dir_fd=topfd) OSError: [Errno 117] Structure needs cleaning: 'testtools.py' pi@homeassistant:~ $

Could anyone help?

You are using XFS as your file system and something (filesystem, hardware) is corrupted. Boot a live distro or move your SD card to another computer and try running xfs_repair on the Pi’s filesystem (without mounting it).

It’s not necessarily an XFS filesystem. You can try running chattr +e on testtools.py

How would I do that exactly?

It’s in the deps folder, which gets rebuilt anyway (.homeassistant/deps/werkzeug/contrib/testtools.py). You could try just deleting the entire werkzeug folder and re-running the upgrade.

The error does imply that you may have some filesystem/sdcard corruption.

hi @froz

I tried as you suggested, but it would not delete the files; even with sudo. So I am trying another SD card that I have spare to see if that works. So far it seems to be working.