Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95464

Shell_command stopped working - 0.107.x

$
0
0

@ksga wrote:

After updating to 0.107.x (right now on 0.107.6) my “Update HA” shell_command / script stopped working.

After starting the command HA dies (dockerized on Armbian using the homeassistant/raspberrypi3-homeassistant docker image and adding sshpass on each update) within a few seconds.
The script is never run. The log shows:

2020-03-25 07:37:30 INFO (MainThread) [homeassistant.components.script] Update Home Assistant: Running script
2020-03-25 07:37:30 INFO (MainThread) [homeassistant.components.script] Update Home Assistant: Executing step call service
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
s6-svwait: fatal: timed out
2020-03-25 07:37:46 INFO (MainThread) [homeassistant.components.stream] Stopped stream workers.
2020-03-25 07:37:46 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.2900401008] Connection closed by client
[s6-finish] sending all processes the TERM signal.
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the KILL signal and exiting.

Configuration.yml line:

shell_command:
  update_homeassistant: "sshpass -f /config/host.p ssh cubie@10.0.0.10 '/home/cubie/homeassistant/updateha.sh'"

And the script itself:

#!/bin/bash
cd "$(dirname "$0")"
docker-compose build  --force-rm --pull
docker system prune -f
docker-compose up --force-recreate --build

I know I have a duplicate on build - but only takes a couple of seconds, so…

The script was working fine for quite a while, but after updating to the initial 0.107 release it died on me.

Any suggestions?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95464

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>