Skip to content

Issue Attachments do not migrate on Gitea to Gitea migration #17863

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

Open
themikemayer opened this issue Nov 30, 2021 · 8 comments
Open

Issue Attachments do not migrate on Gitea to Gitea migration #17863

themikemayer opened this issue Nov 30, 2021 · 8 comments
Labels
issue/workaround it is or has a workaround type/bug

Comments

@themikemayer
Copy link

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

@lunny lunny added the type/bug label Dec 1, 2021
@themikemayer
Copy link
Author

@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.

@lunny
Copy link
Member

lunny commented Jan 15, 2022

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

@themikemayer
Copy link
Author

themikemayer commented Apr 27, 2022

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

Any feedback on this issue to be implemented going forward?

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Apr 28, 2022

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 wxiaoguang added the issue/workaround it is or has a workaround label Apr 28, 2022
@6543
Copy link
Member

6543 commented Apr 28, 2022

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

@mattbk
Copy link

mattbk commented Aug 6, 2022

Do attachments migrate from GitLab to Gitea?

@6543
Copy link
Member

6543 commented Aug 9, 2022

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

@wxiaoguang
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/workaround it is or has a workaround type/bug
Projects
None yet
Development

No branches or pull requests

5 participants