Gitlab Pipeline logs unreachable on Web Interface

Summary

After CI job logs are stored in Openstack Swift (configuring artifacts on object storage), but if I look at the web interface after the ended pipeline I will get a 500 error on pipeline main page and "An error occurred while fetching the job log." on the build log.

Steps to reproduce

Configure gitlab artifacts upload on object storage using Openstack Swift as Object Storage provider, migrate all the artifacs, run a pipeline

What is the current bug behavior?

Error 500 on pipeline summary, and "An error occurred while fetching the job log." on stage log page.

What is the expected correct behavior?

The normal job logs and stage logs.

Relevant logs and/or screenshots

The configuration of Openstack Swift is the same of #57183 (closed) Reported for completition:

gitlab_rails['artifacts_enabled'] = true
# gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"
gitlab_rails['artifacts_object_store_enabled'] = true # EE only
gitlab_rails['artifacts_object_store_remote_directory'] = "gitlab-artifacts"
gitlab_rails['artifacts_object_store_connection'] = {
   'provider' => 'Openstack',
   'openstack_auth_url' => 'http://keystone:5000/v3/auth/tokens',
   'openstack_username' => 'admin',
   'openstack_api_key' =>  'password',
   'openstack_project_name' => 'tenant',
   'openstack_domain_id' =>    'domain'
}

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.3 Go Version: unknown

GitLab information Version: 11.7.5-ee Revision: ed04633 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.11 URL: https://externalurl [REDACTED] HTTP Clone URL: https://externalurl [REDACTED]/some-group/some-project.git SSH Clone URL: git@externalurl [REDACTED]:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers:

GitLab Shell Version: 8.4.4 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks 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 >= 8.4.4 ? ... OK (8.4.4) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: 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: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

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: ... 7/1 ... yes 9/2 ... yes 9/3 ... yes 8/4 ... yes 12/5 ... yes 12/6 ... yes 9/7 ... yes 6/9 ... yes 6/10 ... yes 12/12 ... yes 2/13 ... yes 2/14 ... yes 19/15 ... yes 12/17 ... yes 14/18 ... yes 14/20 ... yes 15/21 ... yes 12/22 ... yes 14/23 ... yes 12/24 ... yes 12/25 ... yes 12/26 ... yes 14/27 ... yes 12/28 ... yes 12/30 ... yes 19/32 ... yes 20/33 ... yes 12/35 ... yes 3/36 ... yes 24/38 ... yes 24/39 ... yes 20/40 ... yes 12/41 ... yes 20/42 ... yes 12/43 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 20 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)