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

git-migration of private repo without credentials hangs indefinitely #15230

Closed
2 of 6 tasks
noerw opened this issue Apr 1, 2021 · 1 comment · Fixed by #15902
Closed
2 of 6 tasks

git-migration of private repo without credentials hangs indefinitely #15230

noerw opened this issue Apr 1, 2021 · 1 comment · Fixed by #15902
Labels
topic/repo-migration Migrate repos from other platforms to Gitea, or from Gitea to them type/bug

Comments

@noerw
Copy link
Member

noerw commented Apr 1, 2021

  • Gitea version (or commit ref): master (v1.15.0-dev-50-gf07b137e0)
  • Git version: 2.30.2
  • Operating system: redhat linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist: no errors in the log. :(

Description

Do a migration of type "git", from another gitea instance, where the repo is private. Don't provide credentials.
Starting the migration, the task hangs indefinitely. It can't be killed in the admin dashboard either..
As I can't repro on try.gitea.io, this might be an sqlite race?

Screenshots

grafik

@noerw noerw added type/bug topic/repo-migration Migrate repos from other platforms to Gitea, or from Gitea to them labels Apr 1, 2021
@KN4CK3R
Copy link
Member

KN4CK3R commented Apr 1, 2021

I have/had the same issue while implementing the push mirror in #15157. The reason is the git client which tries to read the credentials from the command line. So it waits until it gets killed. I prevent this situation with the environment variable GIT_TERMINAL_PROMPT=0. Then it just fails with Authentication failed: Clone: exit status 128 - fatal: could not read Username for '...': terminal prompts disabled. The problem is GIT_TERMINAL_PROMPT was introduced with Git 2.3 (released 2015). If there is no other solution we need to set the minimum supported version to Git 2.3 for Gitea.

@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
topic/repo-migration Migrate repos from other platforms to Gitea, or from Gitea to them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants