when cleaning up, shutil.rmtree sometimes raises OSError: [Errno 11] Resource temporarily unavailable #1562

Closed
fungi opened this Issue Feb 11, 2014 · 1 comment

Projects

None yet

2 participants

@fungi
Contributor
fungi commented Feb 11, 2014

Seen in an automated job under the PyPy interpreter, though their shutil implementation is supposedly identical to CPython's...

[...]
 Successfully installed pbr launchpadlib hacking coverage discover fixtures python-subunit sphinx oslo.sphinx testrepository testscenarios testtools pip httplib2 keyring lazr.restfulclient lazr.uri oauth setuptools simplejson testresources wadllib pep8 pyflakes flake8 six extras Pygments docutils Jinja2 python-mimeparse lazr.authentication wsgi-intercept mccabe markupsafe zope.interface
 Cleaning up...
   Exception:
 Traceback (most recent call last):
   File "/home/jenkins/workspace/gate-release-tools-pypy/.tox/pypy/site-packages/pip/basecommand.py", line 134, in main
     e = sys.exc_info()[1]
   File "/home/jenkins/workspace/gate-release-tools-pypy/.tox/pypy/site-packages/pip/commands/install.py", line 259, in run
     requirement_set.add_requirement(req)
   File "/home/jenkins/workspace/gate-release-tools-pypy/.tox/pypy/site-packages/pip/req.py", line 1209, in cleanup_files
     subreq = InstallRequirement(str(subreq),
   File "/home/jenkins/workspace/gate-release-tools-pypy/.tox/pypy/site-packages/pip/util.py", line 42, in rmtree
     shutil.rmtree(dir, ignore_errors=ignore_errors,
   File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 245, in rmtree
     rmtree(fullname, ignore_errors, onerror)
   File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 245, in rmtree
     rmtree(fullname, ignore_errors, onerror)
   File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 245, in rmtree
     rmtree(fullname, ignore_errors, onerror)
   File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 237, in rmtree
     onerror(os.listdir, path, sys.exc_info())
   File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 235, in rmtree
     names = os.listdir(path)
 OSError: [Errno 11] Resource temporarily unavailable: '/home/jenkins/workspace/gate-release-tools-pypy/.tox/pypy/build/launchpadlib/src/launchpadlib'
[...]
@dstufft dstufft modified the milestone: 1.5.3 Feb 16, 2014
@dstufft dstufft added this to the 1.6 milestone May 10, 2014
@dstufft
Member
dstufft commented Nov 20, 2014

I'm going to go ahead and close this. I can't seem to reproduce it. If you can reproduce it and can give steps just comment back or open a new ticket with steps.

@dstufft dstufft closed this Nov 20, 2014
@dstufft dstufft removed this from the 6.0 milestone Nov 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment