Stuck after upgrading

I upgraded to 38.2 yesterday but now when I try to start HASS, it gets stuck here:

INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.1.5

I let it sit there for hours. I uninstalled home assistant and reinstalled with the same results. I also tried downgrading back to the previous version and no luck.

Any thoughts?

Thanks,
Nathan

You could try installing it manually and see if it generates a meaningful error. Just make sure that if you installed to a virtual environment that you do your install there.

I did try that as well, and it gets stuck here:

pip3 install sqlalchemy==1.1.5
Collecting sqlalchemy==1.1.5

Am I doing that wrong?

No, that looks correct. Try updating pip3 first and see if it just needs a reference to the lib updated. I believe the command is below, but you may want to double check.

pip3 install --upgrade pip3

It says that is up to date.

I added verbose to the sqlalchemy command and got this:

>pip3 -v install sqlalchemy==1.1.5
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Collecting sqlalchemy==1.1.5
  1 location(s) to search for versions of sqlalchemy:
  * https://pypi.python.org/simple/sqlalchemy/
  Getting page https://pypi.python.org/simple/sqlalchemy/
  Looking up "https://pypi.python.org/simple/sqlalchemy/" in the cache
  No cache entry available
  Starting new HTTPS connection (1): pypi.python.org
  "GET /simple/sqlalchemy/ HTTP/1.1" 200 10174
  Updating cache with response from "https://pypi.python.org/simple/sqlalchemy/"
  Caching b/c date exists and max-age > 0

It must be whatever is coming after that then.

If you start HA up and then run this command, do you see anything that might indicate the issue?

sudo systemctl status home-assistant.service -l

When I hit ctrl+c to stop the above command, it dumped out some more information, including a line about some lock file. I found the lock file and deleted it manually. This fixed the sqlalchemy problem but then I got stuck at another one. I just deleted the entire python cache directory and everything is working now. Thanks for your help!

2 Likes

Great news! When you go to the web UI, I’d suggest doing a full cache and history clean on your browser. A LOT of frontend changes were made and things will may look weird and not display correctly - this will fix it.

Okay, sounds good. Thanks again!

I’m experiencing this issue also and I fail to see how clearing my browser’s cache is going to fix an issue I’m having with installing sqlalchemy dependency?

Same problem here. Version 0.58.0 [AIO], Raspbian RPi2B+. Works, but no logbook or recorder. Proceeding to give-up stage for today.

After a night’s sleep, turns out an “easy_install” of SQLAlchemy fixed it. Yay ~ Carry On