HASS Dead after upgrade to 0.46

So, I ran the upgrade for a second time last knight using the steps below, the first time I ran the upgrade, HASS never started, I thought maybe I didn’t wait long enough as I reverted back to 0.45.1 and everything worked.

I decided to give it a second chance since a couple things stopped working since upgrading to 0.45.1 and I wanted to add my Arlo Cam’s to HASS.

It is now exactly eight hours since the upgrade and HASS sill hasnt started up.

Any ideas.

Step’s to upgrade HASS on Hassbian:
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit
sudo systemctl start [email protected]

Upgrade Log:
Downloading/unpacking homeassistant from https://pypi.python.org/packages/c8/9f/dbb99434d08ba68976afc804abcbfc3cdfa697180746d74c27e158e429f0/homeassistant-0.46.0-py2.py3-none-any.whl#md5=66cab5867af4ce2b473b04d500aea095
Downloading homeassistant-0.46.0-py2.py3-none-any.whl (7.1MB): 7.1MB downloaded
Requirement already up-to-date: async-timeout==1.2.1 in /srv/homeassistant/lib/python3.4/site-packages (from homeassistant)
Downloading/unpacking aiohttp==2.1.0 (from homeassistant)
Downloading aiohttp-2.1.0.tar.gz (748kB): 748kB downloaded
Running setup.py (path:/tmp/pip-build-xqedcqdl/aiohttp/setup.py) egg_info for package aiohttp
aiohttp/_http_parser.pyx: cannot find cimported module ‘.’
Compiling aiohttp/_websocket.pyx because it changed.
Compiling aiohttp/_http_parser.pyx because it changed.
[1/2] Cythonizing aiohttp/_http_parser.pyx
[2/2] Cythonizing aiohttp/_websocket.pyx

warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/_multidict.html'
warning: no previously-included files found matching 'aiohttp/_multidict.*.so'
warning: no previously-included files found matching 'aiohttp/_multidict.pyd'
warning: no previously-included files found matching 'aiohttp/_multidict.*.pyd'
warning: no previously-included files found matching 'aiohttp/_websocket.html'
warning: no previously-included files found matching 'aiohttp/_websocket.*.so'
warning: no previously-included files found matching 'aiohttp/_websocket.pyd'
warning: no previously-included files found matching 'aiohttp/_websocket.*.pyd'
no previously-included directories found matching 'docs/_build'

Requirement already up-to-date: pytz>=2017.02 in /srv/homeassistant/lib/python3.4/site-packages (from homeassistant)
Downloading/unpacking requests==2.14.2 (from homeassistant)
Downloading requests-2.14.2-py2.py3-none-any.whl (560kB): 560kB downloaded
Requirement already up-to-date: typing>=3,<4 in /srv/homeassistant/lib/python3.4/site-packages (from homeassistant)
Downloading/unpacking pip>=7.1.0 (from homeassistant)
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Requirement already up-to-date: astral==1.4 in /srv/homeassistant/lib/python3.4/site-packages (from homeassistant)
Downloading/unpacking jinja2>=2.9.5 (from homeassistant)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB): 340kB downloaded
Requirement already up-to-date: voluptuous==0.10.5 in /srv/homeassistant/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: pyyaml>=3.11,<4 in /srv/homeassistant/lib/python3.4/site-packages (from homeassistant)
Downloading/unpacking chardet==3.0.2 (from homeassistant)
Downloading chardet-3.0.2-py2.py3-none-any.whl (133kB): 133kB downloaded
Requirement already up-to-date: multidict>=2.1.4 in /srv/homeassistant/lib/python3.4/site-packages (from aiohttp==2.1.0->homeassistant)
Requirement already up-to-date: yarl>=0.10.0,<0.11 in /srv/homeassistant/lib/python3.4/site-packages (from aiohttp==2.1.0->homeassistant)
Downloading/unpacking MarkupSafe>=0.23 from https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz#md5=2fcedc9284d50e577b5192e8e3578355 (from jinja2>=2.9.5->homeassistant)
Downloading MarkupSafe-1.0.tar.gz
Running setup.py (path:/tmp/pip-build-xqedcqdl/MarkupSafe/setup.py) egg_info for package MarkupSafe

Installing collected packages: homeassistant, aiohttp, requests, pip, jinja2, chardet, MarkupSafe
Found existing installation: homeassistant 0.45.1
Uninstalling homeassistant:
Successfully uninstalled homeassistant
Found existing installation: aiohttp 2.0.7
Uninstalling aiohttp:
Successfully uninstalled aiohttp
Running setup.py install for aiohttp
aiohttp/_http_parser.pyx: cannot find cimported module ‘.’

warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/_multidict.html'
warning: no previously-included files found matching 'aiohttp/_multidict.*.so'
warning: no previously-included files found matching 'aiohttp/_multidict.pyd'
warning: no previously-included files found matching 'aiohttp/_multidict.*.pyd'
warning: no previously-included files found matching 'aiohttp/_websocket.html'
warning: no previously-included files found matching 'aiohttp/_websocket.*.so'
warning: no previously-included files found matching 'aiohttp/_websocket.pyd'
warning: no previously-included files found matching 'aiohttp/_websocket.*.pyd'
no previously-included directories found matching 'docs/_build'
building 'aiohttp._websocket' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/srv/homeassistant/include -I/usr/include/python3.4m -c aiohttp/_websocket.c -o build/temp.linux-armv7l-3.4/aiohttp/_websocket.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/aiohttp/_websocket.o -o build/lib.linux-armv7l-3.4/aiohttp/_websocket.cpython-34m.so
building 'aiohttp._http_parser' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/srv/homeassistant/include -I/usr/include/python3.4m -c aiohttp/_http_parser.c -o build/temp.linux-armv7l-3.4/aiohttp/_http_parser.o
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/srv/homeassistant/include -I/usr/include/python3.4m -c vendor/http-parser/http_parser.c -o build/temp.linux-armv7l-3.4/vendor/http-parser/http_parser.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/aiohttp/_http_parser.o build/temp.linux-armv7l-3.4/vendor/http-parser/http_parser.o -o build/lib.linux-armv7l-3.4/aiohttp/_http_parser.cpython-34m.so

Found existing installation: requests 2.4.3
Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /srv/homeassistant
Found existing installation: pip 1.5.6
Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /srv/homeassistant
Found existing installation: Jinja2 2.7.3
Not uninstalling Jinja2 at /usr/lib/python3/dist-packages, outside environment /srv/homeassistant
*** Error compiling ‘/tmp/pip-build-xqedcqdl/jinja2/jinja2/asyncfilters.py’…
File “/tmp/pip-build-xqedcqdl/jinja2/jinja2/asyncfilters.py”, line 7
async def auto_to_seq(value):
^
SyntaxError: invalid syntax

*** Error compiling ‘/tmp/pip-build-xqedcqdl/jinja2/jinja2/asyncsupport.py’…
File “/tmp/pip-build-xqedcqdl/jinja2/jinja2/asyncsupport.py”, line 22
async def concat_async(async_gen):
^
SyntaxError: invalid syntax

Found existing installation: chardet 2.3.0
Not uninstalling chardet at /usr/lib/python3/dist-packages, outside environment /srv/homeassistant
Found existing installation: MarkupSafe 0.23
Not uninstalling MarkupSafe at /usr/lib/python3/dist-packages, outside environment /srv/homeassistant
Running setup.py install for MarkupSafe

building 'markupsafe._speedups' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/srv/homeassistant/include -I/usr/include/python3.4m -c markupsafe/_speedups.c -o build/temp.linux-armv7l-3.4/markupsafe/_speedups.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/markupsafe/_speedups.o -o build/lib.linux-armv7l-3.4/markupsafe/_speedups.cpython-34m.so

Successfully installed homeassistant aiohttp requests pip jinja2 chardet MarkupSafe
Cleaning up…

did you first start by upgrading hassbian, before upgrading HASS ?

sudo apt-get update
sudo apt-get -y upgrade

Yes I sure did, below is my quick notes I follow every time.

####Upgrading Hassbian
sudo apt-get update
sudo apt-get -y upgrade

####Update HASS on Hassbian
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit
sudo systemctl start [email protected]

ok, then I have no idea… I proceeded exactly like that yesterday to upgrade from 0.45.1 to 0.46, and everything worked like a charm. The first initial boot in 0.46 took something like 10 min tops.

If your configuration is not too complex, you can still wipe your SD card and do a fresh install. I had to do it to upgrade to 0.45.1 last week

Weighting my options at the moment.

Thanks.

The following is what I get when I start HASS.

"Jun 5 15:19:34 hassbian systemd[1]: Starting Home Assistant for homeassistant…
Jun 5 15:19:34 hassbian systemd[1]: Started Home Assistant for homeassistant.
Jun 5 15:19:37 hassbian hass[5262]: #033[32m2017-06-05 15:19:37 INFO (Thread-3) [homeassistant.config] Upgrading config directory from 0.45.1 to 0.46.0#033[0m
Jun 5 15:19:37 hassbian hass[5262]: Config directory: /home/homeassistant/.homeassistant
"

Not sure if it is happening to anyone else, but after upgrading to 0.46 for me (Raspbian plus manual install) HA runs fine (the browser interface works, and automations are working) but there is absolutely nothing written to the log file. I thought, like the others in this thread, that it wasn’t working, as there was nothing in the logs, but I checked the browser and it was working fine, so it may be the same for the other people here. Or I may have a unique problem…

Did you try deleting the log file and restarting HA?

That was actually why I went on the box in the first place, my log file was ~20GB and I was running out of disk space, so yes, I did delete the log file. I am not terribly concerned about it at the moment since it’s functioning fine aside from that. If it’s just me having the issue then I’ve obviously broken something, and I’ll figure it out soon enough.

20gb or 20kb?

Yes, 20GB. If 20kb was filling up my drive, I have other problems.

Ah…turns out when I zeroed the logfile I did it as root, so the hass user couldn’t write to the file. All fixed now.

You should just have deleted the file itself, and not the data in the file.

I usually cat /dev/null > file I just forgot to check permissions after I did it, forgot I was root at the time.