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

Publishing a large package fails #21664

Closed
pixelspark opened this issue Nov 2, 2022 · 2 comments · Fixed by #21667
Closed

Publishing a large package fails #21664

pixelspark opened this issue Nov 2, 2022 · 2 comments · Fixed by #21667

Comments

@pixelspark
Copy link

Description

Publishing a fairly large package leads to the following error (Gitea 1.17.2 on MariaDB):

Nov  2 15:26:50 10.0.0.8 git-live_server[738]: 2022/11/02 15:26:50 ...packages/packages.go:159:createPackageAndVersion() [E] [63628c39] Error inserting package: Error 1406: Data too long for column 'metadata_json' at row 1

Changing the type of the column fixes the issue:

ALTER TABLE `package_version` CHANGE `metadata_json` `metadata_json` LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL;

Gitea Version

1.17.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

See above

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea in Docker using MariaDB 0.7.6-MariaDB-1:10.7.6+maria~deb11-log - mariadb.org binary distribution

Database

MySQL

@lunny lunny added this to the 1.17.4 milestone Nov 2, 2022
@KN4CK3R
Copy link
Member

KN4CK3R commented Nov 2, 2022

Out of curiosity, what package creates such a large metadata json? A docker image with a big layer history or lots of labels?

@pixelspark
Copy link
Author

Out of curiosity, what package creates such a large metadata json? A docker image with a big layer history or lots of labels?

In this case: a package with a rather large README.md. This apparently gets included in the metadata JSON!

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants