Pipelines broken since update to 13.8 | NoMethodError: undefined method `keep_latest_artifact?'

Summary

Since upgrading to 13.8, Pipelines are broken as there seems to be some error related to the keep_latest_artifact setting. Pipelines will not run from commits or triggers, also manually starting the pipeline will not work. Clicking the button has no visual effect on the CI. If I go to I see the error message "There was a problem fetching the keep latest artifact setting." and updating the setting also does not work.

I already tried gitlab-ctl reconfigure, gitlab-ctl upgrade, gitlab-ctl restart, gitlab-ctl revert-pg-upgrade, gitlab-ctl pg-upgrade. All run without errors, but don't fix the issue.

Last resort would be from a backup from before the upgrade to 13.8, but I would prefer not losing data/changes since then.

Steps to reproduce

Upgrade gitlab ce from 13.7.latest to 13.8. via apt-get upgrade.

Example Project

What is the current bug behavior?

Pipelines do not work.

What is the expected correct behavior?

Pipelines should work.

Relevant logs and/or screenshots

Processing by Projects::PipelinesController#create as JSON
  Parameters: {"ref"=>"refs/heads/master", "variables_attributes"=>"[FILTERED]", "namespace_id"=>"operations", "project_id"=>"icinga2", "pipeline"=>{"ref"=>"refs/heads/master", "variables_attributes"=>"[FILTERED]"}}
Completed 500 Internal Server Error in 32ms (ActiveRecord: 2.1ms | Elasticsearch: 0.0ms | Allocations: 11885)
  
NoMethodError (undefined method `keep_latest_artifact?' for #<ProjectCiCdSetting:0x00007f8f992a5f78>):

Screenshot_from_2021-01-25_17-59-14

Screenshot_from_2021-01-25_17-59-28

I looked for a related database migration and made sure it ran, and logs show it being fine:

== 20201204193952 KeepLatestArtifactProjectLevel: migrating ===================
-- add_column(:project_ci_cd_settings, :keep_latest_artifact, :boolean, {:default=>true, :null=>false})
   -> 0.0007s
== 20201204193952 KeepLatestArtifactProjectLevel: migrated (0.0017s) ==========

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info
System information
System:		Debian 10
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:	5.0.9
Git Version:	2.29.0
Sidekiq Version:5.2.9
Go Version:	unknown

GitLab information
Version:	13.8.0
Revision:	0ce33bd2eaa
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	12.4
URL:		https://example.com
HTTP Clone URL:	https://gitlab.example.com/some-group/some-project.git
SSH Clone URL:	ssh://git@gitlab.example.com:7998/some-group/some-project.git
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: 

GitLab Shell
Version:	13.15.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

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: ... 47/1 ... yes 4/2 ... yes 4/3 ... yes 5/4 ... yes 5/6 ... yes 4/7 ... yes 4/8 ... yes 4/9 ... yes 4/10 ... yes 4/11 ... yes 4/13 ... yes 4/14 ... yes 5/15 ... yes 7/16 ... yes 7/17 ... yes 4/19 ... yes 7/20 ... yes 7/21 ... yes 4/22 ... yes 8/25 ... yes 8/26 ... yes 41/27 ... yes 5/28 ... yes 7/29 ... yes 5/30 ... yes 9/31 ... yes 10/32 ... yes 11/33 ... yes 11/34 ... yes 11/35 ... yes 5/36 ... yes 5/37 ... yes 5/38 ... yes 12/39 ... yes 10/40 ... yes 7/41 ... yes 7/42 ... yes 7/43 ... yes 14/44 ... yes 14/45 ... yes 5/46 ... yes 5/47 ... yes 9/48 ... yes 5/49 ... yes 5/50 ... yes 5/51 ... yes 16/52 ... yes 5/53 ... yes 5/54 ... yes 20/55 ... yes 9/56 ... yes 9/57 ... yes 9/58 ... yes 24/59 ... yes 24/60 ... yes 16/62 ... yes 16/63 ... yes 16/64 ... yes 16/65 ... yes 16/66 ... yes 47/67 ... yes 5/68 ... yes 5/69 ... yes 5/70 ... yes 5/71 ... yes 5/72 ... yes 5/73 ... yes 5/74 ... yes 5/75 ... yes 43/76 ... yes 5/77 ... yes 5/78 ... yes 5/79 ... yes 5/80 ... yes 45/81 ... yes 45/83 ... yes 5/84 ... yes 45/85 ... yes 45/86 ... yes 45/87 ... yes 45/88 ... yes 5/89 ... yes 5/90 ... yes 5/91 ... yes 5/92 ... yes 44/93 ... yes 44/95 ... yes 44/96 ... yes 44/97 ... yes 44/98 ... yes 44/99 ... yes 44/100 ... yes 5/101 ... yes 5/102 ... yes 5/103 ... yes 5/104 ... yes 5/105 ... yes 5/106 ... yes 5/107 ... yes 5/108 ... yes 5/109 ... yes 5/110 ... yes 5/111 ... yes 5/112 ... yes 5/113 ... yes 5/114 ... yes 41/115 ... yes 41/117 ... yes 41/118 ... yes 41/119 ... yes 41/120 ... yes 42/121 ... yes 42/125 ... yes 42/126 ... yes 42/127 ... yes 42/128 ... yes 5/129 ... yes 5/130 ... yes 5/131 ... yes 5/132 ... yes 5/133 ... yes 5/134 ... yes 26/135 ... yes 27/136 ... yes 9/137 ... yes 9/138 ... yes 9/139 ... yes 28/140 ... yes 28/141 ... yes 9/142 ... yes 9/143 ... yes 29/144 ... yes 29/145 ... yes 29/146 ... yes 29/147 ... yes 30/148 ... yes 31/149 ... yes 31/150 ... yes 9/151 ... yes 9/152 ... yes 47/153 ... yes 16/154 ... yes 16/155 ... yes 16/157 ... yes 16/158 ... yes 16/159 ... yes 16/160 ... yes 16/161 ... yes 5/162 ... yes 16/163 ... yes 16/164 ... yes 16/165 ... yes 9/169 ... yes 5/170 ... yes 16/171 ... yes 4/172 ... yes 10/173 ... yes 11/174 ... yes 9/175 ... yes 9/176 ... yes 5/177 ... yes 11/179 ... yes 9/180 ... yes 9/181 ... yes 7/182 ... yes 7/183 ... yes 7/184 ... yes 16/185 ... yes 9/186 ... yes 5/187 ... yes 7/188 ... yes 36/189 ... yes 47/190 ... yes 26/191 ... yes 26/192 ... yes 26/193 ... yes 26/194 ... yes 26/195 ... yes 26/196 ... yes 26/197 ... yes 26/198 ... yes 37/199 ... yes 37/200 ... yes 36/201 ... yes 36/202 ... yes 36/203 ... yes 7/204 ... yes 39/205 ... yes 46/206 ... yes 16/207 ... yes 16/208 ... yes 16/209 ... yes 16/210 ... yes 9/211 ... yes 9/212 ... yes 46/213 ... yes 16/214 ... yes 16/215 ... yes 16/216 ... yes 47/217 ... yes 56/218 ... yes 56/219 ... yes 16/220 ... yes 16/221 ... yes 16/222 ... yes 16/223 ... yes 16/224 ... yes 12/225 ... yes 9/226 ... yes 9/227 ... yes 9/228 ... yes 9/229 ... yes 16/230 ... yes 9/231 ... yes 26/232 ... yes 26/233 ... yes 16/234 ... yes 36/235 ... yes 16/236 ... yes 47/237 ... yes 47/238 ... yes 16/239 ... yes 16/240 ... yes 16/241 ... yes 16/242 ... yes 16/243 ... yes 9/244 ... yes 5/245 ... yes 16/246 ... yes 16/247 ... yes 16/248 ... yes 16/253 ... yes 49/254 ... yes 16/255 ... yes 16/256 ... yes 47/257 ... yes 7/258 ... yes 9/260 ... yes 16/261 ... yes 5/262 ... yes 16/263 ... yes 26/264 ... yes 4/265 ... yes 26/266 ... yes 26/267 ... yes 16/268 ... yes 5/269 ... yes 4/270 ... yes 5/271 ... yes 9/272 ... yes 9/273 ... yes 47/274 ... yes 26/275 ... yes 1/276 ... yes 55/277 ... yes 47/278 ... yes 16/279 ... yes 16/280 ... yes 9/281 ... yes 9/282 ... yes 26/283 ... yes 9/284 ... yes 5/285 ... yes 9/286 ... yes 47/287 ... yes 5/288 ... yes 5/289 ... yes 5/290 ... yes 26/291 ... yes 47/292 ... yes 9/293 ... yes 9/294 ... yes 57/295 ... yes 57/296 ... yes 59/297 ... yes 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? ... no Try fixing it: mkdir ~/gitlab-check-backup-1611593638 sudo mv /var/opt/gitlab/.ssh/id_deployments_rsa.pub ~/gitlab-check-backup-1611593638 sudo mv /var/opt/gitlab/.ssh/id_deployments_rsa ~/gitlab-check-backup-1611593638 For more information see: doc/ssh/README.md in section "SSH on the GitLab server" Please fix the error above and rerun the checks. Active users: ... 10 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes