BigW Consortium Gitlab
The following was happening: 1. Workhorse stores an LFS file in /var/opt/gitlab/gitlab-rails/shared/lfs-objects 2. CarrierWave then renames the file to a temporary directory (e.g. /opt/gitlab/embedded/service/gitlab-rails/tmp) 3. CarrierWave then renames the file to its final location (e.g. /var/opt/gitlab/gitlab-rails/shared/lfs-objects) When the LFS upload path was on a different filesystem than the Rails installation, step 2 could take a longer than 10 seconds, at which point Workhorse would time out with "badgateway: failed after 10s: context canceled". This change makes the work path in the same root as the LFS storage path, preventing moves across filesystems. Closes #33218
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
artifact_uploader_spec.rb | Loading commit data... | |
attachment_uploader_spec.rb | Loading commit data... | |
avatar_uploader_spec.rb | Loading commit data... | |
file_uploader_spec.rb | Loading commit data... | |
gitlab_uploader_spec.rb | Loading commit data... | |
lfs_object_uploader_spec.rb | Loading commit data... | |
personal_file_uploader_spec.rb | Loading commit data... | |
records_uploads_spec.rb | Loading commit data... | |
uploader_helper_spec.rb | Loading commit data... |