GithubHelp home page GithubHelp logo

Comments (4)

goldyfruit avatar goldyfruit commented on June 8, 2024 2

I just pushed this commit to avoid this error, not pretty but its working.

from ovos-docker.

goldyfruit avatar goldyfruit commented on June 8, 2024

When using Docker, you should not have logs into the containers as they are identical with what is already available in the stdout.

To avoid the log to be created by the service, you should add this to your mycroft.conf:

  "logs": {
    "path": "stdout"
  }

From the README.md:

image

If you need to get all the logs from the containers, you can run docker compose logs:

docker compose -f docker-compose.yml -f docker-compose.skills.yml --env-file .env logs -n -f --tail 200

And the best practice to log containers stdout would be to use a log aggregator such as Filebeat (but that could be a bit over kill, depends of your needs).

from ovos-docker.

denics avatar denics commented on June 8, 2024

then probably I did something wrong as in my MBP arm64 the stdout does not work with an error message :(

xxx@xxx ~/Git/ovos/ovos-docker/compose (dev*) $ docker exec -it ovos_cli ovos-cli-client


Traceback (most recent call last):
  File "/home/ovos/.venv/bin/ovos-cli-client", line 33, in <module>
    sys.exit(load_entry_point('ovos-cli-client==0.0.1a1', 'console_scripts', 'ovos-cli-client')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_cli_client/__main__.py", line 63, in main
    for f in os.listdir(log_dir):
             ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'stdout'

from ovos-docker.

goldyfruit avatar goldyfruit commented on June 8, 2024

then probably I did something wrong as in my MBP arm64 the stdout does not work with an error message :(

xxx@xxx ~/Git/ovos/ovos-docker/compose (dev*) $ docker exec -it ovos_cli ovos-cli-client


Traceback (most recent call last):
  File "/home/ovos/.venv/bin/ovos-cli-client", line 33, in <module>
    sys.exit(load_entry_point('ovos-cli-client==0.0.1a1', 'console_scripts', 'ovos-cli-client')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_cli_client/__main__.py", line 63, in main
    for f in os.listdir(log_dir):
             ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'stdout'

Yeah, you are facing this issue OpenVoiceOS/ovos-cli-client#12 which is related to ovos-cli, and ovos-cli is not really maintained anymore.

from ovos-docker.

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.