Project

General

Profile

Actions

Support #33290

closed

Pulp3::Repository::Sync - Timeout

Added by Leonardo Coelho over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I created a product and added a ubuntu repository:

Upstream URL: http://archive.ubuntu.com/ubuntu/
Releases: bionic
Components: main
Architectures: amd64

and when i try to sync that repository i have this error, if i try to add the another component like "restricted" that have 50 packages I don't have any problem:

{"pulp_tasks"=>
[{"pulp_href"=>"/pulp/api/v3/tasks/01bb89a9-98fa-4cc6-a03a-b2f45973521b/",
"pulp_created"=>"2021-08-16T13:07:00.604+00:00",
"state"=>"failed",
"name"=>"pulp_deb.app.tasks.synchronizing.synchronize",
"logging_cid"=>"1ba2d889-4dcf-4037-859e-e131ac40d33f",
"started_at"=>"2021-08-16T13:07:00.657+00:00",
"finished_at"=>"2021-08-16T13:12:13.715+00:00",
"error"=> {"traceback"=>
" File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/pulpcore_worker.py\", line 266, in _perform_task\n" +
" result = func(*args, **kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 122, in synchronize\n" +
" DebDeclarativeVersion(first_stage, repository, mirror=mirror).create()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 151, in create\n" +
" loop.run_until_complete(pipeline)\n" +
" File \"/usr/lib64/python3.6/asyncio/base_events.py\", line 484, in run_until_complete\n" +
" return future.result()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 225, in create_pipeline\n" +
" await asyncio.gather(*futures)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 43, in call\n" +
" await self.run()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py\", line 181, in run\n" +
" pb.done += task.result() # download_count\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py\", line 207, in _handle_content_unit\n" +
" await asyncio.gather(*downloaders_for_content)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/models.py\", line 89, in download\n" +
" download_result = await downloader.run(extra_data=self.extra_data)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/download/http.py\", line 258, in run\n" +
" return await download_wrapper()\n" +
" File \"/usr/lib/python3.6/site-packages/backoff/_async.py\", line 133, in retry\n" +
" ret = await target(*args, **kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/download/http.py\", line 256, in download_wrapper\n" +
" return await self._run(extra_data=extra_data)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/download/http.py\", line 278, in _run\n" +
" to_return = await self._handle_response(response)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/download/http.py\", line 210, in _handle_response\n" +
" chunk = await response.content.read(1048576) # 1 megabyte\n" +
" File \"/usr/lib64/python3.6/site-packages/aiohttp/streams.py\", line 380, in read\n" +
" await self._wait(\"read\")\n" +
" File \"/usr/lib64/python3.6/site-packages/aiohttp/streams.py\", line 306, in _wait\n" +
" await waiter\n" +
" File \"/usr/lib64/python3.6/site-packages/aiohttp/helpers.py\", line 656, in exit\n" +
" raise asyncio.TimeoutError from None\n",
"description"=>""},
"worker"=>"/pulp/api/v3/workers/ecb8ed8b-440e-4d50-b407-87a2cdba0559/",
"child_tasks"=>[],
"progress_reports"=>
[{"message"=>"Downloading Artifacts",
"code"=>"sync.downloading.artifacts",
"state"=>"failed",
"done"=>216}, {"message"=>"Update ReleaseFile units",
"code"=>"update.release_file",
"state"=>"canceled",
"done"=>1}, {"message"=>"Update PackageIndex units",
"code"=>"update.packageindex",
"state"=>"canceled",
"done"=>4}, {"message"=>"Associating Content",
"code"=>"associating.content",
"state"=>"canceled",
"done"=>56}],
"created_resources"=>[],
"reserved_resources_record"=>
["/pulp/api/v3/repositories/deb/apt/edc17734-2b29-441e-80a4-7cb900d4d620/",
"/pulp/api/v3/remotes/deb/apt/48881daf-e599-44fd-ba46-70767bdb99fa/"]}],
"create_version"=>true,
"task_groups"=>[],
"poll_attempts"=>{"total"=>40, "failed"=>1}}

Actions #1

Updated by Chris Roberts over 2 years ago

  • Tracker changed from Bug to Support
  • Category set to Repositories

Hi Leonardo,

Are you using a proxy in front of your Katello server?

Actions #2

Updated by Leonardo Coelho over 2 years ago

Chris Roberts wrote:

Hi Leonardo,

Are you using a proxy in front of your Katello server?

On this server I'm using proxy to access the ubuntu repository and I have a machine at home with the same issue without any proxy both are using CentOS 8 Stream and Foreman 2.5.2

Actions #3

Updated by Samir Jha over 2 years ago

  • Status changed from New to Closed

Hey Leonardo,

Could you try updating Timeout value in Administer > Settings > Content > Sync Connection timeout to 600 and try again. If that doesn't resolve the issue, please file a pulp issue at: https://pulp.plan.io/projects/pulp_deb.

Actions #4

Updated by Samir Jha over 2 years ago

  • Target version set to Katello Recycle Bin
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF