Project

General

Profile

Bug #5460

Repo creation stuck when remote clone returns partial http code 500

Added by Peter Colledge over 1 year ago. Updated over 1 year ago.

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:

  1. 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 getbundle to fail.
  2. Publish the repo with hgweb.
  3. Create new repo in RhodeCode and 'Clone from:' the hgweb url.
  4. Save. Observe stuck UI.
  5. Observe hgweb accesslog returning http code 200 for cmd=lookup, cmd=capabilities, cmd=listkeys, etc, but 500 on cmd=getbundle
  6. Observe backend http exceptions, attached.

Note: Celery feature enabled.

rhodecode-createrepo-bad-getbundle.txt (16.5 KB) rhodecode-createrepo-bad-getbundle.txt rhodecode_celery.log Peter Colledge, 10.04.2018 15:40
rhodecode-createrepo-bad-stream.txt (9.87 KB) rhodecode-createrepo-bad-stream.txt rhodecode_celery.log Peter Colledge, 12.04.2018 10:07

History

#1 Updated by Marcin Kuzminski [staff] over 1 year 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.

#2 Updated by Peter Colledge over 1 year ago

Another exception with same effect, for reference.

RepositoryError: stream ended unexpectedly (got 143318 bytes, expected 179216)

#3 Updated by Marcin Kuzminski [staff] over 1 year 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

Also available in: Atom PDF