Failed to transfer artifact of type trace with error: undefined method `move_to'
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
When trying to migrate artifacts back from object storage the migration stops on the first error.
Steps to reproduce
We have migrated our artifacts to object storage long time ago and want revert this now. The error happens when running gitlab-rake gitlab:artifacts:migrate_to_local
What is the current bug behavior?
root@git ~ # gitlab-rake gitlab:artifacts:migrate_to_local VERBOSE=true
I, [2021-03-24T15:46:24.106148 #16225] INFO -- : Starting transfer of artifacts to local storage
E, [2021-03-24T15:46:24.450092 #16225] ERROR -- : Failed to transfer artifact of type trace and ID 92068 with error: undefined method `move_to' for #<CarrierWave::Storage::Fog::File:0x00007f67602b7a68>
What is the expected correct behavior?
It should tell me what is the issue and allow me to proceed (if there are files missing that is not too bad because they are probably corrupted anyway, but I like to migrate the rest of it back)
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
``` System information System: Ubuntu 18.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.3 Redis Version: 6.0.10 Git Version: 2.29.0 Sidekiq Version:5.2.9 Go Version: unknown GitLab information Version: 13.9.4-ee Revision: fb7eeedfaf4 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.5 URL: https://xxx HTTP Clone URL: https://xxx/some-group/some-project.git SSH Clone URL: ssh://git@xxx/some-group/some-project.git Elasticsearch: yes Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.17.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git ```
Results of GitLab application Check
Expand for output related to the GitLab application check
``` Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.17.0 ? ... OK (13.17.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... Checking xxxx@xxxxx yes Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ...
Redis version >= 4.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.2) Git version >= 2.29.0 ? ... yes (2.29.0) Git user has default SSH configuration? ... yes Active users: ... 176 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... yes (7.10.1)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
</pre> </details>