Problem:
Error when sync from upstream
Expected outcome:
Pulpcore version:
pulp-ansible 0.23.1
pulp-certguard 1.8.0
pulp-container 2.22.1
pulp-deb 3.5.0
pulp-file 1.16.0
pulp-glue 0.30.2
pulp-maven 0.8.1
pulp-ostree 2.4.4
pulp-python 3.12.5
pulp-rpm 3.27.2
pulpcore 3.69.2
Pulp plugins installed and their versions:
Operating system - distribution and version:
rhel 8.10
Other relevant data:
“traceback”: " File “/usr/local/lib/python3.9/site-packages/pulpcore/tasking/tasks.py”, line 68, in _execute_task\n result = func(*args, **kwargs)\n File “/usr/local/lib/python3.9/site-packages/pulp_rpm/app/tasks/synchronizing.py”, line 568, in synchronize\n repo_version = dv.create() or repo.latest_version()\n File “/usr/local/lib/python3.9/site-packages/pulpcore/plugin/stages/declarative_version.py”, line 161, in create\n loop.run_until_complete(pipeline)\n File “/usr/lib64/python3.9/asyncio/base_events.py”, line 647, in run_until_complete\n return future.result()\n File “/usr/local/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py”, line 220, in create_pipeline\n await asyncio.gather(*futures)\n File “/usr/local/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py”, line 41, in call\n await self.run()\n File “/usr/local/lib/python3.9/site-packages/pulpcore/plugin/stages/artifact_stages.py”, line 283, in run\n await sync_to_async(Artifact.objects.bulk_get_or_create)(\n File “/usr/local/lib/python3.9/site-packages/asgiref/sync.py”, line 468, in call\n ret = await asyncio.shield(exec_coro)\n File “/usr/lib64/python3.9/concurrent/futures/thread.py”, line 58, in run\n result = self.fn(*self.args, **self.kwargs)\n File “/usr/local/lib/python3.9/site-packages/asgiref/sync.py”, line 522, in thread_handler\n return func(*args, **kwargs)\n File “/usr/local/lib/python3.9/site-packages/pulpcore/app/models/content.py”, line 89, in bulk_get_or_create\n return super().bulk_create(objs, batch_size=batch_size)\n File “/usr/local/lib/python3.9/site-packages/django/db/models/manager.py”, line 87, in manager_method\n return getattr(self.get_queryset(), name)(*args, **kwargs)\n File “/usr/local/lib/python3.9/site-packages/django/db/models/query.py”, line 786, in bulk_create\n returned_columns = self._batched_insert(\n File “/usr/local/lib/python3.9/site-packages/django/db/models/query.py”, line 1831, in _batched_insert\n self._insert(\n File “/usr/local/lib/python3.9/site-packages/django/db/models/query.py”, line 1805, in _insert\n return query.get_compiler(using=using).execute_sql(returning_fields)\n File “/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py”, line 1821, in execute_sql\n for sql, params in self.as_sql():\n File “/usr/local/lib/python3.9/site-packages/django_readonly_field/compiler.py”, line 31, in as_sql\n return super(ReadonlySQLCompilerMixin, self).as_sql()\n File “/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py”, line 1745, in as_sql\n value_rows = [\n File “/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py”, line 1746, in \n [\n File “/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py”, line 1747, in \n self.prepare_value(field, self.pre_save_val(field, obj))\n File “/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py”, line 1695, in pre_save_val\n return field.pre_save(obj, add=True)\n File “/usr/local/lib/python3.9/site-packages/pulpcore/app/models/fields.py”, line 89, in pre_save\n return super().pre_save(model_instance, add)\n File “/usr/local/lib/python3.9/site-packages/django/db/models/fields/files.py”, line 317, in pre_save\n file.save(file.name, file.file, save=False)\n File “/usr/local/lib/python3.9/site-packages/django/db/models/fields/files.py”, line 93, in save\n self.name = self.storage.save(name, content, max_length=self.field.max_length)\n File “/usr/local/lib/python3.9/site-packages/django/core/files/storage/base.py”, line 49, in save\n name = self._save(name, content)\n File “/usr/local/lib/python3.9/site-packages/storages/backends/s3.py”, line 565, in _save\n obj.upload_fileobj(content, ExtraArgs=params, Config=self.transfer_config)\n File “/usr/local/lib/python3.9/site-packages/boto3/s3/inject.py”, line 731, in object_upload_fileobj\n return self.meta.client.upload_fileobj(\n File “/usr/local/lib/python3.9/site-packages/boto3/s3/inject.py”, line 642, in upload_fileobj\n return future.result()\n File “/usr/local/lib/python3.9/site-packages/s3transfer/futures.py”, line 103, in result\n return self._coordinator.result()\n File “/usr/local/lib/python3.9/site-packages/s3transfer/futures.py”, line 264, in result\n raise self._exception\n File “/usr/local/lib/python3.9/site-packages/s3transfer/tasks.py”, line 135, in call\n return self._execute_main(kwargs)\n File “/usr/local/lib/python3.9/site-packages/s3transfer/tasks.py”, line 158, in _execute_main\n return_value = self._main(**kwargs)\n File “/usr/local/lib/python3.9/site-packages/s3transfer/upload.py”, line 796, in _main\n client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)\n File “/usr/local/lib/python3.9/site-packages/botocore/client.py”, line 569, in _api_call\n return self._make_api_call(operation_name, kwargs)\n File “/usr/local/lib/python3.9/site-packages/botocore/client.py”, line 1023, in _make_api_call\n raise error_class(parsed_response, operation_name)\n",
“description”: “An error occurred (XAmzContentSHA256Mismatch) when calling the PutObject operation: Unknown”
We see above error when testing rpm repo sync from upstream. What could cause this and how we can fix it?