Giter Club home page Giter Club logo

Comments (10)

Aslan-Liu avatar Aslan-Liu commented on September 20, 2024 1

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.

stonezdj avatar stonezdj commented on September 20, 2024

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.

derekcha avatar derekcha commented on September 20, 2024

@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.

스크린샷 2024-02-26 오전 11 16 09

from harbor.

Joseph94m avatar Joseph94m commented on September 20, 2024

We are facing the same issue where the replication intermittently fails either with 401 or 403.

image
image

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

image

from harbor.

DeMaBo avatar DeMaBo commented on September 20, 2024

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.

Joseph94m avatar Joseph94m commented on September 20, 2024

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.

dloxterm avatar dloxterm commented on September 20, 2024

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.

Joseph94m avatar Joseph94m commented on September 20, 2024

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.

dloxterm avatar dloxterm commented on September 20, 2024

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.

github-actions avatar github-actions commented on September 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.