FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

部署没问题,无法调用

Open infoBrainSys opened this issue 7 months ago • 1 comments

Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

前端无法调用,10095端口是开放的 Image

Image

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd 'nohup bash run_server.sh --download-model-dir /workspace/models --model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch --certfile 0 --hotword /workspace/models/hotwords.txt > log.txt 2>&1 & '
  2. See error

Code sample

Expected behavior

Environment

  • OS (e.g., Linux): Ubuntu 20.04
  • FunASR Version (e.g., 1.0.0): Latest
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32) V00-16G
  • CUDA/cuDNN version (e.g., cuda11.7): 12.4
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1) Latest
  • Any other relevant information:

Additional context

infoBrainSys avatar Mar 31 '25 02:03 infoBrainSys

Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

前端无法调用,10095端口是开放的 Image

Image

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd 'nohup bash run_server.sh --download-model-dir /workspace/models --model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch --certfile 0 --hotword /workspace/models/hotwords.txt > log.txt 2>&1 & '
  2. See error

Code sample

Expected behavior

Environment

  • OS (e.g., Linux): Ubuntu 20.04
  • FunASR Version (e.g., 1.0.0): Latest
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32) V00-16G
  • CUDA/cuDNN version (e.g., cuda11.7): 12.4
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1) Latest
  • Any other relevant information:

Additional context

点击一下授权试试

lukeewin avatar Mar 31 '25 19:03 lukeewin

我遇到了同样的情况,在镜像内使用127.0.0.1是可以的,镜像外部的映射端口就无法连接

Image

Image

tongtongking avatar Apr 27 '25 22:04 tongtongking

我遇到了同样的情况,在镜像内使用127.0.0.1是可以的,镜像外部的映射端口就无法连接

Image

Image

当我按照ssl_key目录中的命令:

### 1)生成私钥,按照提示填写内容
openssl genrsa -des3 -out server.key 1024
 
### 2)生成csr文件 ,按照提示填写内容
openssl req -new -key server.key -out server.csr
 
### 去掉pass
cp server.key server.key.org 
openssl rsa -in server.key.org -out server.key
 
### 生成crt文件,有效期1年(365天)
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

报错: Traceback (most recent call last):
File "funasr_wss_server.py", line 336, in
ssl_context.load_cert_chain(ssl_cert, keyfile=ssl_key) ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4046) 然后执行: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt 重新生成一遍。 最后,再次启动/workspace/FunASR/runtime/python/websocket# python funasr_wss_server.py --port 10095 html端就可以连接了,看来还是ssl认证的问题。

tongtongking avatar Apr 27 '25 22:04 tongtongking

是否为http协议网站,http协议页面无法发起wss请求,只能发送ws请求

lazydog28 avatar Jun 23 '25 12:06 lazydog28