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

The release is lost after mirror synchronization #27936

Closed
ItsFated opened this issue Nov 6, 2023 · 4 comments
Closed

The release is lost after mirror synchronization #27936

ItsFated opened this issue Nov 6, 2023 · 4 comments

Comments

@ItsFated
Copy link

ItsFated commented Nov 6, 2023

Description

我有一个clash-verge仓库的镜像,然后在镜像中发布了新版本,并上传了附件。
但是在一次同步镜像后,发布的新版本丢失了。同时我的附件也没有在页面中显示,但是文件和数据库中都有。
我得问题是:镜像仓库是否可以发布独立的版本,即便同步后也依然存在?如果不支持,那我该如何删除已经发布的版本,在数据库和附件目录中的产生的文件。

I had a mirror of the clash-verge repository, and then published the new version in the mirror and uploaded the attachment。 but after a synchronous mirror, the new version of the release was lost and my attachment was not displayed in the page but in the file and database
My question is: Can a mirror repository publish a separate version and still exist even after synchronization? If not, how do I delete the released version, the generated files in the database and attachment directory

image
image
image

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.40.1

Operating System

Proxmox 8.0.2

How are you running Gitea?

Run in docker

Database

MySQL/MariaDB

@ItsFated ItsFated changed the title The attachment is lost after mirror synchronization The release is lost after mirror synchronization Nov 6, 2023
@lng2020
Copy link
Member

lng2020 commented Nov 7, 2023

I don't know if a method exists to a mirror repository publish a separate version and still exist even after synchronization.
As for delete the released version, the generated files in the database and attachment directory, gitea admin repo-sync-releases will set all releases identical with pull-mirror upstream.

@lng2020
Copy link
Member

lng2020 commented Nov 7, 2023

duplicate with #22066?

@lng2020 lng2020 added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Nov 7, 2023
@ItsFated
Copy link
Author

ItsFated commented Nov 7, 2023

duplicate with #22066?

Yes, I will close this issue.

I don't know if a method exists to a mirror repository publish a separate version and still exist even after synchronization. As for delete the released version, the generated files in the database and attachment directory, gitea admin repo-sync-releases will set all releases identical with pull-mirror upstream.

Thank you for your reply. I will try to delete release files and database records.

@ItsFated ItsFated closed this as completed Nov 7, 2023
@lng2020 lng2020 removed type/bug issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail labels Nov 7, 2023
@ItsFated
Copy link
Author

ItsFated commented Nov 7, 2023

I deleted files and records in the database and restarted Gitea in Docker, Gitea can still be used normally after restart
image
image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants