Uploads docs gives incorrect configuration options
Summary
The documentation page at administration/uploads instructs the user to change two settings (uploads_storage_path
and uploads_base_dir
to change the path for the uploads directory. In fact, the setting to change is uploads_directory
.
What is the current bug behavior?
A customer in this Zendesk ticket was setting the designated values and then getting the following error when attempting to run the rake task to migrate data to their S3 bucket:
ObjectStorage::MigrateUploadsWorker::Report::MigrationFailures: No such file or directory @ rb_sysopen - /gitlab-nfs/uploads/uploads/-/system/project/avatar/1249/Portus_logo.png No such file or directo...
Note the duplicated "uploads" string in the path.
What is the expected correct behavior?
After commenting uploads_storage_path
and uploads_base_dir
and instead setting gitlab_rails['uploads_directory'] = "/gitlab-nfs/uploads"
everything worked correctly.