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

ray start --head报错 #28

Open
shaomq21 opened this issue Jul 23, 2024 · 2 comments
Open

ray start --head报错 #28

shaomq21 opened this issue Jul 23, 2024 · 2 comments

Comments

@shaomq21
Copy link

ray start --head报错,提示there was an error connecting to Redis.

(auto-coder) C:\Windows\System32>ray start --head
Usage stats collection is disabled.

Local node IP: 127.0.0.1
Traceback (most recent call last):
File "C:\Users\shaom.conda\envs\auto-coder\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\shaom.conda\envs\auto-coder\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\shaom.conda\envs\auto-coder\Scripts\ray.exe_main
.py", line 7, in
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\ray\scripts\scripts.py", line 2615, in main
return cli()
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\ray\autoscaler_private\cli_logger.py", line 856, in wrapper
return f(*args, **kwargs)
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\ray\scripts\scripts.py", line 794, in start
node = ray._private.node.Node(
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\ray_private\node.py", line 333, in init
self.start_head_processes()
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\ray_private\node.py", line 1352, in start_head_processes
self._write_cluster_info_to_kv()
File "C:\Users\shaom.conda\envs\auto-coder\lib\site-packages\ray_private\node.py", line 1307, in _write_cluster_info_to_kv
assert curr_val == self._session_name.encode("utf-8"), (
AssertionError: Session name session_2024-07-23_11-18-13_747975_14728 does not match persisted value b'session_2024-07-23_10-56-15_899692_20884'. Perhaps there was an error connecting to Redis.

@tedczj
Copy link

tedczj commented Aug 10, 2024

ray stop 并重新deploy模型

ray stop
rm -rf /tmp/ray/session_*
ray start --head

@zhangsancode
Copy link

windows 下有可能是编码设置为题,系统编码设置成utf-8后成功启动

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

3 participants