Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when starting module #3

Open
dimovnike opened this issue Feb 16, 2021 · 5 comments
Open

Error when starting module #3

dimovnike opened this issue Feb 16, 2021 · 5 comments

Comments

@dimovnike
Copy link

Hello, I get this error when starting the module:

400 Client Error for http+docker://localhost/v1.38/containers/e5995588e5c493324bca0da8cf11cf170c3c61aa776e720834c70ec1009e1318/start: Bad Request ("OCI runtime create failed: container_linux.go:348: starting container process caused "exec: "/dev/init": stat /dev/init: no such file or directory": unknown")

@dimovnike
Copy link
Author

dimovnike commented Feb 16, 2021

As a temporary workaround, running this fixes the sound:

docker exec -ti hassio_audio pactl load-module module-suspend-on-idle

@domolys
Copy link

domolys commented Feb 19, 2021

Looks like the audio container changed recently:

$ docker exec -ti hassio_audio pactl load-module module-suspend-on-idle
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

@corgan2222
Copy link

Any chance to get an update?

@jan-gerard
Copy link

@fleXible
Copy link

fleXible commented Oct 7, 2021

I needed a different pulseaudio config, because it messes with my non-audio bluetooth devices. After lots of trial and error I settled for this solution injecting a shell-script into the hassio-audio s6 startup:

#!/bin/sh

# disable bluetooth module
sed -i -E 's|(load.+bluetooth-discover)|#\1|' /usr/share/tempio/system.pa

# enable suspend-on-idle
grep -q -F "module-suspend-on-idle" /usr/share/tempio/system.pa || \
  echo "load-module module-suspend-on-idle" >> /usr/share/tempio/system.pa

Save this shellscript under /usr/share/hassio/share/s6-scripts/01_fix_pulseaudio.sh and mount it into /etc/cont-init.d/ in your hassio-audio container. It's easily done with Portainer.

The script changes the template, used by hassio_audio to create /etc/pulse/system.pa. The filename makes sure to execute before that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants