So am going crazy here, firing up a hassbain on Pi on ethernet, boots, does first install, WebGUI load. Connect via SSH, add base configuration - whip power out, pop it back in and wait, and wait, and wait - nothing! Scan LAN with FING, Pi is on the network. Scan services, only SSH ports open. NO Web GUI - when i brows to http://PI_IP:8123 in chrome I get “Connection refused”.
He remiage multiple times and same behaviour each time - any suggestions very welcome about now as starting to lose my mind.
You’re not the only one. I just installed Hassbian 1.1 from 2017-02-03-HASSbian.img and it didn’t even look like HomeAssistant was installed on it. Same as @oderuyter
I was able to track down a potential fix. It appears there is something wrong with the hass setup in /srv/homeassistant/bin/hass. I found that running hass interactively was working as both pi and homeassistant users. Finally I ran which hass and found the location was /usr/local/bin/hass. Updating the service entry as follows resolved the issue:
/etc/systemd/system/[email protected]
# This is a simple service file for systems with systemd to tun HA as user.
#
# For details please check https://home-assistant.io/getting-started/autostart/
#
[Unit]
Description=Home Assistant for %i
After=network.target
[Service]
Type=simple
User=homeassistant
#ExecStart=/srv/homeassistant/bin/hass
ExecStart=/usr/local/bin/hass
SendSIGKILL=no
[Install]
WantedBy=multi-user.target
To be able to make the change, though, I had to be directly connected to the pi; PuTTY/SSH would not allow me to make any change without changing the default password first. And I couldn’t change the default pwd SSH’ed to the pi. So, the steps I took:
Can anyone dumb this down for me a bit further? What exact file do I need to change? Also do I simply include the given text or are there some lines I will need to leave.
@Redwards I’m also new to raspberry pi. I can walk you through how to change the file, but unfortunately it didn’t actually fix my problem
Disclaimer: I apologize in advance for my rudimentary language describing everything, like I said I’m new at this.
Basically what you want to do is type in: sudo nano /etc/systemd/system/[email protected]
“sudo” is what gives you permission to go into various files. “nano” is kind of like opening a document in Microsoft Word. It is a thing that lets you edit files.
Then all the code that @rchiarelly put will show up. I pasted it down here again for your reference:
# This is a simple service file for systems with systemd to tun HA as user.
#
# For details please check https://home-assistant.io/getting-started/autostart/
#
[Unit]
Description=Home Assistant for %i
After=network.target
[Service]
Type=simple
User=homeassistant
ExecStart=/srv/homeassistant/bin/hass
SendSIGKILL=no
[Install]
WantedBy=multi-user.target
Basically put a “#” in front of where it currently says “ExecStart” and then make a new line and put in “ExecStart=/usr/local/bin/hass”. The “#” makes it so that the computer will skip that line, but if you needed to reference what you changed in the future it’s still there.
Then do CTRL+X and type “y” and the hit enter. This exits the program, says “yes” I want to save it, and then confirms that you want to save it in the same place.
This did not solve my problem though! Has anyone figured out where “hass” is located on the all-in-one installer? That’s what I’m using.
I’m also having trouble. I’m on a mac and used the dd command (as described here) instead of “Etcher” to flash the HASSbian image to SD card.
I’m running the Pi headless (no display!) and it seemed to work ok but after booting the Pi (connected via ethernet cable to my internet router) and leaving it overnight, I can’t get the HASS web interface to load. When I use a LAN scanner, it finds Hassbian at 10.1.1.84 but only the SSH service (port 22) is running. There is no 8123 port!!
One more thing, I can login via SSH but when I type “ls -l” there are no files visible! When I “cd” to the path rchiarelly suggested, it does change to that directory - weird. I also tried @rchiarelly suggestion to edit the hass setup file, but this didn’t help.
Forgot to ask, I don’t actually need to SSH in and manually start the “homeassistant” service do I?
Has there been any updates to this issue on the out of box install.
I’ve also tried the Daemon instructions, and the error I get in the log says it can’t find service “hass”.
Tried “root” “user” “hassbian” “(hassbian) hassbian” “pi” in the user field
Same problems here, can’t connect to home assistant following the complete istructions on the website.
This is kind of shame and hope it gets fixed soon: I’ve been using HASS for some time and I’m in love with it, but these hassbian issues could potentially make new users look for alternatives. Just my two cents…
Just installed HASSbian 1.1, and had (I think) the same problems as others here – Pi booted fine, I could ssh in, but HASS wasn’t running.
I noted a message in syslog about not finding some YAML library. So I did a:
sudo apt-get install python3-yaml
and waited for it to install, then rebooted. Lo and behold, when it came back up, it completed the HASSbian configuration, and after ~10 minutes (doing ‘ps axuw’ to see what was going on; I have no screen on the raspi) it came up with the web interface.