-
Notifications
You must be signed in to change notification settings - Fork 63
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
Docker image error: "pa_context_connect() failed: Connection refused" with audiotest #74
Comments
Hey not sure why inflection is not installed - but if you're still using this image - to get past this specific error you can run We'll need to look at why it's not getting installed though. |
Hang in there with me for a bit.. this is going to be a lengthy post with a lot of details about a journey to get the docker image working.
|
I'm creating a working version of the Mycroft docker image from here: https://hub.docker.com/r/mycroftai/docker-mycroft/ Here are the exact commands necessary. They could be added to the Mycroft DockerHub repo dockerfile. You should hear the Mycroft pairing prompt within a minute or two of this. You can then run the CLI tool: If you want to add a non-root user, add the pulse cookie either before or after creating the container
The documentation here is correct, except it must be run as a non-root user or else the cookie will come from the root dir and pulseaudio will give the error in the title of this issue. The documentation should really include a "sudo" in front of the docker command so it is clear that it must be run as a non-root user. |
Fresh docker image following the install docker at link below, so I would expect it to work out of the box. Using
docker exec -it mycroft /bin/bash
to start. Thenmycroft-start audiotest
and I get the error in the title. I've seen this error, I think when setting up Mycroft in a VM and it was because I had installed as root. I'm a little confused here because the Docker container doesnt have a user beside root.The packages are installed into /opt so I might assume I'm supposed to create a user, so I did, and use the command below to start the container with that user, but I get another error:
I'm working through the errors for clues, but either way, the instructions for Docker below are lacking the necessary steps to make it work.
https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/get-mycroft/docker
The text was updated successfully, but these errors were encountered: