goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
69 stars 41 forks source link

harbor 2.6 redis, harbor-jobservice, registry can't run #34

Closed 631068264 closed 1 year ago

631068264 commented 1 year ago

registry

goroutine 1 [running]:
github.com/docker/distribution/registry/handlers.NewApp({0xa63c90?, 0x40005162d0?}, 0x4000181800)
        /go/src/github.com/docker/distribution/registry/handlers/app.go:317 +0x1924
github.com/docker/distribution/registry.NewRegistry({0xa63c90?, 0x4000493740?}, 0x4000181800)
        /go/src/github.com/docker/distribution/registry/registry.go:161 +0x128
github.com/docker/distribution/registry.glob..func1(0x8?, {0x4000196b40, 0x1, 0x1})
        /go/src/github.com/docker/distribution/registry/registry.go:119 +0x160
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0xfb3dc0, {0x4000196b00?, 0x2?, 0x2?})
        /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x3ac
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0xfb3f60)
        /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0xa8
main.main()
        /go/src/github.com/docker/distribution/cmd/registry/main.go:23 +0x2c
Appending internal tls trust CA to ca-bundle ...
find: '/etc/harbor/ssl': No such file or directory
Internal tls trust CA appending is Done.
ls: /harbor_cust_cert: Permission denied
time="2022-11-08T07:54:33.4926276Z" level=info msg="debug server listening localhost:5001" 
time="2022-11-08T07:54:33.49415366Z" level=info msg="Starting upload purge in 59m0s" go.version=go1.18.8 instance.id=d96349ad-c1a7-4428-b818-814f6fda6983 service=registry version=v2.8.0.m 
time="2022-11-08T07:54:33.4943419Z" level=info msg="using redis blob descriptor cache" go.version=go1.18.8 instance.id=d96349ad-c1a7-4428-b818-814f6fda6983 service=registry version=v2.8.0.m 
panic: unable to configure authorization (htpasswd): open /etc/registry/passwd: permission denied

goroutine 1 [running]:
github.com/docker/distribution/registry/handlers.NewApp({0xa63c90?, 0x4000509ce0?}, 0x4000681000)
        /go/src/github.com/docker/distribution/registry/handlers/app.go:317 +0x1924
github.com/docker/distribution/registry.NewRegistry({0xa63c90?, 0x4000123bc0?}, 0x4000681000)
        /go/src/github.com/docker/distribution/registry/registry.go:161 +0x128
github.com/docker/distribution/registry.glob..func1(0x8?, {0x40000f6e30, 0x1, 0x1})
        /go/src/github.com/docker/distribution/registry/registry.go:119 +0x160
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0xfb3dc0, {0x40000f6df0?, 0x2?, 0x2?})
        /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x3ac
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0xfb3f60)
        /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0xa8
main.main()
        /go/src/github.com/docker/distribution/cmd/registry/main.go:23 +0x2c
Appending internal tls trust CA to ca-bundle ...
find: '/etc/harbor/ssl': No such file or directory
Internal tls trust CA appending is Done.
ls: /harbor_cust_cert: Permission denied
time="2022-11-08T07:55:34.2702275Z" level=info msg="debug server listening localhost:5001" 
time="2022-11-08T07:55:34.27161964Z" level=info msg="Starting upload purge in 7m0s" go.version=go1.18.8 instance.id=d8cf8f2c-45ce-4548-a26c-baa49e738013 service=registry version=v2.8.0.m 
time="2022-11-08T07:55:34.27177666Z" level=info msg="using redis blob descriptor cache" go.version=go1.18.8 instance.id=d8cf8f2c-45ce-4548-a26c-baa49e738013 service=registry version=v2.8.0.m 
panic: unable to configure authorization (htpasswd): open /etc/registry/passwd: permission denied

goroutine 1 [running]:
github.com/docker/distribution/registry/handlers.NewApp({0xa63c90?, 0x400019a570?}, 0x4000181800)
        /go/src/github.com/docker/distribution/registry/handlers/app.go:317 +0x1924
github.com/docker/distribution/registry.NewRegistry({0xa63c90?, 0x4000031fb0?}, 0x4000181800)
        /go/src/github.com/docker/distribution/registry/registry.go:161 +0x128
github.com/docker/distribution/registry.glob..func1(0x8?, {0x400040cf70, 0x1, 0x1})
        /go/src/github.com/docker/distribution/registry/registry.go:119 +0x160
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0xfb3dc0, {0x400040cf30?, 0x2?, 0x2?})
        /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x3ac
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0xfb3f60)
        /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0xa8
main.main()
        /go/src/github.com/docker/distribution/cmd/registry/main.go:23 +0x2c

harbor-jobservice

goroutine 1 [running]:
main.main()
        /harbor/src/jobservice/main.go:42 +0x478
Appending internal tls trust CA to ca-bundle ...
find: '/etc/harbor/ssl': No such file or directory
Internal tls trust CA appending is Done.
ls: /harbor_cust_cert: Permission denied
2022-11-08T07:56:38Z [INFO] [/controller/artifact/annotation/parser.go:71]: the annotation parser to parser artifact annotation version v1alpha1 registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.wasm.config.v1+json registered
2022-11-08T07:56:38Z [ERROR] [/lib/config/config.go:81]: failed to get config manager
2022-11-08T07:56:38Z [ERROR] [/lib/config/config.go:81]: failed to get config manager
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.cncf.helm.config.v1+json registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.cnab.manifest.v1 registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.oci.image.index.v1+json registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.docker.distribution.manifest.list.v2+json registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.docker.distribution.manifest.v1+prettyjws registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.oci.image.config.v1+json registered
2022-11-08T07:56:38Z [INFO] [/controller/artifact/processor/processor.go:59]: the processor to process media type application/vnd.docker.container.image.v1+json registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/native/adapter.go:36]: the factory for adapter docker-registry registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/aliacr/adapter.go:30]: the factory for adapter ali-acr registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/artifacthub/adapter.go:30]: the factory for adapter artifact-hub registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/awsecr/adapter.go:44]: the factory for adapter aws-ecr registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/azurecr/adapter.go:29]: Factory for adapter azure-acr registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/dockerhub/adapter.go:26]: Factory for adapter docker-hub registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/dtr/adapter.go:22]: the factory of dtr adapter was registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/githubcr/adapter.go:29]: the factory for adapter github-ghcr registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/gitlab/adapter.go:18]: the factory for adapter gitlab registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/googlegcr/adapter.go:37]: the factory for adapter google-gcr registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/harbor/adaper.go:31]: the factory for adapter harbor registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/helmhub/adapter.go:30]: the factory for adapter helm-hub registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/huawei/huawei_adapter.go:40]: the factory of Huawei adapter was registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/jfrog/adapter.go:43]: the factory of jfrog artifactory adapter was registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/quay/adapter.go:54]: the factory of Quay adapter was registered
2022-11-08T07:56:38Z [INFO] [/pkg/reg/adapter/tencentcr/adapter.go:41]: the factory for adapter tencent-tcr registered
2022-11-08T07:56:38Z [INFO] [/pkg/config/rest/rest.go:47]: get configuration from url: http://core:8080/api/v2.0/internalconfig
2022-11-08T07:56:38Z [ERROR] [/pkg/config/rest/rest.go:50]: Failed on load rest config err:Get "http://core:8080/api/v2.0/internalconfig": dial tcp 172.22.0.5:8080: connect: connection refused, url:http://core:8080/api/v2.0/internalconfig
panic: failed to load configuration, error: failed to load rest config

goroutine 1 [running]:
main.main()
        /harbor/src/jobservice/main.go:42 +0x478

redis

<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size