Custom Remote file type repository failing to sync on Red Hat Satellite 6

Solution Verified - Updated -

Issue

  • Red Hat repositories are syncing with no error but newly created a custom File Type repository is failing.
  • Remote File Type Repository sync for a custom product fails with the error given below:
    Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512) Traceback (most recent call last):
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)     R = retval = fun(*args, **kwargs)
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 688, in __call__
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)     return super(Task, self).__call__(*args, **kwargs)
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 110, in __call__
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)     return super(PulpTask, self).__call__(*args, **kwargs)
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)     return self.run(*args, **kwargs)
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 860, in sync
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512)     raise pulp_exceptions.PulpExecutionException(_('Importer indicated a failed response'))
Oct 15 09:30:02 satellite pulp: celery.app.trace:ERROR: [a784d715] (4932-28512) PulpExecutionException: Importer indicated a failed response
[root@ktordeur-satellite-latest ~]# hammer repository info --id 284
Id:                 284
Name:               File Example
Label:              File_Example
Description:        
Organization:       Default Organization
Red Hat Repository: no
Content Type:       file
Mirroring Policy:   Content Only
Url:                https://download.repo.com/app/example_download?edition_id=Example2-ASN&license_key=DVjutUBGGf5edbRv&suffix=tar.gz/
Publish Via HTTP:   yes
Published At:       https://ktordeur-satellite-latest.sysmgmt.lan/pulp/content/Default_Organization/Library/custom/Repo/File_Example/
Relative Path:      Default_Organization/Library/custom/Repo/File_Example
Download Policy:    
HTTP Proxy:         
    HTTP Proxy Policy: global_default_http_proxy
Product:            
    Id:   647
    Name: FileExample
GPG Key:            

Sync:               
    Status:         Warning
    Last Sync Date: 4 minutes
Created:            2022/11/23 11:42:28
Updated:            2022/11/23 11:42:31
Content Counts:     
    Files: 0


---
pulp_tasks:
- pulp_href: "/pulp/api/v3/tasks/440f53e2-592a-458d-bc7c-a3cf64324a4f/"
  pulp_created: '2022-11-23T11:42:41.624+00:00'
  state: failed
  name: pulp_file.app.tasks.synchronizing.synchronize
  logging_cid: 05b1cb11-0ebf-496b-aeb9-94f499127ddf
  started_at: '2022-11-23T11:42:41.701+00:00'
  finished_at: '2022-11-23T11:47:09.220+00:00'
  error:
    traceback: !ruby/string:Sequel::SQL::Blob |2
        File "/usr/lib/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", line 380, in _perform_task
          result = func(*args, **kwargs)
        File "/usr/lib/python3.8/site-packages/pulp_file/app/tasks/synchronizing.py", line 51, in synchronize
          rv = dv.create()
        File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create
          loop.run_until_complete(pipeline)
        File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
          return future.result()
        File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
          await asyncio.gather(*futures)
        File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py", line 43, in __call__
          await self.run()
        File "/usr/lib/python3.8/site-packages/pulp_file/app/tasks/synchronizing.py", line 102, in run
          result = await downloader.run()
        File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 273, in run
          return await download_wrapper()
        File "/usr/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry
          ret = await target(*args, **kwargs)
        File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 258, in download_wrapper
          return await self._run(extra_data=extra_data)
        File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 294, in _run
          self.raise_for_status(response)
        File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 191, in raise_for_status
          response.raise_for_status()
        File "/usr/lib64/python3.8/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
          raise ClientResponseError(
    description: 400, message='Bad Request', url=URL('https://download.repo.com/app/example_download?edition_id=example2-ASN&license_key=DVjutUBGGf5edbRv&suffix=tar.gz//PULP_MANIFEST')
  worker: "/pulp/api/v3/workers/49ad2e43-39cd-43fd-a3c7-21dbd3f0df40/"
  child_tasks: []
  progress_reports:
  - message: Downloading Metadata
    code: sync.downloading.metadata
    state: failed
    done: 0
  - message: Downloading Artifacts
    code: sync.downloading.artifacts
    state: canceled
    done: 0
  - message: Associating Content
    code: associating.content
    state: canceled
    done: 0
  created_resources: []
  reserved_resources_record:
  - "/pulp/api/v3/repositories/file/file/33a903fa-b0fa-4a81-a383-787f807bc9b7/"
  - shared:/pulp/api/v3/remotes/file/file/26a93a78-e991-43f4-94cc-c4e3212bd473/
create_version: true
task_groups: []
poll_attempts:
  total: 37
  failed: 1
Chunked output:

--- []
Error:

Katello::Errors::Pulp3Error

400, message='Bad Request', url=URL('https://download.repo.com/app/example_download?edition_id=example2-ASN&license_key=DVjutUBGGf5edbRv&suffix=tar.gz//PULP_MANIFEST')

Environment

  • Red Hat Satellite 6.x
  • pulp2
  • pulp3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content