Closed
Description
- Gitea version (or commit ref):
1.11.0+dev-56-g28f60bb5c built with GNU Make 4.2.1, go1.13.3 : bindata, sqlite, sqlite_unlock_notify - Git version: N/A
- Operating system: docker on ubuntu
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
I am attempting to migrate github repositories to gitea. Each migration appears to work, but the repository is inaccessible in the GUI (display an Error 500 page).
$data='{
"auth_username": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"clone_addr": "https://github.com/user/repository",
"private": true,
"mirror": true,
"uid": 3,
"repo_name": "repository",
"auth_password": "",
"description": ""
}'
$ curl -kvs -H 'Content-Type: application/json' -XPOST -d "$data" -H 'Authorization: token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 'http://gitea:3000/api/v1/repos/migrate
{
"id": 19,
"owner": {
"id": 3,
"login": "myuser",
"full_name": "",
"email": "",
"avatar_url": "https://gitea.local/user/avatar/myuser/-1",
"language": "",
"is_admin": false,
"last_login": "1970-01-01T00:00:00Z",
"created": "2019-05-28T01:59:28Z",
"username": "myuser"
},
"name": "repository",
"full_name": "myuser/repository",
"description": "Common Place to put documentation about VISION",
"empty": false,
"private": true,
"fork": false,
"parent": null,
"mirror": true,
"size": 1063,
"html_url": "https://gitea.local/myuser/repository",
"ssh_url": "[email protected]:myuser/repository.git",
"clone_url": "https://gitea.local/myuser/repository.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 1,
"open_issues_count": 0,
"default_branch": "master",
"archived": false,
"created_at": "2019-10-21T04:17:17Z",
"updated_at": "2019-10-21T04:17:21Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": true,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"avatar_url": ""
}
At this point the repository exists, but returns Error 500 when you attempt to browse to it.
I discovered after a while that the following command;
sqlite gitea.db 'update repository set status=0'
would immediately unlock all the repositories, and I could browse and interact with them.
These are NOT large repositories, most between 1 and 25 megabytes.
Am I doing something wrong? Not waiting long enough? Or is something broken?
Thanks
Dave