gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Issue Attachments do not migrate on Gitea to Gitea migration

Open themikemayer opened this issue 4 years ago • 6 comments

Gitea Version

1.15.6 built with GNU Make 4.1, go1.16.9

Git Version

2.33.1.windows.1

Operating System

Windows Server 2022

How are you running Gitea?

Windows Service

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

We have the issue of attachments not being migrated from 1 Gitea repository (1.15.6) to Gitea (1.15.6).

Looking into the go code, it appears there is no such code implemented to carry attachments over. That should be verified.

Screenshots

Failed migration on try.gitea.io: image

Images as they appear after the migration: image

themikemayer avatar Nov 30 '21 13:11 themikemayer

@lunny Hey, thanks for classifying the issue. Is there any comment on this? We are still migrating from an "old" Gitea server to a "new" one and missing all the attachements.

themikemayer avatar Jan 14 '22 13:01 themikemayer

This is a missed feature when migrating from Gitea to Gitea.

lunny avatar Jan 15 '22 06:01 lunny

This is a missed feature when migrating from Gitea to Gitea.

Any feedback on this issue to be implemented going forward?

themikemayer avatar Apr 27 '22 18:04 themikemayer

There is a workaround, you could just copy all data from old server to new. The migration is not an accurate 1-to-1 copy, it might lose something.

wxiaoguang avatar Apr 28 '22 03:04 wxiaoguang

#14601 is the first step in this direction ...

6543 avatar Apr 28 '22 03:04 6543

Do attachments migrate from GitLab to Gitea?

mattbk avatar Aug 06 '22 04:08 mattbk

they should but that's unrelated question ... I would suggest to use the chat for such

6543 avatar Aug 09 '22 03:08 6543

I have done my migration from GitLab to Gitea (1.15~1.16), the attachments were not migrated.

There could be a manual workaround method: copy the attachments from GitLab to a directory, and serve them correctly by a HTTP server like nginx.

wxiaoguang avatar Aug 09 '22 03:08 wxiaoguang