question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Docker Image Immediately Crashes

See original GitHub issue

Describe the bug

Docker image immediately crashes

To Reproduce

  1. docker build .
  2. docker image ls to find the has of most recent built image
  3. docker image run ccecb48e2799

Expected behavior

Anything that’s not an error

Logs

Traceback (most recent call last):
  File "/venv/bin/tts", line 5, in <module>
    from TTS.bin.synthesize import main
  File "/root/TTS/bin/synthesize.py", line 11, in <module>
    from TTS.utils.manage import ModelManager
  File "/root/TTS/utils/manage.py", line 11, in <module>
    from TTS.config import load_config
  File "/root/TTS/config/__init__.py", line 10, in <module>
    from TTS.config.shared_configs import *
  File "/root/TTS/config/shared_configs.py", line 5, in <module>
    from trainer import TrainerConfig
  File "/venv/lib/python3.8/site-packages/trainer/__init__.py", line 3, in <module>
    from trainer.model import *
  File "/venv/lib/python3.8/site-packages/trainer/model.py", line 4, in <module>
    import torch
  File "/venv/lib/python3.8/site-packages/torch/__init__.py", line 655, in <module>
    from ._tensor import Tensor
  File "/venv/lib/python3.8/site-packages/torch/_tensor.py", line 15, in <module>
    from torch.overrides import (
  File "/venv/lib/python3.8/site-packages/torch/overrides.py", line 33, in <module>
    from torch._C import (
ImportError: cannot import name '_set_torch_function_mode' from 'torch._C' (/venv/lib/python3.8/site-packages/torch/_C.cpython-38-x86_64-linux-gnu.so)

Environment

{
    "CUDA": {
        "GPU": [],
        "available": false,
        "version": "10.2"
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "1.12.1+cu102",
        "TTS": "0.8.0",
        "numpy": "1.22.4"
    },
    "System": {
        "OS": "Linux",
        "architecture": [
            "64bit",
            "ELF"
        ],
        "processor": "",
        "python": "3.10.7",
        "version": "#1 SMP PREEMPT_DYNAMIC Thu, 15 Sep 2022 16:08:26 +0000"
    }
}

Additional context

Sorry this isn’t more helpful, but Docker images should be easily reproduced.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
maronezecommented, Dec 1, 2022

Thanks, it works!

1reaction
WeberJuliancommented, Nov 10, 2022

Sorry but I couldn’t reproduce your issue.

I tested on two separate envs (one with GPU the other without).

docker build -t tts .
docker run -it tts --text "Hello."

Gives me

...
 > Text: hello.
 > Text splitted to sentences.
['hello.']
 > Processing time: 0.21007227897644043
 > Real-time factor: 0.20090621753255167
 > Saving output to tts_output.wav
Read more comments on GitHub >

github_iconTop Results From Across the Web

Find out Why Your Docker Container Keeps Crashing
Your Docker container is exiting without a useful error message? Here are a few ways to find out what's happening.
Read more >
6 ways to debug an exploding Docker container - Medium
If you've got a initial command or entrypoint that immediately crashes, Docker will immediately shut it back down for you. This can make...
Read more >
how to fix docker crashing at startup - Stack Overflow
how to fix docker crashing at startup · Uninstall and install again · Update wsl 2 · reboot docker · reset docker hyper-v,...
Read more >
4.13.1 (90346) Docker crash when running container ... - GitHub
After upgrading to Docker Desktop for Mac 4.13.0, the docker engine crashes with this message in the terminal that launched the container ......
Read more >
Why Does My Docker Container Stop? - Tutorial Works
When you run a container image you've pulled from a registry like Docker Hub, you're launching a process. This process will, eventually, complete....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found