Evening
had the exact same problem.
The issue is in the 0049_add_file_field_to_uploadchunk.py
It deletes a column “file” from table “upload”
then add’s it again to table “uploadchunk”…but if records already exist in the uploadchunk table, then this new “file” column will contain NULLs. which is not allowed.
need to add: "null=True, " to the list of options to the AddField in file:
/usr/lib/python3.6/site-packages/pulpcore/app/migrations/0049_add_file_field_to_uploadchunk.py
migrations.AddField(
model_name='uploadchunk',
name='file',
field=models.FileField(null=True, default=None, max_length=255, upload_to=pulpcore.app.models.upload.UploadChunk.storage_path),
preserve_default=False,
),
Then it runs successfully: