You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
pulpcore: 3.68.0
pulp_container: 2.22.0
pulp-oci-images
Describe the bug
One of my sync from docker hub stopped working and always failed with following error:
"error": {
"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_container/app/tasks/synchronize.py\", line 41, in synchronize\n return dv.create()\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/pulp_container/app/tasks/sync_stages.py\", line 254, in run\n await self.resolve_flush()\n File \"/usr/local/lib/python3.9/site-packages/pulp_container/app/tasks/sync_stages.py\", line 283, in resolve_flush\n manifest_dc.content.init_image_nature()\n File \"/usr/local/lib/python3.9/site-packages/pulp_container/app/models.py\", line 177, in init_image_nature\n return self.init_manifest_nature()\n File \"/usr/local/lib/python3.9/site-packages/pulp_container/app/models.py\", line 208, in init_manifest_nature\n elif self.is_helm_chart():\n File \"/usr/local/lib/python3.9/site-packages/pulp_container/app/models.py\", line 285, in is_helm_chart\n return self.json_manifest[\"config\"][\"mediaType\"] == MEDIA_TYPE.CONFIG_BLOB_HELM\n File \"/usr/local/lib/python3.9/site-packages/pulp_container/app/models.py\", line 263, in json_manifest\n self._json_manifest = json.loads(self.data)\n File \"/usr/lib64/python3.9/json/__init__.py\", line 339, in loads\n raise TypeError(f'the JSON object must be str, bytes or bytearray, '\n",
"description": "the JSON object must be str, bytes or bytearray, not NoneType"
}
My guess is that this was the only repository synced when you were running pulp-container 2.19 (and maybe the others were removed or not synced again in this version).
From versions >= 2.20 all manifests pushed/synced to pulp-container were already stored in the database, so the
self._json_manifest = json.loads(self.data)
instruction would be able to find the self.data and continue the code execution without errors.
Version
pulpcore: 3.68.0
pulp_container: 2.22.0
pulp-oci-images
Describe the bug
One of my sync from docker hub stopped working and always failed with following error:
Other sync form dockerhub still working. I don't know whats special with this repository .
To Reproduce
Create remote and try to sync
Expected behavior
Sync without error
Additional context
The text was updated successfully, but these errors were encountered: