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

Migration failed, unable to delete broken repository #16154

Closed
2 of 6 tasks
mpeter50 opened this issue Jun 14, 2021 · 4 comments · Fixed by #16197
Closed
2 of 6 tasks

Migration failed, unable to delete broken repository #16154

mpeter50 opened this issue Jun 14, 2021 · 4 comments · Fixed by #16197
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@mpeter50
Copy link
Contributor

mpeter50 commented Jun 14, 2021

  • Gitea version (or commit ref): v1.14.2
  • Git version: 2.30.2
  • Operating system: Docker container built from this repository for linux/arm/v7 architecture with Docker buildx. No customizations done on the sources from which the container was built. The resulting container runs on a Raspberry Pi 4B+.
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Not sure what should I exactly provide, but here are the logs from when I try to open the migrated repository from the repo list of y repos: https://gist.github.com/MPeti1/45637568af8485a6a82dadfed4c98740
The log starts 40 minuteslater than when I set up the debug level logging according to the link provided in the issue template, and then restarted the gitea container. This is because a problem with s6-supervise and time64 on 32 bit systems, that has theoretically been fixed both in the undrlying alpine version, and on the host system's docker and libseccomp2 vesion, but still occurs, and the logs have filled the log buffer that Docker keeps.
The log was obtained by running docker-compose logs -t > logs.txt.

Description

If I migrate a (public) repository from Github by providing an access token and selecting the Wiki to be mirrored too, migration takes a long time (minutes) before failing. The repository, when the migration failed, can't be deleted in the usual way, because on opening it's page it retries the migration, where it will fail again.
Migrating the same repository without giving the access token results in a very fast (<= 5 seconds) and successful migration. By successfull, I mean that the repository looks as any other in it's normal state (screenshot below).
It's yet unknown to me if providing an access token or selecting the Wiki to be mirrored results in the migration to fail, I'll try to check that.

A somewhat (possibly) rare configuration option I made and could be relevant is that I have set up Gitea as an offline instance, which is only to be used in my local network.

Screenshots

The "migration in progress" menu on opening the broken repo:

image

A successful migration of the same repository, if done without access token and Wiki:

image

The error on the migration page, when Gitea recognized that this migration has failed:

Haven't seen that page in a few retries now, but I'll upload a screenshot if I see it again.
image

@mpeter50 mpeter50 changed the title Migration failed, unable to create empty repository Migration failed, unable to delete broken repository Jun 14, 2021
@mpeter50
Copy link
Contributor Author

Reworded the title, it didn't reflect the issue

@zeripath
Copy link
Contributor

I think this is a duplicate.

For the moment add a /settings to the end of the URL and you'll be able to delete the repo.

@mpeter50
Copy link
Contributor Author

Thank you for the tip.

Which issue is similar to this, though? Searched for migration fail, but the issues I've seen weren't similar :/ But also, I haven't checked all the 400 results

@lunny
Copy link
Member

lunny commented Jun 15, 2021

You can delete them from admin panel currently.

@techknowlogick techknowlogick added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Jun 17, 2021
zeripath added a commit to zeripath/gitea that referenced this issue Jun 18, 2021
This PR adds a button to delete failed repositories if there has been a
failure during migration and for whatever reason the repository doesn't
get deleted automatically.

Fix go-gitea#16154

Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 pushed a commit that referenced this issue Jun 30, 2021
…16197)


This PR adds a button to delete failed repositories if there has been a
failure during migration and for whatever reason the repository doesn't
get deleted automatically.

Fix #16154

Signed-off-by: Andrew Thornton <art27@cantab.net>
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this issue Aug 10, 2021
…o-gitea#16197)


This PR adds a button to delete failed repositories if there has been a
failure during migration and for whatever reason the repository doesn't
get deleted automatically.

Fix go-gitea#16154

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants