Closed ixxeL2097 closed 7 months ago
Hi @ixxeL2097 , are you sure the blobs are successfully copied over to harbor via skopeo
? Because I noticed the following message from the description you provided:
Copying blob 59bf1c3509f3 [--------------------------------------] 0.0b / 0.0b
when the size of blobs being copied over is 0.0b
.
you should probable login through externalURL
and using skopeo copy images over to externalURL
of harbor instead of registry.
Yes, the image is properly copied. I can even download it from the registry after uploading it. The reason why it is 0.0b
is because I did a second copy of the same image so it didn't upload it a second time, but you can notice on my curl -k --user admin:admin localhost:5000/v2/_catalog
command that the images are indeed present inside the registry.
The externalURL
cannot be reached from outside the cluster since it's a clusterIP
service and according to annotation :
# Format: protocol://domain[:port]. Usually:
# 1) if "expose.type" is "ingress", the "domain" should be
# the value of "expose.ingress.hosts.core"
# 2) if "expose.type" is "clusterIP", the "domain" should be
# the value of "expose.clusterIP.name"
# 3) if "expose.type" is "nodePort", the "domain" should be
# the IP address of k8s node
So the externalURL
in my case is just the name of the clusterIP
service, not my DNS hostname. In order to make my clusterIP
service reachable from outside of my cluster, I created an ingress
(actually it's a virtualService
since I am using istio but it's the same mechanic).
Moreover, if I already tried to login to the actual ingress
linking my Harbor service (not the registry), but login is denied. The only way to login into the registry is to login against the actual harbor registy URL (weither it is inside the cluster or outside).
Has there been any updates on this? Many of the setting mentioned above are the same except I'm running it on OCP so I have routes (ingresses) in front of the services to reach them.
The only way to reach the registry is by routing the traffic directly to the registry pod, but the same issues arise if I do it this way.
I'm having the same problem as well, projects removed by the UI aren't updated in the registry itself and uploads to the registry aren't visible in the UI.
For us, this same error is coming when we try to replicate an entire project from one harbor to another.
I also meet similary problem.
After migrate habror to new instantce, some part of old helm charts disappeared.
$ helm search repo myrepo
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /Users/counter/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /Users/counter/.kube/config
NAME CHART VERSION APP VERSION DESCRIPTION
newrepo/myrepo 0.1.13 1.0.0 myrepo all application charts
oldrepo/myrepo 0.1.13 1.0.0 myrepo all application charts
oldrepo/myrepo-jobs 0.1.1 1.16.0 dump and restore myrepo data
I try to reupload myrepo-jobs-0.1.1.tgz from harbor UI. It told me it's uploaded successfully, however, I cant found the chart.
My workaroud is package a new version myrepo-jobs-0.1.2.tgz
of chart and reupload it.
Now it can be found from harbor UI, but the old version missed.
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.
I have installed harbor registry with the helm chart in my kubernetes cluster. Everything seems to work, I am able to login to the web UI, and also login to the registry (using skopeo) but I can't see any of the images uploaded in the web UI. My
values.yaml
use following settings :expose.type
=clusterIP
expose.tls.enabled
=false
expose.clusterIP.name
=harbor
externalURL
=http://harbor
I access through the web UI using the
harbor
service pointing to the nginx container :I can access the Web UI simply with a port-forward for the moment, and also expose my registry with same technique :
and transfer images using skopeo :
I also tried transfering from an inside cluster container and same result. For unknow reason, I cannot see the uploaded repositories in my Harbor web UI. If I do curl the registry, I can see that the images are properly uploaded :
I tried many things, like downgrading the Harbor version but nothing worked. I am kinda stuck at the moment and cannot use Harbor. Any idea here ?
I noticed these errors in the registry pod:
I also tried to set :
registry.relativeurls
=true
as mentionned in the post #174 but still, same error ofblob unknow to registry