Nov 13 10:24:34 172.18.0.1 proxy[2527344]: 2025/11/13 02:24:34 [error] 7#0: *51 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.1”, upstream: “http://172.18.0.6:8080/”, host: “localhost:8080”
Nov 13 10:25:34 172.18.0.1 proxy[2527344]: 2025/11/13 02:25:34 [error] 7#0: *53 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.1”, upstream: “http://172.18.0.6:8080/”, host: “localhost:8080”
Nov 13 10:25:34 172.18.0.1 proxy[2527344]: 127.0.0.1 – “GET / HTTP/1.1” 504 160 “-” “curl/8.12.0” 60.048 60.048 .
Nov 13 10:25:43 172.18.0.1 proxy[2527344]: 172.27.133.121 – “x16x03x01x05xA4x01x00x05xA0x03x03xA9xEDxC6&x09xF3x97xA0x0BxDFx16xF6xEFcl xA3xBCx17+x5CxB6x88x97x9Dx0FuxF8'xA67xF5 x22Dx86x19.” 400 150 “-” “-” 0.001 – .
Nov 13 10:25:58 172.18.0.1 proxy[2527344]: 172.27.133.121 – “GET /v2/ HTTP/1.1” 499 0 “-” “docker/28.5.1 go/go1.24.8 git-commit/f8215cc kernel/5.14.0-362.18.1.el9_3.0.1.x86_64 os/linux arch/amd64 UpstreamClient(Go-http-client/1.1)” 15.000 15.000 .
Nov 13 10:28:41 172.18.0.1 proxy[2527344]: 2025/11/13 02:28:41 [error] 7#0: *1 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.1”, upstream: “http://172.18.0.4:8080/”, host: “localhost:8080”
Nov 13 10:28:41 172.18.0.1 proxy[2527344]: 127.0.0.1 – “GET / HTTP/1.1” 504 160 “-” “curl/8.12.0” 60.049 60.049 .
Nov 13 10:29:41 172.18.0.1 proxy[2527344]: 2025/11/13 02:29:41 [error] 7#0: *3 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.1”, upstream: “http://172.18.0.4:8080/”, host: “localhost:8080”
Nov 13 10:29:41 172.18.0.1 proxy[2527344]: 127.0.0.1 – “GET / HTTP/1.1” 504 160 “-” “curl/8.12.0” 60.046 60.047 .
Nov 13 11:11:36 172.18.0.1 core[2527344]: 2025-11-13T03:11:36Z [ERROR] [/lib/cache/cache.go:126]: failed to ping redis://redis:6379?idle_timeout_seconds=30, retry after 500ms : dial tcp 172.18.0.7:6379: i/o timeout
Nov 13 11:11:56 172.18.0.1 core[2527344]: 2025-11-13T03:11:56Z [ERROR] [/lib/cache/cache.go:126]: failed to ping redis://redis:6379?idle_timeout_seconds=30, retry after 534.751049ms : dial tcp 172.18.0.7:6379: i/o timeout
Nov 13 11:12:17 172.18.0.1 core[2527344]: 2025-11-13T03:12:17Z [ERROR] [/lib/cache/cache.go:126]: failed to ping redis://redis:6379?idle_timeout_seconds=30, retry after 701.696436ms : dial tcp 172.18.0.7:6379: i/o timeout
e86fde67a291 goharbor/nginx-photon:v2.14.0 "nginx -g 'daemon of…" 55 seconds ago Up 46 seconds (unhealthy) 0.0.0.0:5000->8080/tcp, [::]:5000->8080/tcp nginx 重启一下服务
e86fde67a291 goharbor/nginx-photon:v2.14.0 "nginx -g 'daemon of…" 55 seconds ago Up 46 seconds (unhealthy) 0.0.0.0:5000->8080/tcp, [::]:5000->8080/tcp nginx 重启一下服务 # 停止 docker-compose down # 启动 docker-compose up -d
换一台机器安装 查看 tail -fn200 /var/log/harbor/proxy.log
进入容器分析 docker exec -it e86fde67a291 /bin/bash

Core 和job 都在starting

进入core容器

说明core服务启动失败,redis 链接异常
docker logs -f e4a3e16f4875
2025-11-13T03:00:51Z [ERROR] [/lib/cache/cache.go:126]: failed to ping redis://redis:6379?idle_timeout_seconds=30, retry after 500ms : dial tcp 172.18.0.7:6379: i/o timeout 2025-11-13T03:01:12Z [ERROR] [/lib/cache/cache.go:126]: failed to ping redis://redis:6379?idle_timeout_seconds=30, retry after 777.686985ms : dial tcp 172.18.0.7:6379: i/o timeout
redis启动也是正常的
怀疑是docker问题
重启docker
# 重启docker
systemctl restart docker.service
# 重启harbor docker-compose up -d
# 观察harbor docker ps -a |grep harbor