harbor仓库错误解决error when collect tags for repos

harbor镜像仓库同步镜像报这个错误FetchArtifacts error when collect tags for repos

系统版本CentOS Linux release 7.7.1908 (Core)

    harbor 版本: [ v2.0.0-87602132]

    docker 版本: [18.09.8]

    docker-compose 版本: [1.25.4]

 

据作者说是postgresql数据库的连接数导致,原文:https://github.com/goharbor/harbor/issues/12003

 

解决方法:

cd /data/harborXXX/database

vi postgresql.conf

找到这行 max_connections = 100

改为        max_connections = 2000

也可以按作者方式

1
2
3
4
5
sed 's/max_connections =.*/max_connections=999/g' /data/database/postgresql.conf
再重启 harbor-db生效,或者
docker-compose stop
sleep 5
docker-compose up -d
posted @ 2021-12-14 14:52  China Soft  阅读(258)  评论(0编辑  收藏  举报