Closed seozed closed 4 years ago
已解决! 工作节点配上数据库登录许可的环境变量即可。
CRAWLAB_MONGO_USERNAME: "root" # MongoDB username MongoDB 的用户名
CRAWLAB_MONGO_PASSWORD: "123456" # MongoDB password MongoDB 的密码
CRAWLAB_MONGO_AUTHSOURCE: "admin" # MongoDB auth source MongoDB 的验证源
CRAWLAB_REDIS_ADDRESS: "redis" # Redis host address Redis 的地址,在 docker compose 网络中,直接引用服务名称
Bug 描述 使用默认的docker-compose.yml部署完应用后,安装依赖时报错。
复现步骤 该 Bug 复现步骤如下
我的docker-compose配置
工作节点的报错日志:
2020/10/16 10:50:23 warn Get current node info from database failed. Will after 1.000000 seconds, try again. error=command find requires authentication
期望结果 能正常安装依赖
截屏