Homeassistant user password

Hi, where can I found homeassistant user password?
Without it I cant’t update pip for venv (It needed for update homeassistant).

Installing collected packages: pip
Found existing installation: pip 18.0
Uninstalling pip-18.0:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/bin/pip’
Consider using the --user option or check the permissions.

You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
(homeassistant) homeassistant@DietPi:/root$ sudo pip3 install --upgrade pip

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for homeassistant:
Sorry, try again.

I also try to update it for ROOT user, it’s successful, but in venv installer report about old version.

your password is whatever you set the user password to?

The problem is that you are trying to run with sudo though.

python3 -m pip install --upgrade homeassistant

I don’t remember I’ve ever setup any password for it. (I didn’t create this user, I think installer made it earlier)
Installation fails with:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.5/site-packages/voluptuous_serialize-2.0.0.dist-info’
Consider using the --user option or check the permissions.

You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

You need to switch to the homeassistant user first and then activate the Venv - on my machine it’s done as follows:

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate

Now you should be able to run: pip3 install --upgrade homeassistant

What installer?

If you installed it on a linux distro in a python virtual environment, YOU created the user. if you installed hassbian, you should be using the hassbian commands like the instructions tell you.

If you are running HA in a venv (either installed using a hassbian image or manually installed in a venv) per the official installation instructions on the HA website then there is no password for the homeassistant user,

You need to enter a few commands to switch to the homeassistant user and activate the venv. Then you can run the upgrade command.

This is the sequence:

$ sudo systemctl stop [email protected]
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant
$ exit

1 Like

root@DietPi:~# sudo systemctl stop [email protected]
Failed to stop [email protected]: Unit [email protected] not loaded.
root@DietPi:~# sudo su -s /bin/bash homeassistant

And after
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant

homeassistant@DietPi:/root$ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@DietPi:/root$ pip3 install --upgrade homeassistant
Looking in indexes: Simple index, piwheels - Simple index
Collecting homeassistant
Using cached https://files.pythonhosted.org/packages/a4/10/3d361ebb3e11cdc2b0d27dac27496c82ef1e2e9d9a4f2dc55a3f880c5687/homeassistant-0.80.2-py3-none-any.whl
Collecting attrs==18.2.0 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: pyyaml<4,>=3.13 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.13)
Collecting voluptuous-serialize==2.0.0 (from homeassistant)
Using cached https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.0.0-py3-none-any.whl
Requirement already satisfied, skipping upgrade: voluptuous==0.11.5 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (0.11.5)
Requirement already satisfied, skipping upgrade: pytz>=2018.04 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2018.5)
Requirement already satisfied, skipping upgrade: jinja2>=2.10 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.10)
Requirement already satisfied, skipping upgrade: cryptography==2.3.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.3.1)
Requirement already satisfied, skipping upgrade: requests==2.19.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.19.1)
Requirement already satisfied, skipping upgrade: PyJWT==1.6.4 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (1.6.4)
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (18.0)
Requirement already satisfied, skipping upgrade: bcrypt==3.1.4 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.1.4)
Requirement already satisfied, skipping upgrade: certifi>=2018.04.16 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2018.8.24)
Requirement already satisfied, skipping upgrade: async-timeout==3.0.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.0.0)
Requirement already satisfied, skipping upgrade: astral==1.6.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (1.6.1)
Collecting aiohttp==3.4.4 (from homeassistant)
Using cached https://www.piwheels.org/simple/aiohttp/aiohttp-3.4.4-cp35-cp35m-linux_armv7l.whl
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /srv/homeassistant/lib/python3.5/site-packages (from jinja2>=2.10->homeassistant) (1.0)
Requirement already satisfied, skipping upgrade: idna>=2.1 in /srv/homeassistant/lib/python3.5/site-packages (from cryptography==2.3.1->homeassistant) (2.7)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /srv/homeassistant/lib/python3.5/site-packages (from cryptography==2.3.1->homeassistant) (0.24.0)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /srv/homeassistant/lib/python3.5/site-packages (from cryptography==2.3.1->homeassistant) (1.11.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.7 in /srv/homeassistant/lib/python3.5/site-packages (from cryptography==2.3.1->homeassistant) (1.11.5)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /srv/homeassistant/lib/python3.5/site-packages (from requests==2.19.1->homeassistant) (3.0.4)
Requirement already satisfied, skipping upgrade: urllib3<1.24,>=1.21.1 in /srv/homeassistant/lib/python3.5/site-packages (from requests==2.19.1->homeassistant) (1.23)
Requirement already satisfied, skipping upgrade: idna-ssl>=1.0; python_version < “3.7” in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.4.4->homeassistant) (1.1.0)
Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.4.4->homeassistant) (1.2.6)
Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.0 in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.4.4->homeassistant) (4.4.0)
Requirement already satisfied, skipping upgrade: pycparser in /srv/homeassistant/lib/python3.5/site-packages (from cffi!=1.11.3,>=1.7->cryptography==2.3.1->homeassistant) (2.18)
Installing collected packages: attrs, voluptuous-serialize, aiohttp, homeassistant
Found existing installation: attrs 18.1.0
Uninstalling attrs-18.1.0:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.5/site-packages/attr/init.py’
Consider using the --user option or check the permissions.

You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

Make sure you are exited out of the venv (exit) and then try the following command:

sudo chown -R homeassistant:homeassistant /srv/homeassistant

Then after that try the above list of commands again.

Are you using running your HA on a RPi? If so are you using hassbian or some other type of install? Is this a new install or has it been running OK before now?

Thanks, after change of premissions all updates fine. As I see in logs ver. 77 -> 80.3, but in homeassistant interface I see ver. 68.1 (Is it a bug or I have another homeassistant instance?)

Could you help me find other homeassistant instance, that currently work on my rpi?
My configuration.yaml file placed in /home/homeassistant

It sounds like you might have accidentally installed a separate HA instance at some point. I’m not really sure how to help you find it. My linux skills aren’t that great to know how to do that. :wink:

Do you have a backup of your SD card with your previously running good installation?