Skip to content

Publishing a large package fails #21664

Closed
@pixelspark

Description

@pixelspark

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions