Actions
Bug #5460
openRepo creation stuck when remote clone returns partial http code 500
Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
10.04.2018
Due date:
% Done:
0%
Estimated time:
Sorting:
Commit Number:
Affected Version:
Description
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 causegetbundle
to fail. - Publish the repo with hgweb.
- Create new repo in RhodeCode and 'Clone from:' the hgweb url.
- Save. Observe stuck UI.
- Observe hgweb
accesslog
returning http code 200 forcmd=lookup
,cmd=capabilities
,cmd=listkeys
, etc, but 500 oncmd=getbundle
- Observe backend http exceptions, attached.
Note: Celery feature enabled.
Files
Updated by Marcin Kuzminski [CTO] over 6 years ago
Hi,
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 over 6 years ago
Another exception with same effect, for reference.
RepositoryError: stream ended unexpectedly (got 143318 bytes, expected 179216)
Updated by Marcin Kuzminski [CTO] over 6 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
Actions