One-timer-installer fails on Raspberry Pi 3

Man, that get’s my vote for sure. You would think that everything would be in the same location regardless of how you get it running.

2 Likes

I followed Ken’s instructions and came forward in the installation. But Home Assistant not start running. I have change the IP adress in configuration.yaml, reboot the Raspberry Pi still the same problem. I dont find any duplicate for MQTT in the file.

What do I miss?

This is the first time i try Home Assistant. Would appreciate step by step instruction :slight_smile:

Have you got any errors in the homeassistant.log file found in the same location as your configuration.yaml?

Hi

I am getting the following errors from my log. Can someone please help?

16-12-15 20:11:08 homeassistant.loader: Unable to find component client_id
16-12-15 20:11:11 homeassistant.loader: Unable to find component password
16-12-15 20:11:11 homeassistant.loader: Unable to find component broker
16-12-15 20:11:11 homeassistant.loader: Unable to find component port
16-12-15 20:11:11 homeassistant.loader: Unable to find component username

Thanks.

Apologies the previous error got resolved as I had changed the broker address. However I get this error now with no luck:

16-12-15 20:23:22 homeassistant.components.mqtt: Unable to connect to the MQTT broker: Not authorised

For the moment just remove the mqtt entry all together, and see if you can have your system up and running. Then check if you have any mqtt broker available to use. Something like this:

mqtt:
broker: 192.168.2.80
port: 1883
client_id: home-assistant-1
username: pi
password: xyzwxx

Remember the indentation is one space underneath the m for the rest of the lines…
mqtt:
broker: 192.168.2.85
port: 1883
client_id: home-assistant-1
username: pi
password: xyzwww

I get this error
16-12-16 08:46:57 homeassistant.util.yaml: mapping values are not allowed here
in “/home/hass/.homeassistant/configuration.yaml”, line 46, column 9

I have changed the IP adress in the configuration.yaml to that the raspberry pi unit have, reboot. But still get the same problem.

Have you fixed the indentation for the mqtt line?

Are you able to post your config.yaml if your not sure?

@JuliusLedoux Hi thanks for your help. Is the broker address my pi address? Apologies I am a NOOB

@JuliusLedoux

are you saying the mqtt should be like this in the config file:

mqtt:
broker: 192.168.2.85
port: 1883
client_id: home-assistant-1
username: pi
password: xyzwww

Yes, it is the IP address of your PI.

This is probably the correct place to post as I have come through this path with the initial failure.
However, for security reasons, as well as changing the default password, I have also changed the default user name.
Installation gets to the point where it calls for a login password for ‘pi’!
Is there some way I can use a different user ID?
If I change the default name back to pi, can I later change it to a name of my choice?

yes, provided you familiarize yourself with the internals of Home Assistant. A limited service account is created during the install. Everything is installed and run under this account.

Thanks for y=the response, jbags81. I do not have a software background, but when I get to that point, I will see if I can work that out.
Having restored pi as the default user, I got further into the install, but have stopped that the point shown below:-

[localhost] out: * it needs X to run on the virtual console (VT) it was started from
[localhost] out: :
[localhost] out: :

The system is intended to run headless, so this is done on a terminal window in remote desktop on Windows 10. It has been stopped at that point for over 6 hours. I suspect it is telling me it needs some X windows program to get past that point, which I will investigate in the morning.

I was having the same MQTT error as reported by @bachoo786

Unable to connect to the MQTT broker: Not authorised

I fixed this by generating an MQTT user/pass by running the following command:

sudo mosquitto_passwd -c /etc/mosquitto/pwfile create-a-new-username-here

and entering the new user and pass in configuration.yaml. I also rebooted the Pi for good measure.

I’m so glad I found this topic! I have the latest Raspbian Jessie (with Pixel) and I followed the AIO instructions by the letter but ran into the same error. After running the commands as suggested above I get this message:

Checking for python3-dev: install ok installed
Checking for python3-pip: install ok installed
Checking for git: install ok installed
Checking for libssl-dev: install ok installed
Checking for libffi-dev: install ok installed
Checking for apt-listchanges:
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
Cloning into 'fabric-home-assistant'...
remote: Counting objects: 271, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 271 (delta 0), reused 0 (delta 0), pack-reused 266
Receiving objects: 100% (271/271), 118.52 KiB | 0 bytes/s, done.
Resolving deltas: 100% (154/154), done.
Checking connectivity... done.
hass_rpi_installer.sh: line 129: fab: command not found

How can I proceed…?

Hi goprojojo,

I solved this, starting with a fresh Jessie-lite install with this:

sudo -i
apt-get purge -y python3-pip
wget https://bootstrap.pypa.io/get-pip.py
python3 ./get-pip.py
apt-get install python3-pip

Found here: https://discourse.mailinabox.email/t/unable-to-run-mailinabox-command/1840/6

Thnx! This works.Now I can start having fun :slight_smile:

i am getting this error:


Installing collected packages: fabric3, paramiko
Successfully installed fabric3 paramiko
Cleaning up…
fatal: destination path ‘fabric-home-assistant’ already exists and is not an empty directory.

Fatal error: could not get keys from ssh-agent

Underlying exception:
could not get keys from ssh-agent

Aborting.
[localhost] Executing task ‘deploy’