gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.5k stars 578 forks source link

Hassio fails to install #165

Open JyothishGeorge opened 4 years ago

JyothishGeorge commented 4 years ago

Hassio fails to install with below error bash: line 1: 404:: command not found https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh is not found

Urzzzala commented 4 years ago

I have the same problem.

checking for project update From https://github.com/gcgarner/IOTstack

ThePastPlayer commented 4 years ago

same problem here

timelyfiasco commented 4 years ago

you can run this curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s instead of installing it from menu.sh https://www.home-assistant.io/hassio/installation/ The URL was updated, maybe?

Urzzzala commented 4 years ago

Thanks, it works. I had to run with admin rights.

ctrlce commented 4 years ago

Could you please share with instruction how to run it with admin rights for a rookie? I have the same problem, however I don't know how to run it with admin rights properly.

When I want to run it like:

sudo curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s

I receive:

[Warning] No NetworkManager support on host. [Error] Please set machine for armv7l

As a rookie I have no idea what to do next :/

Paraphraser commented 4 years ago

I have not tried to install hassio and I have no idea whether doing the install under admin rights is the solution to your problem. I am really only answering the “how to” part of your question.

The general syntax

$ sudo command_a | command_b

executes command_a with root privileges, takes the output of that and pipes it to command_b but does NOT also run command_b with root privileges. In other words, the scope of the sudo is limited to command_a.

The simplest way around this kind of problem is to get yourself a privileged shell, and then run the commands inside that shell. You invoke a privileged shell with “sudo -s”. Like this

$ sudo -s
# curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s

The change of prompt from “$” to “#” indicates that you are running as root. Once the curl + bash command completes, you can exit the privileged shell by pressing Control+D, which will take you back to the “$” prompt.

If this solves your problem and lets you install hassio then please confirm that here so that other people following in your footsteps can benefit. Ditto if this does not solve the problem. 🙃

timelyfiasco commented 4 years ago

@ctrlce that error is asking you to specify the machine type. curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s -- -m raspberrypi4 Check the link if you need more info.

Urzzzala commented 4 years ago

Hello. I am also a beginner and will write without any claims what I did.

  1. I opened a file menu.sh and changed the line with URL     cd IOTstatck    sudo nano menu.sh
  2. after the change, I started the menu.sh and started the installation of, but a message came out that it could not create directories.
  3. The first thing I thought of was to write    sudo ./ menu.sh   and so it is installed.
ThePastPlayer commented 4 years ago

ok this works, thanks just need to update the link in the script menu.sh

peyanski commented 4 years ago

I just created a pull request with the URL change. Let's hope that the author will approve it, so the issue will be fixed.

ctrlce commented 4 years ago

First of all thanks you all for your help!

@Paraphraser - thanks for explaining the command - very helpful, and feeling a little bit less rookie now ;) Infortunatelly even when running the script in your way I receive:

root@raspberrypi:/home/pi/IOTstack# curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s [Warning] No NetworkManager support on host. [Error] Please set machine for armv7l

@Urzzzala - infortunatelly that didn't work for me either, however it changes the output error.

./menu.sh: line 4: pushd: /root/IOTstack: No such file or directory checking for project update From https://github.com/gcgarner/IOTstack

  • branch master -> FETCH_HEAD Project is up to date install requirements for hass.io Reading package lists... Done Building dependency tree Reading state information... Done avahi-daemon is already the newest version (0.7-4+b1). bash is already the newest version (5.0-4). curl is already the newest version (7.64.0-4+deb10u1). dbus is already the newest version (1.12.16-1). jq is already the newest version (1.5+dfsg-2+b1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. bash: line 1: 404:: command not found ./menu.sh: line 442: popd: directory stack empty

Do you maybe have any ideas or am I doing something wrong?

ctrlce commented 4 years ago

FYI - I managed to install hassio on that stack via Portainer. You just need to set everything up properly and turn "Privileged mode" on. Maybe that's not the cleanest solution, but in my rookie opinion is always something ;)

yogieb commented 4 years ago

@Paraphraser Worked for me. Thank You.

ei23com commented 4 years ago

You can put this in the docker-compose.yaml as well:

homeassistant: container_name: homeassistant image: homeassistant/raspberrypi4-homeassistant:stable restart: unless-stopped ports:

PeterHurn commented 4 years ago

You can put this in the docker-compose.yaml as well:

homeassistant: container_name: homeassistant image: homeassistant/raspberrypi4-homeassistant:stable restart: unless-stopped ports:

  • 8123:8123 volumes:
  • ./volumes/homeassistant/config:/config environment:
  • "TZ=Europe/Berlin"

Thanks, that works nicely, I had to add "network_mode: host" under the ports section to allow HassIO to find devices on the local network the Pi is connected to and also I changed the TZ to my timezone :)