goharbor / harbor-helm

The helm chart to deploy Harbor
Apache License 2.0
1.14k stars 745 forks source link

[ERROR] [/pkg/config/rest/rest.go:50]: Failed on load rest config err:Get "http://core/api/v2.0/internalconfig": dial tcp: lookup core on 127.0.0.11:53: no such host, url:http://core:8282/api/v2.0/internalconfig #1781

Open jdarwin opened 1 week ago

jdarwin commented 1 week ago

Getting this error in harbor jobservice. and in core service logs:

 [FATAL] [/core/main.go:156]: failed to initialize cache: cache type  not support
[INFO] [/core/controllers/base.go:159]: Config path: /etc/core/app.conf

I am using harbor 2.11, and porting from docker to docker swarm.

Following docker dns details running on my server:

sudo ss -tuln | grep ':53 '
udp   UNCONN 0      0             127.0.0.53%lo:53         0.0.0.0:*          
tcp   LISTEN 0      4096          127.0.0.53%lo:53         0.0.0.0:*

and below is the error log:

`[ERROR] [/pkg/config/rest/rest.go:50]: Failed on load rest config err:Get "http://core:8282/api/v2.0/internalconfig": dial tcp: lookup core on 127.0.0.11:53: no such host, url:http://core:8282/api/v2.0/internalconfig``