Filesystem (most comfortable way for me)
If I try to migrate a project from my Gitlab using path “/data/gitlab/repositories/wj/cddr.git” I get the error in the log:
modules/task/task.go:54:handle() [E] Run task failed: parse “://”: missing protocol scheme
If I try to migrate a project from my Gitlab using path “file:///data/gitlab/repositories/wj/cddr.git” I get the error in the log:
modules/task/task.go:54:handle() [E] Run task failed: Get “file://data/gitlab/repositories/api/v4/version”: unsupported protocol scheme “file”
HTTP:
Requested path: http://172.16.0.30:9140/root/test.git
Error in the log:
modules/task/task.go:54:handle() [E] Run task failed: GET http://172.16.0.30:9140/api/v4/projects/root/test: 404 {message: 404 Project Not Found}
Why gitea add “api/v4/projects” to the path?
I launched gitea via docker. In app.ini I added IMPORT_LOCAL_PATHS
as true.
UPD: For HTTP I found the issue #13269
on the Github page of Gitea.
UPD: Today I updated docker image from 1.5.2 to 1.5.3. And now when I migrate a project a project exists but when I try open a project in web browser Gitea returns 500 error. Log:
2021/09/22 08:09:44 …ers/web/repo/view.go:623:Home() [E] models.GetMigratingTask: task is not exist [id: 0, repo_id: 77, type: 0]