Occasional test failure in TestGitFrontendFunctional.test_clone_and_push

Bug #1641100 reported by Colin Watson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
turnip
Fix Released
Critical
Colin Watson

Bug Description

https://jenkins.ols.canonical.com/online-services/job/turnip/8/console failed on an unrelated change as follows:

ERROR: test_clone_and_push (pack.tests.test_functional.TestGitFrontendFunctional)
pack.tests.test_functional.TestGitFrontendFunctional.test_clone_and_push
----------------------------------------------------------------------
_StringException: logged-error: {{{
Traceback (most recent call last):
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 268, in readConnectionLost
    p.readConnectionLost()
  File "turnip/pack/git.py", line 385, in readConnectionLost
    self.peer.transport.loseWriteConnection()
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 413, in loseWriteConnection
    self.startWriting()
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 442, in startWriting
    self.reactor.addWriter(self)
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 288, in addWriter
    EPOLLOUT, EPOLLIN)
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 257, in _add
    self._poller.register(fd, flags)
ValueError: file descriptor cannot be a negative integer (-1)
}}}

logged-error-1: {{{
Traceback (most recent call last):
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 268, in readConnectionLost
    p.readConnectionLost()
  File "turnip/pack/git.py", line 385, in readConnectionLost
    self.peer.transport.loseWriteConnection()
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 413, in loseWriteConnection
    self.startWriting()
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 442, in startWriting
    self.reactor.addWriter(self)
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 288, in addWriter
    EPOLLOUT, EPOLLIN)
  File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 257, in _add
    self._poller.register(fd, flags)
ValueError: file descriptor cannot be a negative integer (-1)
}}}

twisted-log: {{{
2016-11-11 11:37:58+0000 [-] Site starting on 34304
2016-11-11 11:37:58+0000 [-] Starting factory <twisted.web.server.Site instance at 0x2b94bc84fc20>
2016-11-11 11:37:58+0000 [-] Site starting on 35874
2016-11-11 11:37:58+0000 [-] Starting factory <twisted.web.server.Site instance at 0x2b94bc857098>
2016-11-11 11:37:58+0000 [-] HookRPCServerFactory starting on '/tmp/turnip-test-hook-XMtYPj/hookrpc_sock'
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.hookrpc.HookRPCServerFactory instance at 0x2b94bc8571b8>
2016-11-11 11:37:58+0000 [-] PackBackendFactory starting on 40359
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.git.PackBackendFactory instance at 0x2b94bc857200>
2016-11-11 11:37:58+0000 [-] PackVirtFactory starting on 51535
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.git.PackVirtFactory instance at 0x2b94bc84f710>
2016-11-11 11:37:58+0000 [-] PackFrontendFactory starting on 57975
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.git.PackFrontendFactory instance at 0x2b94bc84f3f8>
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackFrontendServerProtocol] Request received: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975'}
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc84a098>
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackFrontendServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 51535).
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackFrontendServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 34590) -> IPv4Address(TCP, '127.0.0.1', 51535)
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackFrontendServerProtocol] Forwarding request to backend: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '82bd38cb-1231-4fc2-867d-164c94c17a39'}
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Request received: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '82bd38cb-1231-4fc2-867d-164c94c17a39'}
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Translating request.
2016-11-11 11:37:58+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc836cf8>
2016-11-11 11:37:58+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 261 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Translation result: {'path': 'b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c'}
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc857560>
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 40359).
2016-11-11 11:37:58+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc836cf8>
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 56525) -> IPv4Address(TCP, '127.0.0.1', 40359)
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Forwarding request to backend: 'git-upload-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '82bd38cb-1231-4fc2-867d-164c94c17a39'}
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackBackendProtocol] Request received: 'git-upload-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '82bd38cb-1231-4fc2-867d-164c94c17a39'}
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackBackendProtocol] Spawning ['git', 'upload-pack', u'/tmp/turnip-test-root-fWDiEH/b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c']
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackBackendProtocol] Connection closed.
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Backend connection closed.
2016-11-11 11:37:58+0000 [-] Stopping factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc857560>
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackVirtServerProtocol] Connection closed.
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackFrontendServerProtocol] Backend connection closed.
2016-11-11 11:37:58+0000 [-] Stopping factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc84a098>
2016-11-11 11:37:58+0000 [-] [request-id=82bd38cb-1231-4fc2-867d-164c94c17a39] [PackFrontendServerProtocol] Connection closed.
2016-11-11 11:37:58+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackFrontendServerProtocol] Request received: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975'}
2016-11-11 11:37:58+0000 [-] Starting factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc869170>
2016-11-11 11:37:58+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackFrontendServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 51535).
2016-11-11 11:37:58+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackFrontendServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 34594) -> IPv4Address(TCP, '127.0.0.1', 51535)
2016-11-11 11:37:58+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackFrontendServerProtocol] Forwarding request to backend: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '3667a677-3250-45ae-9719-02960cb648f4'}
2016-11-11 11:37:58+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Request received: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '3667a677-3250-45ae-9719-02960cb648f4'}
2016-11-11 11:37:58+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Translating request.
2016-11-11 11:37:58+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc869488>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 261 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Translation result: {'path': 'b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc869830>
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 40359).
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc869488>
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 56529) -> IPv4Address(TCP, '127.0.0.1', 40359)
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Forwarding request to backend: 'git-receive-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '3667a677-3250-45ae-9719-02960cb648f4'}
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackBackendProtocol] Request received: 'git-receive-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '3667a677-3250-45ae-9719-02960cb648f4'}
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackBackendProtocol] Spawning ['git', 'receive-pack', u'/tmp/turnip-test-root-fWDiEH/b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c']
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackBackendProtocol] git wrote to stderr: 'fatal: The remote end hung up unexpectedly\n'
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackBackendProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc869830>
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackVirtServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackFrontendServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc869170>
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackFrontendServerProtocol] Request received: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc869bd8>
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackFrontendServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 51535).
2016-11-11 11:37:59+0000 [-] [request-id=3667a677-3250-45ae-9719-02960cb648f4] [PackFrontendServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackFrontendServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 34598) -> IPv4Address(TCP, '127.0.0.1', 51535)
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackFrontendServerProtocol] Forwarding request to backend: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': 'dbc44169-24dd-4c1a-9076-be39fdebd088'}
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Request received: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': 'dbc44169-24dd-4c1a-9076-be39fdebd088'}
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Translating request.
2016-11-11 11:37:59+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc86f2d8>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 261 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Translation result: {'path': 'b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc8693b0>
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 40359).
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc86f2d8>
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 56533) -> IPv4Address(TCP, '127.0.0.1', 40359)
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Forwarding request to backend: 'git-receive-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': 'dbc44169-24dd-4c1a-9076-be39fdebd088'}
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackBackendProtocol] Request received: 'git-receive-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': 'dbc44169-24dd-4c1a-9076-be39fdebd088'}
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackBackendProtocol] Spawning ['git', 'receive-pack', u'/tmp/turnip-test-root-fWDiEH/b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c']
2016-11-11 11:37:59+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc86f3f8>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 114 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc86f3f8>
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackBackendProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc8693b0>
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackVirtServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackFrontendServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc869bd8>
2016-11-11 11:37:59+0000 [PackFrontendServerProtocol,2,127.0.0.1] Unhandled Error
 Traceback (most recent call last):
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
     return func(*args,**kw)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 610, in _doReadOrWrite
     self._disconnectSelectable(selectable, why, inRead)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 252, in _disconnectSelectable
     selectable.readConnectionLost(f)
 --- <exception caught here> ---
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 268, in readConnectionLost
     p.readConnectionLost()
   File "turnip/pack/git.py", line 385, in readConnectionLost
     self.peer.transport.loseWriteConnection()
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 413, in loseWriteConnection
     self.startWriting()
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 442, in startWriting
     self.reactor.addWriter(self)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 288, in addWriter
     EPOLLOUT, EPOLLIN)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 257, in _add
     self._poller.register(fd, flags)
 exceptions.ValueError: file descriptor cannot be a negative integer (-1)

2016-11-11 11:37:59+0000 [-] [request-id=dbc44169-24dd-4c1a-9076-be39fdebd088] [PackFrontendServerProtocol] Connection lost.
 Traceback (most recent call last):
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
     return func(*args,**kw)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 610, in _doReadOrWrite
     self._disconnectSelectable(selectable, why, inRead)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 252, in _disconnectSelectable
     selectable.readConnectionLost(f)
 --- <exception caught here> ---
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 268, in readConnectionLost
     p.readConnectionLost()
   File "turnip/pack/git.py", line 385, in readConnectionLost
     self.peer.transport.loseWriteConnection()
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 413, in loseWriteConnection
     self.startWriting()
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/abstract.py", line 442, in startWriting
     self.reactor.addWriter(self)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 288, in addWriter
     EPOLLOUT, EPOLLIN)
   File "/tmp/tmp7rDm3v/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 257, in _add
     self._poller.register(fd, flags)
 exceptions.ValueError: file descriptor cannot be a negative integer (-1)

2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackFrontendServerProtocol] Request received: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bccf9128>
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackFrontendServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 51535).
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackFrontendServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 34604) -> IPv4Address(TCP, '127.0.0.1', 51535)
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackFrontendServerProtocol] Forwarding request to backend: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '47b3f46e-4de3-411d-97df-5aa95c00a107'}
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Request received: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '47b3f46e-4de3-411d-97df-5aa95c00a107'}
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Translating request.
2016-11-11 11:37:59+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bccf9518>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 261 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Translation result: {'path': 'b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackClientFactory instance at 0x2b94bccf9830>
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 40359).
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bccf9518>
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 56539) -> IPv4Address(TCP, '127.0.0.1', 40359)
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Forwarding request to backend: 'git-upload-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '47b3f46e-4de3-411d-97df-5aa95c00a107'}
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackBackendProtocol] Request received: 'git-upload-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '47b3f46e-4de3-411d-97df-5aa95c00a107'}
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackBackendProtocol] Spawning ['git', 'upload-pack', u'/tmp/turnip-test-root-fWDiEH/b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c']
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackBackendProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackClientFactory instance at 0x2b94bccf9830>
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackVirtServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackFrontendServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bccf9128>
2016-11-11 11:37:59+0000 [-] [request-id=47b3f46e-4de3-411d-97df-5aa95c00a107] [PackFrontendServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackFrontendServerProtocol] Request received: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bcd011b8>
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackFrontendServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 51535).
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackFrontendServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 34608) -> IPv4Address(TCP, '127.0.0.1', 51535)
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackFrontendServerProtocol] Forwarding request to backend: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '33ceee5d-112f-4082-aed5-a58fc0be3794'}
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Request received: 'git-receive-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '33ceee5d-112f-4082-aed5-a58fc0be3794'}
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Translating request.
2016-11-11 11:37:59+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bcd01518>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 261 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Translation result: {'path': 'b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc749fc8>
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 40359).
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bcd01518>
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 56543) -> IPv4Address(TCP, '127.0.0.1', 40359)
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Forwarding request to backend: 'git-receive-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '33ceee5d-112f-4082-aed5-a58fc0be3794'}
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackBackendProtocol] Request received: 'git-receive-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '33ceee5d-112f-4082-aed5-a58fc0be3794'}
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackBackendProtocol] Spawning ['git', 'receive-pack', u'/tmp/turnip-test-root-fWDiEH/b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c']
2016-11-11 11:37:59+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc82d050>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 114 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bc82d050>
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackBackendProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackClientFactory instance at 0x2b94bc749fc8>
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackVirtServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackFrontendServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bcd011b8>
2016-11-11 11:37:59+0000 [-] [request-id=33ceee5d-112f-4082-aed5-a58fc0be3794] [PackFrontendServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackFrontendServerProtocol] Request received: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc869518>
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackFrontendServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 51535).
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackFrontendServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 34613) -> IPv4Address(TCP, '127.0.0.1', 51535)
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackFrontendServerProtocol] Forwarding request to backend: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '8f0267c1-1a5e-41d1-b1c3-985e174bf2fe'}
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Request received: 'git-upload-pack /+rw/test', params={'host': 'localhost:57975', 'turnip-request-id': '8f0267c1-1a5e-41d1-b1c3-985e174bf2fe'}
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Translating request.
2016-11-11 11:37:59+0000 [-] Starting factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bcd01050>
2016-11-11 11:37:59+0000 [-] "127.0.0.1" - - [11/Nov/2016:11:37:58 +0000] "POST / HTTP/1.0" 200 261 "-" "Twisted/XMLRPClib"
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Translation result: {'path': 'b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c'}
2016-11-11 11:37:59+0000 [-] Starting factory <turnip.pack.git.PackClientFactory instance at 0x2b94bcd01950>
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Connecting to backend: IPv4Address(TCP, 'localhost', 40359).
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.xmlrpc._QueryFactory instance at 0x2b94bcd01050>
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Backend connection established: IPv4Address(TCP, '127.0.0.1', 56548) -> IPv4Address(TCP, '127.0.0.1', 40359)
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Forwarding request to backend: 'git-upload-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '8f0267c1-1a5e-41d1-b1c3-985e174bf2fe'}
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackBackendProtocol] Request received: 'git-upload-pack b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c', params={'host': 'localhost:57975', 'turnip-request-id': '8f0267c1-1a5e-41d1-b1c3-985e174bf2fe'}
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackBackendProtocol] Spawning ['git', 'upload-pack', u'/tmp/turnip-test-root-fWDiEH/b306d9ff847c120dd7eb00fcebe5f118b9875b09db67ad8f0834aea7a0d8cb8c']
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackBackendProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackClientFactory instance at 0x2b94bcd01950>
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackVirtServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackFrontendServerProtocol] Backend connection closed.
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackFrontendClientFactory instance at 0x2b94bc869518>
2016-11-11 11:37:59+0000 [-] [request-id=8f0267c1-1a5e-41d1-b1c3-985e174bf2fe] [PackFrontendServerProtocol] Connection closed.
2016-11-11 11:37:59+0000 [-] (TCP Port 51535 Closed)
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackVirtFactory instance at 0x2b94bc84f710>
2016-11-11 11:37:59+0000 [-] (TCP Port 34304 Closed)
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.server.Site instance at 0x2b94bc84fc20>
2016-11-11 11:37:59+0000 [-] (TCP Port 57975 Closed)
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackFrontendFactory instance at 0x2b94bc84f3f8>
2016-11-11 11:37:59+0000 [-] (TCP Port 40359 Closed)
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.git.PackBackendFactory instance at 0x2b94bc857200>
2016-11-11 11:37:59+0000 [-] (UNIX Port /tmp/turnip-test-hook-XMtYPj/hookrpc_sock Closed)
2016-11-11 11:37:59+0000 [-] Stopping factory <turnip.pack.hookrpc.HookRPCServerFactory instance at 0x2b94bc8571b8>
2016-11-11 11:37:59+0000 [-] (TCP Port 35874 Closed)
2016-11-11 11:37:59+0000 [-] Stopping factory <twisted.web.server.Site instance at 0x2b94bc857098>
2016-11-11 11:37:59+0000 [-] Main loop terminated.
}}}

Related branches

Colin Watson (cjwatson)
Changed in turnip:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in turnip:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in turnip:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.