-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Unadopted Repositories - Adopt Files results in 500 Internal Server Error #18390
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
Comments
What's your Dev console say (hit |
It says the below error:
POST https://git.innowise.us/admin/repos/unadopted 500 (Internal Server Error)

|
It didn't include any useful information to help to resolve the problem. |
This is the error received in the front end:
createDelegateHooks: openRepository: exit status 128 - fatal: not a git repository (or any of the parent directories): .git
|
Is that repository name contains capital letters? I cannot reproduce it locally. |
You have not provided us with the correct logs. The logs you keep giving us are router logs. The issue proforma kindly asks you to read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems in order that you can easily set up debug logging to give us the logs most easily. Why haven't you read this? However, the error received in the "front-end" may actually be enough to diagnose what's going on:
This is failing here: gitea/services/repository/adopt.go Lines 126 to 128 in 54e9ee3
This means one of several things:
In either case the situation is not resolvable by Gitea. By attempting to adopt a path as a repository you have promised to Gitea that that path is a repository like Gitea's own repositories. It is clear that the path you're trying to adopt is not. This path must be a bare repository owned by the Gitea user and read-writeable completely by the Gitea user. It should ideally be an old repository that a gitea created. Examine the "repository" on disk yourself and if you're certain that it does represent a bare git repository you could: a) rediscuss here b) move it to another place and repush it up to Gitea. As this is an administrator only feature - we have left error handling somewhat unfriendly - the point being you as the administrator are supposed to be able to look in to your own logs and are supposed to know if the path you're trying to adopt is or is not a repository. But please in future read the issue proforma - wasting our time not giving us the logs when we have written clear instructions on how to get them is not on. |
@zeripath my sincerest apologies! It's a massive application. I am indeed at fault not to go through every possible diagnosis before raising an issue. |
Gitea Version
1.15.9
Git Version
2.31.1
Operating System
Ubuntu 18.04.5 LTS
How are you running Gitea?
used one of gitea downloads, Installation from binary
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
No response
Screenshots
The text was updated successfully, but these errors were encountered: