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

v0.6.3 docker 增加worker一直报错[已解决] #1464

Open
luchatex opened this issue May 9, 2024 · 3 comments
Open

v0.6.3 docker 增加worker一直报错[已解决] #1464

luchatex opened this issue May 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@luchatex
Copy link

luchatex commented May 9, 2024

image

@luchatex luchatex added the bug Something isn't working label May 9, 2024
@luchatex
Copy link
Author

luchatex commented May 9, 2024

补充:
以下内容有变化 ,不要拉去0.6.3 要修改daemon.json 拉取hub.docker.com的最新latest版本 crawlabteam/crawlab:latest

version: '3.3'
services:
master:
image: crawlabteam/crawlab:0.6.3
container_name: crawlab_master
restart: always
environment:
CRAWLAB_NODE_MASTER: "Y" # Y: 主节点
CRAWLAB_MONGO_HOST: "xxx.xxx.xxx.xxx" # mongo host address.
CRAWLAB_MONGO_PORT: "27017" # mongo port
CRAWLAB_MONGO_DB: "crawlab" # mongo database
CRAWLAB_MONGO_USERNAME: "root" # mongo username
CRAWLAB_MONGO_PASSWORD: "xxxx" # mongo password
CRAWLAB_MONGO_AUTHSOURCE: "admin" # mongo auth source
volumes:
- "/home/data/crawlab/master:/root/.crawlab" # 持久化 crawlab 元数据
- "/home/data/crawlab/master:/data" # 持久化 crawlab 数据
- "/home/data/crawlab/log:/var/logs/crawlab" # 持久化 crawlab 任务日志
ports:
- "8080:8080" # 开放 api 端口
- "9666:9666" # 开放 grpc 端口

工作节点

version: '3.3'
services:
worker:
image: crawlabteam/crawlab:0.6.3
container_name: crawlab_worker
restart: always
environment:
CRAWLAB_NODE_MASTER: "N" # N: 工作节点
CRAWLAB_GRPC_ADDRESS: "xxx.xxx.xxx.xxx:9666" # grpc address
CRAWLAB_FS_FILER_URL: "http://xxx.xxx.xxx.xxx:8080/api/filer" # seaweedfs api
volumes:
- "/opt/.crawlab/worker:/root/.crawlab" # 持久化 crawlab 元数据
- "/opt/crawlab/worker:/data" # 持久化 crawlab 数据
ports:
- "8080:8080" # 开放 api 端口
- "9666:9666" # 开放 grpc 端口

@luchatex
Copy link
Author

image
添加docker node报错,删除Node的异常截图

@luchatex
Copy link
Author

luchatex commented May 15, 2024

docker 的daemon.json 不要使用阿里云镜像站,latest拉下来是旧版本,可增加如下内容,拉取latest最新版本
{
"registry-mirrors": [
"https://docker.mirrors.sjtug.sjtu.edu.cn"
]
}

@luchatex luchatex changed the title v0.6.3 docker 增加worker一直报错 v0.6.3 docker 增加worker一直报错[已解决] May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant