安装完成后,运行xinference-local --host 0.0.0.0 --port 9997报错,

bvjveswy  于 6个月前  发布在  其他
关注(0)|答案(2)|浏览(142)

错误信息

2024-07-10 12:28:08,395 xinference.core.supervisor 83095 INFO Xinference supervisor 0.0.0.0:44062 started
2024-07-10 12:28:08,425 xinference.core.worker 83095 INFO Starting metrics export server at 0.0.0.0:None
2024-07-10 12:28:08,431 xinference.core.worker 83095 INFO Checking metrics export server...
2024-07-10 12:28:09,600 xinference.core.worker 83095 INFO Metrics server is started at:  [http://0.0.0.0:41815](http://0.0.0.0:41815) 
2024-07-10 12:28:09,601 xinference.core.worker 83095 INFO Xinference worker 0.0.0.0:44062 started
2024-07-10 12:28:09,602 xinference.core.worker 83095 INFO Purge cache directory: /root/.xinference/cache
2024-07-10 12:28:11,604 xinference.core.worker 83095 ERROR Report status got error.
Traceback (most recent call last):
 File "/root/anaconda3/envs/py311/lib/python3.11/site-packages/xinference/core/worker.py", line 800, in report_status
 status = await asyncio.to_thread(gather_node_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/py311/lib/python3.11/asyncio/threads.py", line 25, in to_thread
 return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
 File "/root/anaconda3/envs/py311/lib/python3.11/site-packages/xinference/core/worker.py, line 799, in report_status
 async with timeout(2):
File "/root/anaconda3/envs/py311/lib/python3.11/site-packages/async_timeout/**init**.py", line 141, in **aexit**
 self._do_exit(exc_type)
File "/root/anaconda3/envs/py311/lib/python3.11/site-packages/async_timeout/**init**.py", line 228, in _do_exit
 raise asyncio.TimeoutError
TimeoutError
2024-07-10 12:28:14,296 xinference.api.restful_api 82961 INFO Starting Xinference at endpoint:  [http://0.0.0.0:9997](http://0.0.0.0:9997) 
2024-07-10 12:28:14,648 uvicorn.error 82961 INFO Uvicorn running on  [http://0.0.0.0:9997](http://0.0.0.0:9997)  (Press CTRL+C to quit)
2024-07-10 12:28:18,618 xinference.core.worker 83095 ERROR Report status got error.
Traceback (most recent call last):
 File "/root/anaconda3/envs/py311/lib/python3.11/site-packages/xinference/core/worker.py", line 800, in report_status
 status = await asyncio.to_thread(gather_node_info)
 ^^^^^^^^^^^^^^^^^^->The above exception was never handled; either propagate it up as an exception or suppress it using e
lvjbypge

lvjbypge1#

@pan-common worker向supervisor汇报状态时出错。
先尝试打开debug日志(另外你的错误没给全,请把完整的全贴上来,During handling of the above exception, another exception occurred:这句后面的都贴出来),看看有没有具体错误。
然后这样可以绕过汇报流程,看看能不能启动

XINFERENCE_DISABLE_HEALTH_CHECK=1 xinference-local --host 0.0.0.0 --port 9997
btqmn9zl

btqmn9zl2#

这个问题已经过时,因为它已经开放了7天,没有任何活动。

相关问题