Coder Social home page Coder Social logo

Comments (17)

goldyfruit avatar goldyfruit commented on June 11, 2024

Hi @vallard

Thanks for making this cool project
You're welcome 👍

This error is not related to the Docker images itself, it's more related to Mycroft which is trying to download the md5sum file.
I tried to download the file manually and it worked, I compared the checksum between the the tar.gz and the the md5sum file and they are identical.

A weird thing is that it tries to download an older version of Precise Engine (0.2.0) which should be 0.3.0. I poked some guys on Mycroft chat, I'll keep you posted with update.

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

After some discussion, 0.3.0 is the default for aarch64 architecture because there is no 0.2.0 version for it. So you are using the correct version.

Does your RPi still have access to Internet? If you try to run this command from your RPi, does it work?

$ wget https://github.com/MycroftAI/mycroft-precise/releases/download/v0.2.0/precise-engine_0.2.0_armv7l.tar.gz.md5

Try to restart the mycroft_voice container:

$ sudo docker restart mycroft_voice

from docker-mycroft.

vallard avatar vallard commented on June 11, 2024

from docker-mycroft.

vallard avatar vallard commented on June 11, 2024

logging into the container I get the following:

$ docker exec -it dfb /bin/bash
mycroft@mycroft_voice:~/core$ curl -O https://github.com/MycroftAI/mycroft-precise/releases/download/v0.2.0/precise-engine_0.2.0_armv7l.tar.gz.md5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

Try the -k option with curl, an other solution could be to run c_rehash as root inside the mycroft_voice container.

from docker-mycroft.

vallard avatar vallard commented on June 11, 2024

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

Did you try the c_rehash command as root within the container?

from docker-mycroft.

vallard avatar vallard commented on June 11, 2024

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

You will have nothing to install, c_rehash is part of the openssl package already install within the image.
http://manpages.ubuntu.com/manpages/trusty/man1/c_rehash.1ssl.html

If it solves your issue, I will add the command to the Dockerfile.

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

To connect as root inside a container, you don't need to run sudo inside the container itself (-u 0).

$ sudo docker exec -ti -u 0 mycroft_voice bash
root@mycroft_voice:/home/mycroft/core# c_rehash

Output:

Doing /usr/lib/ssl/certs
WARNING: Skipping duplicate certificate ca-certificates.crt
WARNING: Skipping duplicate certificate ca-certificates.crt

Then restart the container.

from docker-mycroft.

vallard avatar vallard commented on June 11, 2024

I think that may have worked! Thank you, seeing this now, but wake word is being detected. Prob something else I have wrong on my end.

2021-02-23 05:33:40.873 | ERROR    |     1 | mycroft.client.speech.hotword_factory:update_precise:240 | Precise could not be downloaded(PermissionError(13, 'Permission denied'))
2021-02-23 05:33:43.998 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:33:44.733 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:33:45.368 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:33:45.872 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:14.002 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:14.736 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:15.381 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:15.877 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:41.368 | INFO     |     1 | mycroft.client.speech.hotword_factory:on_download:289 | Downloading Precise executable...
2021-02-23 05:34:41.373 | ERROR    |     1 | mycroft.client.speech.hotword_factory:update_precise:240 | Precise could not be downloaded(PermissionError(13, 'Permission denied'))

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

I think that may have worked!

Great, I'll add this to the Dockerfile.

2021-02-23 05:33:40.873 | ERROR    |     1 | mycroft.client.speech.hotword_factory:update_precise:240 | Precise could not be downloaded(PermissionError(13, 'Permission denied'))
2021-02-23 05:33:43.998 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:33:44.733 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:33:45.368 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:33:45.872 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:14.002 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:14.736 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:15.381 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:15.877 | INFO     |     1 | mycroft.client.speech.hotword_factory:during_download:301 | Still downloading executable...
2021-02-23 05:34:41.368 | INFO     |     1 | mycroft.client.speech.hotword_factory:on_download:289 | Downloading Precise executable...
2021-02-23 05:34:41.373 | ERROR    |     1 | mycroft.client.speech.hotword_factory:update_precise:240 | Precise could not be downloaded(PermissionError(13, 'Permission denied'))

I think you have created the mycroft-config as root which means that mycroft_voice container which is running as mycroft user cannot right into it (Precise is downloaded and installed into .mycroft/precise directory).

Adjust the permissions on this directory to make it writable within the container.

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

I pushed two commits, one for the c_rehash command and the other about the Permission denied.
3ee8fd1
c0099ca

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

I just build new images with the fix for the stable tag.

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

@vallard does everything is fixed for you?

from docker-mycroft.

vallard avatar vallard commented on June 11, 2024

Yes, fixing the directory permissions helped like you said and the system registered. Thank you so much for your help!

from docker-mycroft.

goldyfruit avatar goldyfruit commented on June 11, 2024

Yes, fixing the directory permissions helped like you said and the system registered. Thank you so much for your help!

Yeah!
Thanks for reporting the issue 👍

from docker-mycroft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.