OpenBMB / XAgent

An Autonomous LLM Agent for Complex Task Solving
https://blog.x-agent.net/blog/xagent/
Apache License 2.0
8.06k stars 827 forks source link

命令行运行XAgent,报错redis.exceptions.AuthenticationError #365

Closed hurun closed 9 months ago

hurun commented 9 months ago

Issue Description / 问题描述

按照文档步骤流程,命令行运行XAgent,报错redis.exceptions.AuthenticationError: Client sent AUTH, but no password is set

Steps to Reproduce / 复现步骤

  1. python run.py --task "calculate 7+8=" --config-file "assets/gpt-3.5-turbo_config.yml"
  2. gpt-3.5-turbo_config.yml配置如下
     api_keys:
    gpt-3.5-turbo-16k:
    - api_key: sk-xxxx(测试可直接调用)
      model: gpt-3.5-turbo-16k

Expected Behavior / 预期行为

正常执行输出结果

Environment / 环境信息

Error Screenshots or Logs / 错误截图或日志

微信截图_20231229161128

Additional Notes / 其他备注

If you have any additional information or notes, please add them here. / 如果有其他补充信息,请在此处添加。

hurun commented 9 months ago

排查测试问题出在dockers redis,运行的redis容器有设置xagent密码,但在python中使用密码连接redis 容器出现问题所述的报错。 解决方法,找到如下代码第17行,删除password=XAgentServerEnv.Redis.redis_password XAgentServer/exts/redis_ext.py

ShiFangJuMie commented 5 months ago

排查测试问题出在dockers redis,运行的redis容器有设置xagent密码,但在python中使用密码连接redis 容器出现问题所述的报错。 解决方法,找到如下代码第17行,删除password=XAgentServerEnv.Redis.redis_password XAgentServer/exts/redis_ext.py

可以通过环境变量或配置文件,指定redis的密码是什么吗? 已经运行了一个redis实例,再运行一个也是浪费