记harbor无法登录web
错误:
harbor登录报错401
[ERROR] [/server/middleware/security/basic_auth.go:40][requestID="f7bfc8ca-bb57-42ce-9cde-3189eb45f1b2"]: failed to authenticate admin: Failed to authenticate user, due to error 'Invalid credentials'
解决方案:
猜测是时间同步,另一台机子将时间同步可以访问
docker1(失败)
[root@docker1 harbor]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3851e1a4bd2c goharbor/harbor-jobservice:v2.2.4 "/harbor/entrypoint.…" 4 minutes ago Up 4 minutes (healthy) harbor-jobservice
d69d7bb9f609 goharbor/nginx-photon:v2.2.4 "nginx -g 'daemon of…" 4 minutes ago Up 4 minutes (healthy) 0.0.0.0:80->8080/tcp, :::80->8080/tcp nginx
0f6070d86e24 goharbor/harbor-core:v2.2.4 "/harbor/entrypoint.…" 4 minutes ago Up 4 minutes (healthy) harbor-core
74d3c98d06fd goharbor/redis-photon:v2.2.4 "redis-server /etc/r…" 4 minutes ago Up 4 minutes (healthy) redis
1c63492996ed goharbor/harbor-registryctl:v2.2.4 "/home/harbor/start.…" 4 minutes ago Up 4 minutes (healthy) registryctl
89438124d4f9 goharbor/harbor-db:v2.2.4 "/docker-entrypoint.…" 4 minutes ago Up 4 minutes (healthy) harbor-db
cd28ab98395a goharbor/registry-photon:v2.2.4 "/home/harbor/entryp…" 4 minutes ago Up 4 minutes (healthy) registry
4cb8e9d7f070 goharbor/harbor-portal:v2.2.4 "nginx -g 'daemon of…" 4 minutes ago Up 4 minutes (healthy) harbor-portal
407d879b9cc5 goharbor/harbor-log:v2.2.4 "/bin/sh -c /usr/loc…" 4 minutes ago Up 4 minutes (healthy) 127.0.0.1:1514->10514/tcp harbor-log
docker2(成功)
5f0b8b578775 goharbor/nginx-photon:v2.2.4 "nginx -g 'daemon of…" 2 minutes ago Up 2 minutes (healthy) 0.0.0.0:80->8080/tcp, :::80->8080/tcp nginx
70909b89caec goharbor/harbor-jobservice:v2.2.4 "/harbor/entrypoint.…" 2 minutes ago Up 2 minutes (healthy) harbor-jobservice
2aae3cf4754b goharbor/harbor-core:v2.2.4 "/harbor/entrypoint.…" 2 minutes ago Up 2 minutes (healthy) harbor-core
5d53ffad5dc0 goharbor/registry-photon:v2.2.4 "/home/harbor/entryp…" 2 minutes ago Up 2 minutes (healthy) registry
d9018f15d5a3 goharbor/harbor-db:v2.2.4 "/docker-entrypoint.…" 2 minutes ago Up 2 minutes (healthy) harbor-db
d53c1f219f71 goharbor/harbor-portal:v2.2.4 "nginx -g 'daemon of…" 2 minutes ago Up 2 minutes (healthy) harbor-portal
ce8c0dea2852 goharbor/redis-photon:v2.2.4 "redis-server /etc/r…" 2 minutes ago Up 2 minutes (healthy) redis
21575b60ddb7 goharbor/harbor-registryctl:v2.2.4 "/home/harbor/start.…" 2 minutes ago Up 2 minutes (healthy) registryctl
5ec5f46f2ea6 goharbor/harbor-log:v2.2.4 "/bin/sh -c /usr/loc…" 2 minutes ago Up 2 minutes (healthy) 127.0.0.1:1514->10514/tcp harbor-log

浙公网安备 33010602011771号