Running ./manage.py backfill_gdrive_folder --filter <course name> for a legacy course should create Google Drive files for the all the non-video resources in the course.
Current Behavior
The backfill fails, with the error message botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found.
Steps to Reproduce
Locally, this can be tested by setting the ENVIRONMENT variable to anything but dev, entering appropriate credentials for AWS (instead of MinIO), and then running the backfill_gdrive_folder management command for a legacy course.
Possible Solution
This is caused by a difference in the way that MinIO and AWS S3 handle paths. A related prior discrepancy for caption file paths was resolved here: https://github.com/mitodl/ocw-studio/pull/1797.
Expected Behavior
Running
./manage.py backfill_gdrive_folder --filter <course name>
for a legacy course should create Google Drive files for the all the non-video resources in the course.Current Behavior
The backfill fails, with the error message
botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
.Steps to Reproduce
Locally, this can be tested by setting the
ENVIRONMENT
variable to anything butdev
, entering appropriate credentials for AWS (instead of MinIO), and then running thebackfill_gdrive_folder
management command for a legacy course.Possible Solution
This is caused by a difference in the way that MinIO and AWS S3 handle paths. A related prior discrepancy for caption file paths was resolved here: https://github.com/mitodl/ocw-studio/pull/1797.