goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
23.93k stars 4.74k forks source link

helm install harbor by default,error The username or password is incorrect., #21052

Open wangchao732 opened 1 day ago

wangchao732 commented 1 day ago

harbor registry all v2.11.1

setup:

1、helm upgrade --install harbor harbor/harbor --namespace harbor --create-namespace 2、all server running is health 3、look all server logs not error info 1729056538159

1729056513764

image

1729056247284

need help ! thanks !

wangchao732 commented 1 day ago

image

another-novelty commented 1 day ago

For me, it was an issue with the ingress.

Check if /api, /service, /v2, /chartrepo and /c all point to the harbor-core service, instead of the harbor-portal service.

  - match: Host(`YOUR_HARBOR_URL_HERE`)
    kind: Rule
    services:
    - name: harbor-portal
      namespace: harbor
      port: 80
  - match: Host(`YOUR_HARBOR_URL_HERE`) && PathRegexp(`^/(api|service|v2|chartrepo|c)/`)
    kind: Rule
    services:
    - name: harbor-core
      namespace: harbor
      port: 80

Note: I am using traefiks ingressroute. you probably have to change it for your ingress controller.

wangchao732 commented 1 day ago

@another-novelty Thank you for your reply! I didn't find any issues with the configuration.And attempt to modify the admin password in PLSQL, it is still the same. image image

I have not used Ingress. nodeport access.

wangchao732 commented 1 day ago

image

wangchao732 commented 19 hours ago

@another-novelty
image

wangchao732 commented 18 hours ago

helm install harbor . --namespace harbor --create-namespace Error: INSTALLATION FAILED: template: harbor/templates/registry/registry-secret.yaml:11:62: executing "harbor/templates/registry/registry-secret.yaml" at <include "harbor.secretKeyHelper" (dict "key" "REGISTRY_HTTP_SECRET" "data" $existingSecret.data)>: error calling include: template: harbor/templates/_helpers.tpl:59:41: executing "harbor.secretKeyHelper" at <.data>: wrong type for value; expected map[string]interface {}; got interface {}