Duix.Heygem icon indicating copy to clipboard operation
Duix.Heygem copied to clipboard

| WARNING | asr_fun:init_conn:53 - 建立funasr连接异常:[Errno 111] Connection refused

Open fj-hetianhao opened this issue 9 months ago • 8 comments

1:这个根本原因是那个asr的容器没有办法连接, 2:查看asr容器的日志: I20250323 20:43:27.526489 84 funasr-wss-server.cpp:497] SSL is closed! I20250323 20:43:27.603763 84 fsmn-vad.cpp:58] Successfully load model from /workspace/models/damo/speech_fsmn_vad_zh-cn-16k-common-onnx/model_quant.onnx I20250323 20:43:27.685333 84 paraformer-torch.cpp:41] CUDA is available, running on GPU I20250323 20:43:33.217798 84 paraformer-torch.cpp:52] Successfully load model from /workspace/models/damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch/model_blade.torchscript 已经正常启动到加载模型了。 进入asr容器查看根本原因是10095端口根本就没listen--- root@237f9a9789cd:/workspace/FunASR/runtime# netstat -nao|more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State Timer tcp 0 0 127.0.0.11:40401 0.0.0.0:* LISTEN off (0.00/0/0) tcp 0 0 172.22.0.3:38568 185.125.190.81:80 TIME_WAIT timewait (55.13/0/0) udp 0 0 127.0.0.11:48598 0.0.0.0:* off (0.00/0/0) Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path root@237f9a9789cd:/workspace/FunASR/runtime# ---是不是作者没改好代码---

fj-hetianhao avatar Mar 23 '25 13:03 fj-hetianhao

我通过https://github.com/modelscope/FunASR/blob/main/runtime/docs/SDK_advanced_guide_offline_gpu_zh.md用原版的FunASR替换了博主的镜像后,首次加载镜像会下载新的模型。后面就完美解决。

fj-hetianhao avatar Mar 24 '25 04:03 fj-hetianhao

大佬怎么解决的 我按FunASR官方安装后跑它的测试脚本是通的 但是HeyGem的tts容器还是报连不上FunASR

chong-w avatar Apr 01 '25 07:04 chong-w

大佬怎么解决的 我按FunASR官方安装后跑它的测试脚本是通的 但是HeyGem的tts容器还是报连不上FunASR

2025-04-01 07:46:28.790 | WARNING | asr_fun:init_conn:53 - 建立funasr连接异常:[Errno -3] Temporary failure in name resolution Traceback (most recent call last): File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 176, in _get_addrinfo_list addrinfo_list = socket.getaddrinfo( File "/opt/conda/envs/python310/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution

chong-w avatar Apr 01 '25 08:04 chong-w

我没出现你这个问题好像。你自己在docker logs -f在检查下确定有联通,监听都起来了吗?正常起来了都不会有问题的。。 他这个结构很简单就是tts调用asr,调用face2face的镜像的。。。运行到监听起来基本都没问题。 Image他这个原配置的镜像是不可以用,HeyGem,很不厚道,留这么大一个坑。我是从[https://github.com/modelscope/FunASR/blob/main/runtime/docs/SDK_advanced_guide_offline_gpu_zh.md]下载asr的镜像替换下监听才起来的。

fj-hetianhao avatar Apr 03 '25 07:04 fj-hetianhao

我没出现你这个问题好像。你自己在docker logs -f在检查下确定有联通,监听都起来了吗?正常起来了都不会有问题的。。 他这个结构很简单就是tts调用asr,调用face2face的镜像的。。。运行到监听起来基本都没问题。 Image他这个原配置的镜像是不可以用,HeyGem,很不厚道,留这么大一个坑。我是从[https://github.com/modelscope/FunASR/blob/main/runtime/docs/SDK_advanced_guide_offline_gpu_zh.md]下载asr的镜像替换下监听才起来的。

嗯 跑起来了 谢谢大佬。我也是替换了阿里官方的funasr镜像,启动的时候把容器网络和名字设置为他这个docker-compose文件里面的。

chong-w avatar Apr 03 '25 08:04 chong-w

请问一下,具体是怎么替换?

huang5656151 avatar May 30 '25 05:05 huang5656151

请问一下,具体是怎么替换?

heygem-asr: #image: guiji2025/fun-asr image: registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-gpu-0.2.1 container_name: heygem-asr restart: always runtime: nvidia privileged: true ports: - '10095:10095' deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] volumes: - ./funasr-runtime-resources/models:/workspace/models command: > bash -c "cd runtime && nohup bash run_server.sh --download-model-dir /workspace/models --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch --punc-dir damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx --lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst --itn-dir thuduj12/fst_itn_zh --certfile 0 --hotword /workspace/models/hotwords.txt >/workspace/log.txt 2>&1 & tail -f /workspace/log.txt" networks: - ai_network

sudofeng avatar Jun 17 '25 07:06 sudofeng

command: >

用了这个还是 ConnectionRefusedError: [Errno 111] Connection refused

cj-wade avatar Jul 21 '25 14:07 cj-wade