Skip to content
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

Debian Package Registry: duplicate key value violates unique constraint "UQE_package_version_s" #30973

Open
mattepica opened this issue May 14, 2024 · 1 comment

Comments

@mattepica
Copy link

Description

When uploading multiple deb for different architectures at the same time (E.G. using GoReleaser HTTP Upload) we get this HTTP error:
http 500 pq: duplicate key value violates unique constraint "UQE_package_version_s

Docker log:

"...packages/packages.go:170:createPackageAndVersion() [E] Error inserting package: pq: duplicate key value violates unique constraint \"UQE_package_version_s\"\n"
"...ges/debian/debian.go:27:apiError() [E] pq: duplicate key value violates unique constraint \"UQE_package_version_s\"\n"
"...eb/routing/logger.go:102:func1() [I] router: completed PUT /api/packages/user/debian/pool/jammy/main/upload for IP, 500 Internal Server Error in 44.7ms @ debian/debian.go:122(debian.UploadPackageFile)\n"
"...eb/routing/logger.go:102:func1() [I] router: completed PUT /api/packages/user/debian/pool/jammy/main/upload for IP, 201 Created in 120.4ms @ debian/debian.go:122(debian.UploadPackageFile)\n"

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Multi-container Docker

Database

PostgreSQL

@KN4CK3R
Copy link
Member

KN4CK3R commented May 14, 2024

Related #30171, #29563, #27640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants