Error while branch batch removal

Issue #14915 closed
Michael Manukyan created an issue

I was removing my branches using xargs in two processes (-P2) and I got the following error when I tried to remove some branch:

remote: Traceback (most recent call last):
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
remote:     response = wrapped_callback(request, *callback_args, **callback_kwargs)
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/newrelic/hooks/framework_django.py", line 527, in wrapper
remote:     return wrapped(*args, **kwargs)
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
remote:     return view_func(*args, **kwargs)
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/apps/httphooks/views.py", line 39, in inner
remote:     content = func(request, environ=environ)
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/apps/httphooks/views.py", line 56, in postgithook
remote:     return posthooks.githooks(request, environ)
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/git.py", line 1859, in wrapper
remote:     push = GitPush.fromfile(repo, input_ or sys.stdin)
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/git.py", line 1953, in fromfile
remote:     for ref in repo._repo.listall_reference_objects():
remote: OSError: failed to read descriptor: Stale file handle

Comments (2)

  1. Alastair Wilkes staff

    Hi there,

    Scenarios like these are often the result of edge cases (or repo-specific situations) that are difficult to track down in public issues like this one. The most common and impactful edge cases end up having lots of tickets opened against them which make them easier to resolve, but since we haven’t yet seen that with this issue, please open a support ticket at https://support.atlassian.com/bitbucket-cloud if you are still experiencing issues so we can better understand the specifics.

    Thanks,

    Alastair

  2. Log in to comment