Artifacts are expiring immediately
Summary
Jobs with artifacts, that do not have explicitly set expire_in
in the YAML, are removed almost immediately right after they are uploaded (~10 seconds). The default artifact expiration was set to "30 days".
Version: 11.0.4-ee
Steps to reproduce
- Have
.gitlab-ci.yml
with job producing artifacts. - Ensure that
job.artifacts.expire_in
is not set (default) - Ensure that the default job expiration is set to 0 (non-expiring)
- Do repo changes and/or trigger the job
- Change the default job expiration is set to "30 days"
- Do repo changes and/or trigger the job
- Observe artifacts expire for recent job
What is the current bug behavior?
Artifacts are removed after ~30 seconds, even when the default is set to 30 days.
What is the expected correct behavior?
Expire artifacts in 30 days, as the default is set.
Relevant logs and/or screenshots
None
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: RedHatEnterpriseServer 6.8 Proxy: no Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.17.1 Sidekiq Version:5.1.3 Go Version: unknown
GitLab information Version: 11.0.4-ee Revision: 3350cd6 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.8 URL: https://git.prodsec.redhat.com HTTP Clone URL: https://git.prodsec.redhat.com/some-group/some-project.git SSH Clone URL: git@git.prodsec.redhat.com:some-group/some-project.git Elasticsearch: yes Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: saml
GitLab Shell Version: 7.1.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 Shell ...
GitLab Shell version >= 7.1.4 ? ... OK (7.1.4) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 94/2 ... ok 94/3 ... ok 8/4 ... ok 8/6 ... ok 8/10 ... ok 94/11 ... ok 94/12 ... ok 8/14 ... ok 4/16 ... ok 8/17 ... ok 26/22 ... ok 31/23 ... ok 31/24 ... ok 31/25 ... ok 31/28 ... ok 31/29 ... ok 31/30 ... ok 31/31 ... ok 31/32 ... ok 31/33 ... ok 31/34 ... ok 31/35 ... ok 8/36 ... ok 5/37 ... ok 94/39 ... ok 8/42 ... ok 19/43 ... ok 31/44 ... ok 94/45 ... ok 31/46 ... ok 26/47 ... ok 94/49 ... ok 8/51 ... ok 34/52 ... ok 4/53 ... ok 50/54 ... ok 26/55 ... ok 26/58 ... ok 36/59 ... ok 36/60 ... ok 26/61 ... ok 31/62 ... ok 28/63 ... ok 27/65 ... ok 26/66 ... ok 50/67 ... ok 8/68 ... ok 27/70 ... ok 26/72 ... ok 26/73 ... ok 4/75 ... ok 50/77 ... ok 26/78 ... ok 36/81 ... ok 50/82 ... ok 48/83 ... ok 42/84 ... ok 26/85 ... ok 42/86 ... ok 48/87 ... ok 48/88 ... ok 5/90 ... ok 48/91 ... ok 50/92 ... ok 50/94 ... ok 4/95 ... ok 50/96 ... ok 8/98 ... ok 28/99 ... ok 94/100 ... ok 48/101 ... ok 57/104 ... ok 57/105 ... ok 5/106 ... ok 50/107 ... ok 39/109 ... ok 31/110 ... ok 56/113 ... ok 94/114 ... ok 59/116 ... ok 47/118 ... ok 58/119 ... ok 36/120 ... ok 29/123 ... ok 50/124 ... ok 71/126 ... ok 31/129 ... ok 71/130 ... ok 71/132 ... ok 42/133 ... ok 39/134 ... ok 50/135 ... ok 71/136 ... ok 28/137 ... ok 8/138 ... ok 42/140 ... ok 4/142 ... ok 50/143 ... ok 8/144 ... ok 8/146 ... ok 50/147 ... ok 50/149 ... ok 50/150 ... ok 50/151 ... ok 50/152 ... ok 4/153 ... ok 27/156 ... ok 42/157 ... repository is empty 42/158 ... ok 50/160 ... ok 31/161 ... ok 71/163 ... ok 39/165 ... ok 44/166 ... ok 71/167 ... ok 36/168 ... ok 29/169 ... ok 34/171 ... ok 71/173 ... ok 50/177 ... ok 74/178 ... ok 41/180 ... ok 71/181 ... ok 39/182 ... ok 5/183 ... ok 39/184 ... ok 112/185 ... ok 77/188 ... ok 8/189 ... ok 4/190 ... ok 47/191 ... ok 47/196 ... repository is empty 50/198 ... ok 84/200 ... ok 50/203 ... ok 50/204 ... ok 29/205 ... ok 88/206 ... ok 50/207 ... ok 8/208 ... repository is empty 50/210 ... ok 99/213 ... ok 99/214 ... ok 99/215 ... ok 99/216 ... ok 15/217 ... ok 39/218 ... ok 15/219 ... ok 99/220 ... ok 78/221 ... ok 42/222 ... ok 29/224 ... ok 77/226 ... ok 15/227 ... ok 5/228 ... ok 31/232 ... ok 50/233 ... repository is empty 8/234 ... ok 50/235 ... ok 8/236 ... ok 28/237 ... ok 108/238 ... ok 56/239 ... ok 8/240 ... ok 39/241 ... ok 84/242 ... ok 50/243 ... ok 88/244 ... ok 28/246 ... ok 77/247 ... ok 34/248 ... ok 8/249 ... ok 100/250 ... ok 39/252 ... ok 74/255 ... ok 39/256 ... ok 113/257 ... ok 74/258 ... ok 5/259 ... ok 15/260 ... ok 15/261 ... ok 15/262 ... ok 56/263 ... ok 105/264 ... ok 20/265 ... ok 84/267 ... ok 115/268 ... ok 116/269 ... repository is empty 15/270 ... ok 105/271 ... ok 88/272 ... ok 100/273 ... ok 8/274 ... ok 118/275 ... ok 71/276 ... ok 84/277 ... ok 110/279 ... ok 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 Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
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: ... 94/2 ... yes 94/3 ... yes 8/4 ... yes 8/6 ... yes 8/10 ... yes 94/11 ... yes 94/12 ... yes 8/14 ... yes 4/16 ... yes 8/17 ... yes 26/22 ... yes 31/23 ... yes 31/24 ... yes 31/25 ... yes 31/28 ... yes 31/29 ... yes 31/30 ... yes 31/31 ... yes 31/32 ... yes 31/33 ... yes 31/34 ... yes 31/35 ... yes 8/36 ... yes 5/37 ... yes 94/39 ... yes 8/42 ... yes 19/43 ... yes 31/44 ... yes 94/45 ... yes 31/46 ... yes 26/47 ... yes 94/49 ... yes 8/51 ... yes 34/52 ... yes 4/53 ... yes 50/54 ... yes 26/55 ... yes 26/58 ... yes 36/59 ... yes 36/60 ... yes 26/61 ... yes 31/62 ... yes 28/63 ... yes 27/65 ... yes 26/66 ... yes 50/67 ... yes 8/68 ... yes 27/70 ... yes 26/72 ... yes 26/73 ... yes 4/75 ... yes 50/77 ... yes 26/78 ... yes 36/81 ... yes 50/82 ... yes 48/83 ... yes 42/84 ... yes 26/85 ... yes 42/86 ... yes 48/87 ... yes 48/88 ... yes 5/90 ... yes 48/91 ... yes 50/92 ... yes 50/94 ... yes 4/95 ... yes 50/96 ... yes 8/98 ... yes 28/99 ... yes 94/100 ... yes 48/101 ... yes 57/104 ... yes 57/105 ... yes 5/106 ... yes 50/107 ... yes 39/109 ... yes 31/110 ... yes 56/113 ... yes 94/114 ... yes 59/116 ... yes 47/118 ... yes 58/119 ... yes 36/120 ... yes 29/123 ... yes 50/124 ... yes 71/126 ... yes 31/129 ... yes 71/130 ... yes 71/132 ... yes 42/133 ... yes 39/134 ... yes 50/135 ... yes 71/136 ... yes 28/137 ... yes 8/138 ... yes 42/140 ... yes 4/142 ... yes 50/143 ... yes 8/144 ... yes 8/146 ... yes 50/147 ... yes 50/149 ... yes 50/150 ... yes 50/151 ... yes 50/152 ... yes 4/153 ... yes 27/156 ... yes 42/157 ... yes 42/158 ... yes 50/160 ... yes 31/161 ... yes 71/163 ... yes 39/165 ... yes 44/166 ... yes 71/167 ... yes 36/168 ... yes 29/169 ... yes 34/171 ... yes 71/173 ... yes 50/177 ... yes 74/178 ... yes 41/180 ... yes 71/181 ... yes 39/182 ... yes 5/183 ... yes 39/184 ... yes 112/185 ... yes 77/188 ... yes 8/189 ... yes 4/190 ... yes 47/191 ... yes 47/196 ... yes 50/198 ... yes 84/200 ... yes 50/203 ... yes 50/204 ... yes 29/205 ... yes 88/206 ... yes 50/207 ... yes 8/208 ... yes 50/210 ... yes 99/213 ... yes 99/214 ... yes 99/215 ... yes 99/216 ... yes 15/217 ... yes 39/218 ... yes 15/219 ... yes 99/220 ... yes 78/221 ... yes 42/222 ... yes 29/224 ... yes 77/226 ... yes 15/227 ... yes 5/228 ... yes 31/232 ... yes 50/233 ... yes 8/234 ... yes 50/235 ... yes 8/236 ... yes 28/237 ... yes 108/238 ... yes 56/239 ... yes 8/240 ... yes 39/241 ... yes 84/242 ... yes 50/243 ... yes 88/244 ... yes 28/246 ... yes 77/247 ... yes 34/248 ... yes 8/249 ... yes 100/250 ... yes 39/252 ... yes 74/255 ... yes 39/256 ... yes 113/257 ... yes 74/258 ... yes 5/259 ... yes 15/260 ... yes 15/261 ... yes 15/262 ... yes 56/263 ... yes 105/264 ... yes 20/265 ... yes 84/267 ... yes 115/268 ... yes 116/269 ... yes 15/270 ... yes 105/271 ... yes 88/272 ... yes 100/273 ... yes 8/274 ... yes 118/275 ... yes 71/276 ... yes 84/277 ... yes 110/279 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.4) Git version >= 2.9.5 ? ... yes (2.17.1) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1533294811 sudo mv /var/opt/gitlab/.ssh/id_rsa.pub ~/gitlab-check-backup-1533294811 sudo mv /var/opt/gitlab/.ssh/id_rsa ~/gitlab-check-backup-1533294811 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: ... 66 Elasticsearch version 5.1 - 5.5? ... no (5.6.5) For more information see: doc/integration/elasticsearch.md
Checking GitLab ... Finished