Actions
Issue #4036
closedaiohttp.client_exceptions.ServerDisconnectedError during sync
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 43
Quarter:
Description
I sync EPEL7 repo:
http POST http://localhost:8000/pulp/api/v3/repositories/ name=epel7
http POST http://localhost:8000/pulp/api/v3/remotes/rpm/ name='epel7' url='https://dl.fedoraproject.org/pub/epel/7/x86_64/'
export REPO_HREF=$(http :8000/pulp/api/v3/repositories/ | jq -r '.results[] | select(.name == "epel7") | ._href')
export REMOTE_HREF=$(http :8000/pulp/api/v3/remotes/rpm/ | jq -r '.results[] | select(.name == "epel7") | ._href')
http POST :8000${REMOTE_HREF}sync/ repository=$REPO_HREF
And I get either this:
Sep 21 07:54:21 pulp3.dev rq[8483]: pulp: rq.worker:ERROR: aiohttp.client_exceptions.ServerDisconnectedError: None
Sep 21 07:54:21 pulp3.dev rq[8483]: Traceback (most recent call last):
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/worker.py", line 793, in perform_job
Sep 21 07:54:21 pulp3.dev rq[8483]: rv = job.perform()
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 599, in perform
Sep 21 07:54:21 pulp3.dev rq[8483]: self._result = self._execute()
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 605, in _execute
Sep 21 07:54:21 pulp3.dev rq[8483]: return self.func(*self.args, **self.kwargs)
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 69, in synchronize
Sep 21 07:54:21 pulp3.dev rq[8483]: loop.run_until_complete(pipeline)
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 468, in run_until_complete
Sep 21 07:54:21 pulp3.dev rq[8483]: return future.result()
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/api.py", line 111, in create_pipeline
Sep 21 07:54:21 pulp3.dev rq[8483]: await asyncio.gather(*futures)
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/artifact_stages.py", line 180, in __call__
Sep 21 07:54:21 pulp3.dev rq[8483]: one_units_downloads = gathered_downloaders.result()
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/backoff/_async.py", line 132, in retry
Sep 21 07:54:21 pulp3.dev rq[8483]: ret = yield from target(*args, **kwargs)
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/http.py", line 169, in run
Sep 21 07:54:21 pulp3.dev rq[8483]: async with self.session.get(self.url) as response:
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/client.py", line 855, in __aenter__
Sep 21 07:54:21 pulp3.dev rq[8483]: self._resp = await self._coro
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/client.py", line 391, in _request
Sep 21 07:54:21 pulp3.dev rq[8483]: await resp.start(conn)
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/client_reqrep.py", line 757, in start
Sep 21 07:54:21 pulp3.dev rq[8483]: message, payload = await self._protocol.read()
Sep 21 07:54:21 pulp3.dev rq[8483]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/streams.py", line 543, in read
Sep 21 07:54:21 pulp3.dev rq[8483]: await self._waiter
Sep 21 07:54:21 pulp3.dev rq[8483]: aiohttp.client_exceptions.ServerDisconnectedError: None
Or that:
Sep 21 08:24:44 pulp3.dev rq[9116]: pulp: backoff:ERROR: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: pulp: backoff:ERROR: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: pulp: backoff:ERROR: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: pulp: backoff:ERROR: Giving up run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable')
Sep 21 08:24:44 pulp3.dev rq[9116]: pulp: rq.worker:ERROR: aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable'
Sep 21 08:24:44 pulp3.dev rq[9116]: Traceback (most recent call last):
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/worker.py", line 793, in perform_job
Sep 21 08:24:44 pulp3.dev rq[9116]: rv = job.perform()
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 599, in perform
Sep 21 08:24:44 pulp3.dev rq[9116]: self._result = self._execute()
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 605, in _execute
Sep 21 08:24:44 pulp3.dev rq[9116]: return self.func(*self.args, **self.kwargs)
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 69, in synchronize
Sep 21 08:24:44 pulp3.dev rq[9116]: loop.run_until_complete(pipeline)
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 468, in run_until_complete
Sep 21 08:24:44 pulp3.dev rq[9116]: return future.result()
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/api.py", line 111, in create_pipeline
Sep 21 08:24:44 pulp3.dev rq[9116]: await asyncio.gather(*futures)
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/artifact_stages.py", line 180, in __call__
Sep 21 08:24:44 pulp3.dev rq[9116]: one_units_downloads = gathered_downloaders.result()
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/backoff/_async.py", line 132, in retry
Sep 21 08:24:44 pulp3.dev rq[9116]: ret = yield from target(*args, **kwargs)
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/http.py", line 170, in run
Sep 21 08:24:44 pulp3.dev rq[9116]: response.raise_for_status()
Sep 21 08:24:44 pulp3.dev rq[9116]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/client_reqrep.py", line 853, in raise_for_status
Sep 21 08:24:44 pulp3.dev rq[9116]: headers=self.headers)
Sep 21 08:24:44 pulp3.dev rq[9116]: aiohttp.client_exceptions.ClientResponseError: 503, message='Service Unavailable'
Files
Related issues
Actions
Retry in case of some 5XX errors
closes #4036 https://pulp.plan.io/issues/4036