Why do Satellite 6 repository tasks fail with error "DocumentTooLarge: command document too large"?

Solution Verified - Updated -

Issue

  • Why do repository tasks fail with error "DocumentTooLarge: command document too large"?
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608) command document too large
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608) Traceback (most recent call last):
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 275, in run
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     self.get_errata(metadata_files)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 794, in get_errata
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     updateinfo.process_package_element, additive_type=True)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 887, in save_fileless_units
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     model = self._concatenate_units(existing_unit, model)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 932, in _concatenate_units
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     existing_unit.merge_errata(new_unit)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py", line 705, in merge_errata
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     self.merge_pkglists_and_save(other)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py", line 802, in merge_pkglists_and_save
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     self.save()
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib/python2.7/site-packages/mongoengine/document.py", line 367, in save
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     upsert=upsert, **write_concern)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 2232, in update
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     check_keys, multi, manipulate, write_concern)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 709, in _update
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     codec_options=self.codec_options).copy()
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib64/python2.7/site-packages/pymongo/pool.py", line 216, in command
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     self._raise_connection_failure(error)
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)   File "/usr/lib64/python2.7/site-packages/pymongo/pool.py", line 343, in _raise_connection_failure
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608)     raise error
Feb 21 12:38:13 hostname pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (75482-24608) DocumentTooLarge: command document too large

Environment

  • Red Hat Satellite 6.2.
  • RPM packages with a large number of files.

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