Repo creation stuck when remote clone returns partial http code 500
UI stuck on 'Creating repository myrepo Repository "myrepo" is being created, you will be redirected when this process is finished.'
Steps to reproduce:
- Create a hg repo with open permissions except one file, eg.
.hg/store/data/foo.txt, which hgweb service does not have access to. This will cause
- Publish the repo with hgweb.
- Create new repo in RhodeCode and 'Clone from:' the hgweb url.
- Save. Observe stuck UI.
- Observe hgweb
accesslogreturning http code 200 for
cmd=listkeys, etc, but 500 on
- Observe backend http exceptions, attached.
Note: Celery feature enabled.
Updated by Marcin Kuzminski [CTO] about 5 years ago
Thanks for reporting this. We don't have any timeouts on this process so it waits until a flag is changed finishing the process. It's due to fact that remote import can take multiple hours.
we'll try to check if it's possible to catch such errors and set the flag as failed.
Updated by Peter Colledge about 5 years ago
Another exception with same effect, for reference.
RepositoryError: stream ended unexpectedly (got 143318 bytes, expected 179216)
Updated by Marcin Kuzminski [CTO] almost 5 years ago
we're struggling with catch those exceptions in HG, i guess this should be handled by end users, and delete re-create a repo