<html><body><p><font size="2">Hi Team,  can some some one kindly  help me with Pulp sync error "Task Failed Importer indicated a failed response ? Also pasted here some lines of /var/log/messages. Please let me know if you need any further info to trouble shoot on this.</font><br><font size="2">This is Pulp slave server with version : pulp-server-2.11.2-1.el6. syncs with master Pulp server 2.16. It was working till few days ago with out any issues.</font><br><br><font size="2">Pulp sync error:</font><br><br><font size="2">[root@dpa-pulpslv-01 ~]# pulp-admin rpm repo sync run --repo-id=rhel-6-server-rpms-x86_64</font><br><font size="2">+----------------------------------------------------------------------+</font><br><font size="2">          Synchronizing Repository [rhel-6-server-rpms-x86_64]</font><br><font size="2">+----------------------------------------------------------------------+</font><br><br><font size="2">This command may be exited via ctrl+c without affecting the request.</font><br><br><br><font size="2">Downloading metadata...</font><br><font size="2">[/]</font><br><font size="2">... completed</font><br><br><font size="2">Downloading repository content...</font><br><font size="2">[-]</font><br><font size="2">[==================================================] 100%</font><br><font size="2">RPMs:       0/0 items</font><br><font size="2">Delta RPMs: 0/0 items</font><br><br><font size="2">... completed</font><br><br><font size="2">Downloading distribution files...</font><br><font size="2">[==================================================] 100%</font><br><font size="2">Distributions: 0/0 items</font><br><font size="2">... completed</font><br><br><font size="2">Importing package groups/categories...</font><br><font size="2">[|]</font><br><font size="2">... completed</font><br><br><font size="2">Cleaning duplicate packages...</font><br><font size="2">[\]</font><br><font size="2">... failed</font><br><br><br><font size="2">Task Failed</font><br><br><font size="2">Importer indicated a failed response</font><br><br><font size="2">[root@dpa-pulpslv-01 ~]#</font><br><br><br><font size="2">/var/log/messages:</font><br><br><font size="2">Jan  1 10:11:27 dpa-pulpslv-01 pulp: celery.beat:INFO: Scheduler: Sending due task download_deferred_content (pulp.server.controllers.repository.queue_download_deferred)</font><br><font size="2">Jan  1 10:11:27 dpa-pulpslv-01 pulp: celery.worker.strategy:INFO: Received task: pulp.server.controllers.repository.queue_download_deferred[c2f818fd-c871-4538-a091-5451e32885cf]</font><br><font size="2">Jan  1 10:11:27 dpa-pulpslv-01 pulp: kombu.transport.qpid:INFO: Connected to qpid with SASL mechanism ANONYMOUS</font><br><font size="2">Jan  1 10:11:27 dpa-pulpslv-01 pulp: celery.worker.strategy:INFO: Received task: pulp.server.controllers.repository.download_deferred[1f04ce4f-c093-43a3-80bb-4f71b6ab8695]</font><br><font size="2">Jan  1 10:11:27 dpa-pulpslv-01 pulp: celery.worker.job:INFO: Task pulp.server.controllers.repository.queue_download_deferred[c2f818fd-c871-4538-a091-5451e32885cf] succeeded in 0.060901439s: None</font><br><font size="2">Jan  1 10:11:27 dpa-pulpslv-01 pulp: celery.worker.job:INFO: Task pulp.server.controllers.repository.download_deferred[1f04ce4f-c093-43a3-80bb-4f71b6ab8695] succeeded in 0.130910374s: None</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528) command SON([('mapreduce', u'units_rpm'), ('map', Code("\n    function () {\n        var key_fields = [this.name, this.epoch, this.version, this.release, this.arch]\n        emit(key_fields.join('-'), {ids: [this._id]});\n    }\n    ", {})), ('reduce', Code("\n    function (key, values) {\n      // collect mapped values into the first value to build the list of ids for this key/nevra\n      var collector = values[0]\n      // since collector is values[0] start this loop at index 1\n      // reduce isn't called if map only emits one result for key,\n      // so there is at least one value to collect\n      for (var i = 1; i < values.length; i++) {\n        collector.ids = collector.ids.concat(values[i].ids)\n      }\n      return collector\n    }\n    ", {})), ('out', {'inline': 1}), ('query', {}), ('finalize', Code("\n    function (key, reduced) {\n        if (reduced.ids.length > 1) {\n            return reduced;\n        }\n        // if there's only one value after reduction, this key is useless\n        // undefined is implicitly returned here, which saves space\n    }\n    ", {}))]) on namespace pulp_database.$cmd failed: exception: BSONObj size: 17162604 (0x6CE10501) is invalid. Size must be between 0 and 16793600(16MB) First element: 0: { _id: "0ad-0-0.0.22-1.el7-x86_64", value: null }</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528) Traceback (most recent call last):</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 296, in run</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     purge.remove_repo_duplicate_nevra(self.conduit.repo_id)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/purge.py", line 304, in remove_repo_duplicate_nevra</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     for unit_ids in _duplicate_key_id_generator(unit_type):</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/purge.py", line 493, in _duplicate_key_id_generator_mapreduce</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     for reduced in reduced_units:</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib/python2.6/site-packages/mongoengine/queryset/base.py", line 1157, in map_reduce</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     map_f, reduce_f, **mr_args)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 1903, in inline_map_reduce</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     res = self._command(sock_info, cmd, slave_ok)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 205, in _command</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     read_concern=read_concern)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib64/python2.6/site-packages/pymongo/pool.py", line 211, in command</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     read_concern)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib64/python2.6/site-packages/pymongo/network.py", line 100, in command</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     helpers._check_command_response(response_doc, msg, allowable_errors)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)   File "/usr/lib64/python2.6/site-packages/pymongo/helpers.py", line 196, in _check_command_response</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528)     raise OperationFailure(msg %% errmsg, code, response)</font><br><font size="2">Jan  1 10:18:48 dpa-pulpslv-01 pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3304-06528) OperationFailure: command SON([('mapreduce', u'units_rpm'), ('map', Code("\n    function () {\n        var key_fields = [this.name, this.epoch, this.version, this.release, this.arch]\n        emit(key_fields.join('-'), {ids: [this._id]});\n    }\n    ", {})), ('reduce', Code("\n    function (key, values) {\n      // collect mapped values into the first value to build the list of ids for this key/nevra\n      var collector = values[0]\n      // since collector is values[0] start this loop at index 1\n      // reduce isn't called if map only emits one result for key,\n      // so there is at least one value to collect\n      for (var i = 1; i < values.length; i++) {\n        collector.ids = collector.ids.concat(values[i].ids)\n      }\n      return collector\n    }\n    ", {})), ('out', {'inline': 1}), ('query', {}), ('finalize', Code("\n    function (key, reduced) {\n        if (reduced.ids.length > 1) {\n            return reduced;\n        }\n        // if there's only one value after reduction, this key is useless\n        // undefined is implicitly returned here, which saves space\n    }\n    ", {}))]) on namespace pulp_database.$cmd failed: exception: BSONObj size: 17162604 (0x6CE10501) is invalid. Size must be between 0 and 16793600(16MB) First element: 0: { _id: "0ad-0-0.0.22-1.el7-x86_64", value: null }</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: pulp.server.async.tasks:INFO: Task failed : [6daefad5-b4a2-4a30-acbc-e6a2cd4dd697]</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528) Task pulp.server.managers.repo.sync.sync[6daefad5-b4a2-4a30-acbc-e6a2cd4dd697] raised unexpected: PulpExecutionException('Importer indicated a failed response',)</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528) Traceback (most recent call last):</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in trace_task</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)     R = retval = fun(*args, **kwargs)</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 491, in __call__</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)     return super(Task, self).__call__(*args, **kwargs)</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 103, in __call__</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)     return super(PulpTask, self).__call__(*args, **kwargs)</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)     return self.run(*args, **kwargs)</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 820, in sync</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528)     raise pulp_exceptions.PulpExecutionException(_('Importer indicated a failed response'))</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:ERROR: (3221-06528) PulpExecutionException: Importer indicated a failed response</font><br><font size="2">Jan  1 10:18:49 dpa-pulpslv-01 pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[1850458c-9817-40d2-b295-d1ad1198269d] succeeded in 0.00577054099995s: None</font><br><font size="2">~</font><br><br><br><br><br><br><br><font size="2">Sincerely,</font><br><font size="2">Venkataramana Bora</font><br><font size="2">IBM Visakha Hills</font><br><font size="2">Visakhapatnam – 530 045, India</font><br><font size="2">Direct:+91.891-4499606 / VoIP:92-29207</font><br><font size="2">Mob:+91.9949358804</font><BR>
</body></html>