datawhalechina / vced

VCED 可以通过你的文字描述来自动识别视频中相符合的片段进行视频剪辑。该项目基于跨模态搜索与向量检索技术搭建,通过前后端分离的模式,帮助你快速的接触新一代搜索技术。
GNU General Public License v3.0
344 stars 57 forks source link

博主请问下,报这个错误是什么原因呢?ConnectionError #57

Open Jockz opened 1 year ago

Jockz commented 1 year ago

ConnectionError: failed to connect to all addresses; last error: UNKNOWN: ipv4:0.0.0.0:56207: Failed to connect to remote host: Connection refused |Gateway: Communication error with deployment at address 0.0.0.0:56207. Head or worker may be down. Traceback:

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script exec(code, module.dict) File "/code/web/app.py", line 93, in result = search_clip(uid, video_file_path, text_prompt, topn_value) File "/code/web/app.py", line 74, in search_clip c.post('/index', inputs=video) # 首先将上传的视频进行处理 File "/usr/local/lib/python3.9/site-packages/jina/clients/mixin.py", line 161, in post return run_async( File "/usr/local/lib/python3.9/site-packages/jina/helper.py", line 1342, in run_async return get_or_reuse_loop().run_until_complete(func(*args, *kwargs)) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.9/site-packages/jina/clients/mixin.py", line 152, in _get_results async for resp in c._get_results(args, **kwargs): File "/usr/local/lib/python3.9/site-packages/jina/clients/base/grpc.py", line 133, in _get_results raise e File "/usr/local/lib/python3.9/site-packages/jina/clients/base/grpc.py", line 99, in _get_results raise ConnectionError(my_details) from None

Jockz commented 1 year ago

我使用的是win10 virtualbox+Ubuntu

SuperSupeng commented 1 year ago

服务启动后需要等待一段时间,内部还有一些以来需要下载,过后再尝试下看看

buhanyunfei commented 1 year ago

等待了很久也没有加载好,是不是其它的问题呢

SuperSupeng commented 1 year ago

看下log,显示服务启动了再调用下看看

42Viva commented 1 year ago

我也遇到这个问题了,上传8分钟的视频等了半小时后,还是报错,请问您解决了吗

SuperSupeng commented 1 year ago

需要看下log发生了什么,大概率是网络问题,根据网络环境的不同,模型的下载有时候会很长

Minnull commented 1 year ago

eiweorerw commented 1 year ago

我也出现这个情况,重新部署一下又好了,上传几次以后又报这个错,重启后台就变成waiting image_encoder超时,每次都这样,博主能给个解决方案吗,这样没办法用啊

SuperSupeng commented 1 year ago

可以检查一下网络环境 @eiweorerw

eiweorerw commented 1 year ago

呃,怎么检查网络环境,我用的conda,然后每次重装conda就可以正常用几次,之后又变成这个报错和重启就flow is aborted due to ['image_encoder'] can not be started,ubuntu18.04

eiweorerw commented 1 year ago

@SuperSupeng 我换成4h,8g服务器就没有出这个错了,不知道是不是配置还是网络问题,但是在服务器上,有些请求会在前端服务里报Syntax error:"(" unexpected,然后执行结果就是新导入的视频没有生成切割视频,页面返回的是之前切割的视频,想问下这又是什么问题