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

启动时报RuntimeError: Cluster is not available after multiple attempts #2023

Closed
1 of 3 tasks
sunyankui opened this issue Aug 6, 2024 · 10 comments
Closed
1 of 3 tasks
Milestone

Comments

@sunyankui
Copy link

System Info / 系統信息

Python 3.11.9
windows11

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • docker / docker
  • pip install / 通过 pip install 安装
  • installation from source / 从源码安装

Version info / 版本信息

xinference, version 0.14.0

The command used to start Xinference / 用以启动 xinference 的命令

xinference-local -H 0.0.0.0

Reproduction / 复现过程

C:\Users\Administrator>xinference-local -H 0.0.0.0
2024-08-06 10:32:37,372 xinference.core.supervisor 3216 INFO Xinference supervisor 0.0.0.0:39084 started
2024-08-06 10:32:37,403 xinference.model.image.core 3216 WARNING Cannot find builtin image model spec: stable-diffusion-inpainting
2024-08-06 10:32:37,404 xinference.model.image.core 3216 WARNING Cannot find builtin image model spec: stable-diffusion-2-inpainting
2024-08-06 10:32:37,405 xinference.model.image.core 3216 WARNING Cannot find builtin image model spec: stable-diffusion-xl-inpainting
2024-08-06 10:32:37,416 xinference.core.worker 3216 INFO Starting metrics export server at 0.0.0.0:None
2024-08-06 10:32:37,421 xinference.core.worker 3216 INFO Checking metrics export server...
2024-08-06 10:32:42,412 xinference.core.worker 3216 INFO Metrics server is started at: http://0.0.0.0:51174
2024-08-06 10:32:42,413 xinference.core.worker 3216 INFO Xinference worker 0.0.0.0:39084 started
2024-08-06 10:32:42,418 xinference.core.worker 3216 INFO Purge cache directory: C:\Users\Administrator.xinference\cache
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Python311\Scripts\xinference-local.exe_main
.py", line 7, in
File "C:\Python311\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\xinference\deploy\cmdline.py", line 225, in local
start_local_cluster(
File "C:\Python311\Lib\site-packages\xinference\deploy\cmdline.py", line 112, in start_local_cluster
main(
File "C:\Python311\Lib\site-packages\xinference\deploy\local.py", line 122, in main
raise RuntimeError("Cluster is not available after multiple attempts")
RuntimeError: Cluster is not available after multiple attempts

Expected behavior / 期待表现

xinference-local -H 127.0.0.1 可以正常启动,但是修改为0.0.0.0就报错,这是什么问题

@XprobeBot XprobeBot added this to the v0.14.0 milestone Aug 6, 2024
@Alex-Zuo-One
Copy link

xinference-local -H 0.0.0.0
把这个 0.0.0.0 换成机器的ip试试

@sunyankui
Copy link
Author

xinference-local -H 0.0.0.0 把这个 0.0.0.0 换成机器的ip试试

可以用本机ip,但是我本地有chatchat他会请求127.0.0.1的地址,改chatchat的配置也不好使,所以看怎么能让xinference绑定0.0.0.0算根本决绝问题

@sw2s
Copy link

sw2s commented Aug 6, 2024

windows 下不能用0.0.0.0 换成 127.0.0.1 就可以了

@lhs0627
Copy link

lhs0627 commented Aug 8, 2024

@wangsen1110 我用127.0.0.1也报错是为什么呢xinference-local --host 127.0.0.1 --port 9997

@XprobeBot XprobeBot modified the milestones: v0.14, v0.15 Sep 3, 2024
@824562329
Copy link

(xinference) F:\pyth\Langchain-Chatchat>xinference-local --host 127.0.0.1 --port 9997
Traceback (most recent call last):
File "C:\Users\Administrator.conda\envs\xinference\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Administrator.conda\envs\xinference\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\Administrator.conda\envs\xinference\Scripts\xinference-local.exe_main
.py", line 7, in
sys.exit(local())
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\xinference\deploy\cmdline.py", line 224, in local
start_local_cluster(
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\xinference\deploy\cmdline.py", line 111, in start_local_cluster
main(
File "C:\Users\Administrator.conda\envs\xinference\lib\site-packages\xinference\deploy\local.py", line 122, in main
raise RuntimeError("Cluster is not available after multiple attempts")
RuntimeError: Cluster is not available after multiple attempts
2024-09-05 17:02:54,223 xinference.core.supervisor 10808 INFO Xinference supervisor 127.0.0.1:57814 started
2024-09-05 17:02:57,533 xinference.core.worker 10808 INFO Starting metrics export server at 127.0.0.1:None
2024-09-05 17:02:57,533 xinference.core.worker 10808 INFO Checking metrics export server...

@ddyzq
Copy link

ddyzq commented Oct 4, 2024

一样的问题,和0.0.0.0的地址无关,对gradio库进行降级也没有解决。环境为WINDOWS 2022+CONDA

@XprobeBot XprobeBot modified the milestones: v0.15, v0.16 Oct 30, 2024
@fg2501
Copy link

fg2501 commented Oct 31, 2024

解决了吗?我也碰到了这个问题。

@fg2501
Copy link

fg2501 commented Oct 31, 2024

我也是换成本地地址就不会报错,但是换成0.0.0.0就会报错,但是如果改成本地地址的话,用其他软件就打不开这个地址的模型,直接用端口号,也打不开地址。

@qinxuye
Copy link
Contributor

qinxuye commented Nov 13, 2024

我也是换成本地地址就不会报错,但是换成0.0.0.0就会报错,但是如果改成本地地址的话,用其他软件就打不开这个地址的模型,直接用端口号,也打不开地址。

可以直接用机器的 IP。

@qinxuye
Copy link
Contributor

qinxuye commented Nov 13, 2024

先关闭。

@qinxuye qinxuye closed this as completed Nov 13, 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

9 participants