-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Harbor-core failing to push images #15401
Comments
can you share the configuration of postgresql? @heww it seems that the DB connection exceends the limit. |
It's running in Aurora postgres and has a connection limit of 2400. Looking at the logs over the last 7 days, db connections never exceeded 100. |
Hello,
|
Hi @hew and @wy65701436 we upgraded to 2.3.1 but we're still seeing the issue. Last night we got:
|
Hey all, we're actually seeing this... which seems to start the issue:
|
According to the log of the harbor 2.3.1, looks like that there is a network issue between the harbor core and db, please check your network. |
what log is this? Is it the infrastructure that Harbor is running on? |
This problem should be caused by the settings on the pg side, whether your pg is a single instance or has other components such as pg-pool, etc. You can refer to this issue: #14943. You can also enter the pg container or use the netstat -natl command on the host to view the current pg connection queue |
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. |
Hello,
After a few days, apps can no longer pull images from Harbor version 2.2.1. The apps see the following in the logs:
Failed to pull image rpc error: code = Unknown desc = failed to pull and unpack image failed to resolve reference failed to authorize: failed to fetch anonymous token: unexpected status: 500 Internal Server Error
In harbor-core, we see the following:
2021-08-09T13:32:30Z [ERROR] [/lib/orm/orm.go:72]: begin transaction failed: write tcp 100.96.28.147:59496->10.144.60.29:5432: write: connection reset by peer 2021-08-09T13:32:30Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"unknown: deal with /service/token request in transaction failed: write tcp 100.96.28.147:59496-\u003e10.144.60.29:5432: write: connection reset by peer"}]} 2021-08-09T13:33:01Z [ERROR] [/lib/orm/orm.go:72]: begin transaction failed: write tcp 100.96.28.147:59496->10.144.60.29:5432: write: connection reset by peer 2021-08-09T13:33:01Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"unknown: deal with /service/token request in transaction failed: write tcp 100.96.28.147:59496-\u003e10.144.60.29:5432: write: connection reset by peer"}]} 2021-08-09T13:33:23Z [ERROR] [/lib/orm/orm.go:72]: begin transaction failed: write tcp 100.96.28.147:59496->10.144.60.29:5432: write: connection reset by peer 2021-08-09T13:33:23Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"unknown: deal with /service/token request in transaction failed: write tcp 100.96.28.147:59496-\u003e10.144.60.29:5432: write: connection reset by peer"}]} 2021-08-09T13:33:51Z [ERROR] [/lib/orm/orm.go:72]: begin transaction failed: write tcp 100.96.28.147:59496->10.144.60.29:5432: write: connection reset by peer 2021-08-09T13:33:51Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"unknown: deal with /service/token request in transaction failed: write tcp 100.96.28.147:59496-\u003e10.144.60.29:5432: write: connection reset by peer"}]} 2021-08-09T13:34:03Z [ERROR] [/lib/orm/orm.go:72]: begin transaction failed: write tcp 100.96.28.147:59496->10.144.60.29:5432: write: connection reset by peer 2021-08-09T13:34:03Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"unknown: deal with /service/token request in transaction failed: write tcp 100.96.28.147:59496-\u003e10.144.60.29:5432: write: connection reset by peer"}]} 2021-08-09T13:34:40Z [ERROR] [/lib/orm/orm.go:72]: begin transaction failed: write tcp 100.96.28.147:59496->10.144.60.29:5432: write: connection reset by peer 2021-08-09T13:34:40Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"unknown: deal with /service/token request in transaction failed: write tcp 100.96.28.147:59496-\u003e10.144.60.29:5432: write: connection reset by peer"}]}
The only resolution is to restart harbor-core, but this causes outages in production when pods are scaled in.
The text was updated successfully, but these errors were encountered: