Project

Profile

Help

Issue #3750

closed

"Unable to find global header"

Added by Anonymous almost 6 years ago. Updated almost 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
master
Platform Release:
Target Release - Debian:
OS:
CentOS 7
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

I receive this error specifically on this repo, I do not have this issue with bionic, xenial, precise, and trusty-64bit.

pulp-admin deb repo list --repo-id 'trusty-updates-32bit' --details
+----------------------------------------------------------------------+
                          Debian Repositories
+----------------------------------------------------------------------+

Id:                   trusty-updates-32bit
Display Name:         None
Description:          None
Content Unit Counts:
  Deb:           10265
  Deb Component: 4
  Deb Release:   1
Notes:
Scratchpad:
Importers:
  Config:
    Architectures:  i386
    Components:     main,universe,multiverse,restricted
    Feed:           http://us.archive.ubuntu.com/ubuntu
    Proxy Host:     XXXXXXXXX
    Proxy Password: XXXXXXXXX
    Proxy Port:     XXXX
    Proxy Username: XXXXX
    Releases:       trusty-updates
  Id:                   deb_importer
  Importer Type Id:     deb_importer
  Last Override Config:
  Last Sync:            2018-06-07T22:18:47Z
  Last Updated:         2018-06-07T22:17:25Z
  Repo Id:              trusty-updates-32bit
  Scratchpad:           None
Distributors:
  Auto Publish:         True
  Config:
    Http:         False
    Https:        True
    Relative URL: /trusty-updates-32bit/
  Distributor Type Id:  deb_distributor
  Id:                   deb_distributor
  Last Override Config:
  Last Publish:         None
  Last Updated:         2018-06-07T22:17:25Z
  Repo Id:              trusty-updates-32bit
  Scratchpad:

Error: "Unable to find global header"

Journalctl Output

 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072) Exception caught from plugin during publish for repo [trusty-updates]
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072) Traceback (most recent call last):
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 1258, in _do_publish
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     publish_report = publish_repo(transfer_repo, conduit, call_config)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 737, in wrap_f
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     return f(*args, **kwargs)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py", line 80, in publish_repo
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     return self._publisher.process_lifecycle()
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 572, in process_lifecycle
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     super(PluginStep, self).process_lifecycle()
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 163, in process_lifecycle
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     step.process()
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 256, in process
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     self._process_block()
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 303, in _process_block
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     self.process_main()
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py", line 329, in process_main
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     with_symlinks=True)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debpkgr/aptrepo.py", line 477, in create
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     component=component, architecture=architecture)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debpkgr/aptrepo.py", line 448, in add_packages
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     pkg = debpkg.DebPkg.from_file(filename, Size=sz)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debpkgr/debpkg.py", line 416, in from_file
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     debpkg = debfile.DebFile(filename=path)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debian/debfile.py", line 272, in __init__
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     ArFile.__init__(self, filename, mode, fileobj)
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debian/arfile.py", line 67, in __init__
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     self.__index_archive()
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debian/arfile.py", line 79, in __index_archive
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072)     raise ArError("Unable to find global header")
 pulp.server.controllers.repository:ERROR: [fd535452] (1746-71072) ArError: Unable to find global header
 pulp.server.async.tasks:INFO: [fd535452] Task failed : [fd535452-e040-4f94-8865-1b7d68dcf383]
 celery.app.trace:ERROR: [fd535452] (1746-71072) Task pulp.server.managers.repo.publish.publish[fd535452-e040-4f94-8865-1b7d68dcf383] raised unexpected: ArError('Unable to find global header',)
 celery.app.trace:ERROR: [fd535452] (1746-71072) Traceback (most recent call last):
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task
 celery.app.trace:ERROR: [fd535452] (1746-71072)     R = retval = fun(*args, **kwargs)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 529, in __call__
 celery.app.trace:ERROR: [fd535452] (1746-71072)     return super(Task, self).__call__(*args, **kwargs)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 107, in __call__
 celery.app.trace:ERROR: [fd535452] (1746-71072)     return super(PulpTask, self).__call__(*args, **kwargs)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__
 celery.app.trace:ERROR: [fd535452] (1746-71072)     return self.run(*args, **kwargs)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 1109, in publish
 celery.app.trace:ERROR: [fd535452] (1746-71072)     result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 1206, in check_publish
 celery.app.trace:ERROR: [fd535452] (1746-71072)     result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 1258, in _do_publish
 celery.app.trace:ERROR: [fd535452] (1746-71072)     publish_report = publish_repo(transfer_repo, conduit, call_config)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 737, in wrap_f
 celery.app.trace:ERROR: [fd535452] (1746-71072)     return f(*args, **kwargs)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py", line 80, in publish_repo
 celery.app.trace:ERROR: [fd535452] (1746-71072)     return self._publisher.process_lifecycle()
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 572, in process_lifecycle
 celery.app.trace:ERROR: [fd535452] (1746-71072)     super(PluginStep, self).process_lifecycle()
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 163, in process_lifecycle
 celery.app.trace:ERROR: [fd535452] (1746-71072)     step.process()
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 256, in process
 celery.app.trace:ERROR: [fd535452] (1746-71072)     self._process_block()
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 303, in _process_block
 celery.app.trace:ERROR: [fd535452] (1746-71072)     self.process_main()
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py", line 329, in process_main
 celery.app.trace:ERROR: [fd535452] (1746-71072)     with_symlinks=True)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debpkgr/aptrepo.py", line 477, in create
 celery.app.trace:ERROR: [fd535452] (1746-71072)     component=component, architecture=architecture)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debpkgr/aptrepo.py", line 448, in add_packages
 celery.app.trace:ERROR: [fd535452] (1746-71072)     pkg = debpkg.DebPkg.from_file(filename, Size=sz)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debpkgr/debpkg.py", line 416, in from_file
 celery.app.trace:ERROR: [fd535452] (1746-71072)     debpkg = debfile.DebFile(filename=path)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debian/debfile.py", line 272, in __init__
 celery.app.trace:ERROR: [fd535452] (1746-71072)     ArFile.__init__(self, filename, mode, fileobj)
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debian/arfile.py", line 67, in __init__
 celery.app.trace:ERROR: [fd535452] (1746-71072)     self.__index_archive()
 celery.app.trace:ERROR: [fd535452] (1746-71072)   File "/usr/lib/python2.7/site-packages/debian/arfile.py", line 79, in __index_archive
 celery.app.trace:ERROR: [fd535452] (1746-71072)     raise ArError("Unable to find global header")
 celery.app.trace:ERROR: [fd535452] (1746-71072) ArError: Unable to find global header
Actions #1

Updated by quba42 over 5 years ago

I tried syncing this repository using these changes (https://github.com/pulp/pulp_deb/pull/57) and I did not run into the above error.

However, I can't currently reproduce this error with my test setup (without the changes from the pull request) since it just fails with "cannot allocate memory".

I will have another go at trying to reproduce this, with a more powerful system tomorrow.

Actions #2

Updated by quba42 over 5 years ago

So it turns out I cannot reproduce this. At least not for the same repository with a different mirror.
This works for me using the mirror (http://ftp.uni-erlangen.de/mirrors/ubuntu/)

Possibly the mirror used contained a corrupt package.
Possibly this has been fixed somewhere in python-debian.

Actions #3

Updated by bmbouter almost 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #4

Updated by bmbouter almost 5 years ago

  • Status changed from CLOSED - WONTFIX to NEW

Was closed as part of Pulp2 mass-fix, but reopening so the Debian plugin devs can determine what they want to do.

Actions #5

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added
Actions #6

Updated by mdellweg almost 5 years ago

  • Status changed from NEW to CLOSED - NOTABUG

Not reproducible and no activity for months. Closing this.

Also available in: Atom PDF