必须调用 ray.init() 两次:第一次给出 "AUTH <password> called without any password configured for the default user."
Have to call ray.init() twice: first time gives "AUTH <password> called without any password configured for the default user."
我在新的 Python 环境中安装了 Ray 1.4.1 Python 包。当我尝试在命令提示符下启动 Ray 时,我得到以下信息:
>>> import ray
>>> ray.init()
...stack trace...
ResponseError: AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?
如果我再次键入 ray.init()
,它就会起作用。我如何让它第一次工作?
堆栈跟踪和在线搜索此错误消息均表明这是Redis 身份验证的问题。我能找到的唯一补救办法是取消注释 redis.conf
中的 requirepass
行,但这没有任何效果。如果这是 Redis 密码的问题,我不知道如何告诉 Ray 我的 Redis 密码是什么。
Python 3.9.6,Mac OS X 10.15.7,Redis 服务器 6.0.8
升级到 Ray 1.6.0 为我解决了这个问题。
我在新的 Python 环境中安装了 Ray 1.4.1 Python 包。当我尝试在命令提示符下启动 Ray 时,我得到以下信息:
>>> import ray
>>> ray.init()
...stack trace...
ResponseError: AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?
如果我再次键入 ray.init()
,它就会起作用。我如何让它第一次工作?
堆栈跟踪和在线搜索此错误消息均表明这是Redis 身份验证的问题。我能找到的唯一补救办法是取消注释 redis.conf
中的 requirepass
行,但这没有任何效果。如果这是 Redis 密码的问题,我不知道如何告诉 Ray 我的 Redis 密码是什么。
Python 3.9.6,Mac OS X 10.15.7,Redis 服务器 6.0.8
升级到 Ray 1.6.0 为我解决了这个问题。