Comments (10)
I have the same issue. Espically when syncing many images (> 100) from A to B in one replication task.
Harbor
Version v2.5.1-b0506782
from harbor.
Is there any configuration recently?
Could you please try to push/pull image with the same robot and admin account respectively via cli?
from harbor.
@stonezdj
First, thank you for your response.
I checked both image push and pull after logging in as robot and admin, and it worked fine.
Also, of course, test connection when registering harbor registries succeeded without any problem.
from harbor.
We are facing the same issue where the replication intermittently fails either with 401 or 403.
Edit: This is a screenshot from the same replication mechanism at different times:
All of the failures are 403 Unauthorized even though it's the exact same config that goes from 200 to 403 and back to 200
from harbor.
I have the same issue. Espically when syncing many images (> 100) from A to B in one replication task.
Harbor Version v2.5.1-b0506782
I have the same issue with the Harbor version v2.10.2-1a741cb7. I can't replicate all the images from one harbor instance to another.
from harbor.
For us, the solution was to correctly set the max_open_conns
.
The value was simply too high, which was saturating the DB.
The initial requests through the Harbor Auth middleware to fetch and authenticate the robot accounts from the DB were failing and harbor does not seem to stop the flow if the auth fails.
from harbor.
I run into the same issue.
For some reason, it works if I first do a docker push. Then the replication will always work again. As if the repository is not created by replication but by docker push.
@Joseph94m may I ask to what value you set max_open_conns?
from harbor.
We had max_open_conns set to 100 but that was causing lots of issues with the backend database because its max connection was also 100 and at least 3 of these connexion slots are reserved for superusers in the DB.
When we reduced the max_open_conns to ~ 50.
That issue was fixed.
I think any value < 97 should have worked for us.
Try checking the logs of your DB see if any requests get rejected.
from harbor.
Thanks!
In the meanwhile I figured out that it was not the max_open_conns but the fact that I made a typo in the protocol, I used http instead of https for the remote registry. After fixing that it started to work.
Odd that the connection test and pushing deleted images worked, but I guess that would be part of another issue.
from harbor.
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.
from harbor.
Related Issues (20)
- Please, don't deprecate HTTP protocol on the Harbor reverse proxy HOT 1
- 配置mysql8,不生效 HOT 3
- Pull time is not relevant with proxy-cache HOT 1
- Add customizable `look and feel` for portal HOT 2
- The "Proxy Cache" type of project supports access through subdomains without the projectName path.
- OIDC Provider migration - subiss issues
- How to build locally? HOT 3
- JobService `job_stats` have too long a TTL for large "Scan All" with Trivy
- Please improve the Robot Permission UI HOT 1
- How to get harbor logs HOT 3
- [Documentation] demo.goharbor.io: could not create an account HOT 2
- Harbor job service memory used continued growth HOT 3
- Cannot generate SBOM when using external_url and reverse proxy HOT 2
- docker push image to harbor fails with `unauthorized: unauthorized to access repository` HOT 4
- Configure the harbor network at install time HOT 2
- GAR is not working in proxy-cache through mode
- Login to Harbor reports password error HOT 2
- HARBOR configured with MINIO via HTPPS - (HTTP status: 500 Internal Server Error") HOT 3
- Access ID and Secret for replication to another harbor instance HOT 1
- Replication filter - exclude by name/label HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harbor.