Skip to content
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 websocket,client:Connection refused #2666

Open
ljyljy opened this issue Dec 24, 2024 · 0 comments
Open

docker websocket,client:Connection refused #2666

ljyljy opened this issue Dec 24, 2024 · 0 comments

Comments

@ljyljy
Copy link

ljyljy commented Dec 24, 2024

Describe the bug
Server:

root@68e8b3a3a5ac:/home/wenet/runtime/libtorch# ./build/bin/websocket_server_main \
    --port 10086 \
    --chunk_size 16 \
    --model_path $model_dir/final.zip \
    --unit_path $model_dir/units.txt 2>&1 | tee server.log
I1224 08:23:46.408741    89 params.h:155] Reading torch model /home/20210618_u2pp_conformer_libtorch/final.zip
I1224 08:23:46.423230    89 torch_asr_model.cc:34] Num intra-op threads: 1
I1224 08:23:46.628275    89 torch_asr_model.cc:69] Torch Model Info:
I1224 08:23:46.628325    89 torch_asr_model.cc:70]      subsampling_rate 4
I1224 08:23:46.628327    89 torch_asr_model.cc:71]      right context 6
I1224 08:23:46.628329    89 torch_asr_model.cc:72]      sos 5234
I1224 08:23:46.628329    89 torch_asr_model.cc:73]      eos 5234
I1224 08:23:46.628329    89 torch_asr_model.cc:74]      is bidirectional decoder 1
I1224 08:23:46.628331    89 params.h:197] Reading unit table /home/20210618_u2pp_conformer_libtorch/units.txt
I1224 08:23:46.629390    89 websocket_server_main.cc:31] Listening at port 10086

Client:

PS C:\Users\LJY> docker run -it abae85ab8086 bash
root@0835c8f0f31b:/# cd /home/wenet/runtime/libtorch
export GLOG_logtostderr=1
export GLOG_v=2
wav_path=/home/audio.wav
model_dir=/home/20210618_u2pp_conformer_libtorch

./build/bin/websocket_client_main \
    --hostname 127.0.0.1 --port 10086 \
    --wav_path $wav_path 2>&1 | tee client.log
terminate called after throwing an instance of 'boost::wrapexcept<boost::system::system_error>'
  what():  connect: Connection refused
@ljyljy ljyljy changed the title docker运行websocket,client端链接拒绝 docker websocket,client:Connection refused Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant