docker-deepspeech-server icon indicating copy to clipboard operation
docker-deepspeech-server copied to clipboard

Server fails to respond in docker, but not outside

Open kelnos opened this issue 5 years ago • 2 comments

With your docker container running, if I then do:

curl -X POST --data-binary @foo.wav http://localhost:8080/stt

... where foo.wav is a wave file with some speech, I get:

curl: (56) Recv failure: Connection reset by peer

... and I see nothing in the output on the deepspeech-server container (beyond the initial startup messages).

If I run the exact same commands in the dockerfile, just in a virtualenv, natively on my machine (Debian bullseye/testing), and then start up the server, then it works fine; the server responds with the expected text from the wave file.

Any ideas? I'm a bit new to docker, so I'm not sure what exactly about the environment is different.

kelnos avatar Apr 07 '20 05:04 kelnos

Did you build the docker image yourself or used the one from docker hub ? The docker hub one is outdated and I must update it. However with a local build it should work.

MainRo avatar Apr 17 '20 17:04 MainRo

I built the image myself.

kelnos avatar Apr 17 '20 18:04 kelnos