Lot of errors in sidekick jobs since upgrade from 11.10.4 to 12.4.1

Summary

We get a lot of errors in background jobs since we upgraded Gitlab CE from 11.10.4 to 12.4.1, such as :

  • Queue pipeline_processing:build_finished, error ActiveModel::MissingAttributeError: missing attribute: ci_id
  • Queue pipeline_processing:pipeline_process, error ArgumentError: wrong number of arguments (given 2, expected 1)
  • Queue pipeline_background:archive_trace, error ActiveModel::MissingAttributeError: missing attribute: sentry_enabled

Steps to reproduce

Honestly I don't know how to reproduce the bugs. The instance was running under Gitlab CE 11.10.4 and we upgraded like this:

  1. Upgraded to Gitlab CE 11.11.8 to get to latest minor upgrade
  2. Upgraded to Gitlab-CE 12.4.1
    • It failed during db migration process,
    • Log reported that this instance was originally installed as EE, and we had to install latest 11.x EE release to handle Geo columns then upgrade to Gitlab 12 CE.
  3. Removed Gitlab CE 12.4.1
  4. Installed Gitlab EE 11.11.3
  5. Installed Gitlab CE 12.4.1 => got a lot of errors in sidekick jobs
  6. Installed Gitlab CE 12.4.2 => No improvement

Example Project

Can't reproduce these problems since it seems related to our (messy) Gitlab instance.

What is the current bug behavior?

A lot of background jobs fail. Consequence is that several actions can't success, such as pipelines which stay stucked between two steps, rebases that fail, etc.

  • Queue pipeline_processing:build_finished, error ActiveModel::MissingAttributeError: missing attribute: ci_id
  • Queue pipeline_processing:pipeline_process, error ArgumentError: wrong number of arguments (given 2, expected 1)
  • Queue pipeline_background:archive_trace, error ActiveModel::MissingAttributeError: missing attribute: sentry_enabled

What is the expected correct behavior?

I'd like my instance to work without having to re-installing it from scratch.

Relevant logs and/or screenshots

Example of failed jobs:

failed_jobs

Dashboard where we can see that failed tasks occured since the upgrade on the 31/10/19

dashboard

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: CentOS 7.7.1908 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknown

GitLab information Version: 12.4.2 Revision: 393a5bdafa2 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.6 URL: https://gitlab.aws.mycompany.com HTTP Clone URL: https://gitlab.aws.mycompany.com/some-group/some-project.git SSH Clone URL: git@git.aws.mycompany.com:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:

GitLab Shell Version: 10.2.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 >= 10.2.0 ? ... OK (10.2.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: ... 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: ... 3/6 ... yes 3/7 ... yes 3/8 ... yes 3/9 ... yes 3/10 ... yes 3/11 ... yes 3/12 ... yes 3/13 ... yes 6/14 ... yes 3/15 ... yes 3/16 ... yes 3/17 ... yes 3/18 ... yes 3/19 ... yes 3/20 ... yes 4/21 ... yes 4/22 ... yes 4/23 ... yes 4/24 ... yes 4/25 ... yes 4/26 ... yes 4/27 ... yes 4/28 ... yes 4/29 ... yes 4/30 ... yes 5/31 ... yes 5/32 ... yes 16/33 ... yes 16/34 ... yes 4/35 ... yes 3/36 ... yes 3/37 ... yes 3/38 ... yes 45/39 ... yes 3/40 ... yes 45/41 ... yes 45/42 ... yes 45/43 ... yes 45/45 ... yes 45/46 ... yes 45/47 ... yes 45/48 ... yes 45/49 ... yes 49/50 ... yes 45/51 ... yes 3/53 ... yes 45/55 ... yes 45/56 ... yes 45/57 ... yes 3/65 ... yes 3/67 ... yes 3/68 ... yes 3/69 ... yes 54/71 ... yes 45/75 ... yes 45/76 ... yes 45/77 ... yes 45/80 ... yes 8/81 ... yes 45/82 ... yes 45/83 ... yes 45/87 ... yes 45/88 ... yes 45/89 ... yes 45/90 ... yes 45/91 ... yes 58/93 ... yes 58/95 ... yes 58/96 ... yes 8/97 ... yes 2/98 ... yes 45/99 ... yes 45/100 ... yes 58/101 ... yes 45/103 ... yes 58/104 ... yes 45/105 ... yes 45/106 ... yes 45/107 ... yes 58/108 ... yes 58/109 ... yes 45/110 ... yes 45/111 ... yes 58/112 ... yes 58/113 ... yes 58/114 ... yes 46/115 ... yes 45/116 ... yes 45/117 ... yes 45/118 ... yes 45/119 ... yes 45/120 ... yes 45/121 ... yes 58/122 ... yes 45/123 ... yes 45/124 ... yes 60/126 ... yes 48/127 ... yes 48/128 ... yes 45/129 ... yes 3/130 ... yes 58/131 ... yes 58/132 ... yes 62/133 ... yes 45/134 ... yes 63/135 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.0) Git user has default SSH configuration? ... yes Active users: ... 35 Is authorized keys file accessible? ... yes

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Assignee Loading
Time tracking Loading