#9835 Project fork on src.fedoraproject.org is inaccessible
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by dpward.

I have a fork of the 'kernel' dist-git repository at:
https://src.fedoraproject.org/fork/dpward/rpms/kernel

However, when I try to access it through the web interface (logged in), I get this:

Fatal Error (500)
A fatal error has occurred, we're sorry :(

But I can access other forks I created without any problem.


So then I tried using the REST interface to delete the fork. This return an unusual error that my API token is invalid:

$ curl -X POST -H "Authorization: token <...>" https://src.fedoraproject.org/api/0/fork/dpward/rpms/kernel/delete
{
  "error": "Invalid or expired token. Please visit https://src.fedoraproject.org/settings#nav-api-tab to get or renew your API token.", 
  "error_code": "EINVALIDTOK"
}

But the token is valid, and I can use it to do other things:

$ curl -X POST -H "Authorization: token <...>" https://src.fedoraproject.org/api/0/-/whoami
{
  "username": "dpward"
}
$ curl -X POST -H "Authorization: token <...>" -H "Content-Type: application/json" -d '{"repo":"node-gyp","namespace":"rpms"}' https://src.fedoraproject.org/api/0/fork 
{
  "message": "Repo \"rpms/node-gyp\" cloned to \"dpward/rpms/node-gyp\""
}

After looking more closely, this seems to be affecting all forks of 'kernel' that were created at least 2 months ago. There is a fork that is 1 month old that is not affected. However this is even preventing me from deleting my existing fork, and then creating a new one.


The timing coincides with when the 'master' branch was renamed to 'rawhide':
https://fedoraproject.org/wiki/Changes/GitRepos-master-to-main

I suspect this change may have overlooked necessary actions to handle existing forks.

So the error for this fork is: _pygit2.GitError: corrupted packed references file

I'll go dig in

Issue status updated to: Open (was: Closed)

3 years ago

I've copied over the packed-refs file from the main kernel git repo and that seems to have fixed it.

Sorry for the issue.

Let us know if you have any more problem!

Metadata Update from @pingou:
- Issue assigned to pingou
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)
- Issue tagged with: low-gain, medium-gain, ops

3 years ago

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Done