Project

General

Profile

Actions

Bug #5460

open

Repo creation stuck when remote clone returns partial http code 500

Added by Peter Colledge almost 6 years ago. Updated over 5 years 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.


Files

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
Actions #1

Updated by Marcin Kuzminski [CTO] almost 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.

Actions #2

Updated by Peter Colledge almost 6 years ago

Another exception with same effect, for reference.

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

Actions #3

Updated by Marcin Kuzminski [CTO] over 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

Actions

Also available in: Atom PDF