Project storage information showing historic data
Summary
/admin/projects
show incorrect storage size for projects. Related to !16539 (merged)
It appears to have the old, historic data from before the !16539 (merged) merge. Data is consistent in the DB and Rails, but does not match actual disk usage. Potentially, it is showing historic max size.
Customer Example
In the below output example, Rails console reports a build artifacts size of over 7GB, but their entire artifacts folder is only at 1.6GB.
<ProjectStatistics id: 97, project_id: 97, namespace_id: 14, commit_count: 43, storage_size: 7891748019, repository_size: 4592762, lfs_objects_size: 0, build_artifacts_size: 7887155257, shared_runners_seconds: 0, shared_runners_seconds_last_reset: nil>
# du -hd 1 /mnt/block-for-instance-4058-100/shared/
120K /mnt/block-for-instance-4058-100/shared/tmp
4.0K /mnt/block-for-instance-4058-100/lfs-objects
8.0K /mnt/block-for-instance-4058-100/cache
12K /mnt/block-for-instance-4058-100/pages
1.6G /mnt/block-for-instance-4058-100/artifacts
59G /mnt/block-for-instance-4058-100/registry
61G /mnt/block-for-instance-4058-100/shared/
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 14.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknownGitLab information Version: 10.5.3-ee Revision: e847016 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.5 URL: https://tp.githost.io HTTP Clone URL: https://tp.githost.io/some-group/some-project.git SSH Clone URL: git@tp.githost.io:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: google_oauth2
GitLab Shell Version: 6.0.3 Repository storage paths:
- default: /mnt/block-for-instance-4058-100/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 >= 6.0.3 ? ... OK (6.0.3) 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: ... 8/5 ... ok 8/6 ... ok 9/7 ... ok 9/8 ... ok 9/9 ... ok 9/10 ... ok 17/11 ... ok 17/12 ... ok 12/13 ... ok 17/14 ... ok 12/17 ... ok 12/18 ... ok 14/19 ... ok 14/20 ... ok 14/24 ... ok 14/26 ... ok 14/27 ... ok 15/29 ... ok 16/30 ... ok 17/31 ... ok 18/32 ... ok 18/33 ... ok 14/34 ... ok 12/35 ... ok 14/36 ... ok 10/37 ... repository is empty 12/38 ... ok 18/39 ... ok 12/41 ... ok 12/43 ... ok 12/44 ... ok 12/45 ... ok 17/46 ... ok 14/48 ... ok 12/50 ... ok 14/51 ... ok 35/52 ... ok 12/53 ... ok 12/54 ... ok 12/55 ... ok 12/56 ... ok 12/57 ... ok 12/59 ... ok 12/61 ... ok 12/63 ... ok 12/64 ... ok 12/65 ... ok 12/66 ... ok 12/67 ... ok 12/68 ... ok 12/69 ... ok 12/70 ... ok 12/72 ... ok 12/73 ... ok 12/76 ... ok 12/77 ... ok 45/78 ... ok 12/80 ... ok 49/81 ... ok 14/82 ... ok 49/84 ... ok 51/88 ... ok 52/89 ... ok 56/90 ... ok 12/91 ... repository is empty 12/92 ... ok 12/93 ... ok 58/96 ... ok 14/97 ... ok 45/98 ... ok 12/99 ... ok 12/100 ... ok 45/101 ... ok 63/104 ... ok 12/105 ... ok 45/106 ... ok 45/107 ... ok 43/108 ... ok 14/110 ... ok 45/111 ... ok 51/113 ... ok 52/114 ... ok 17/115 ... ok 7/116 ... ok 75/117 ... ok 14/122 ... ok 14/123 ... ok 45/124 ... ok 12/125 ... ok 12/126 ... ok 12/127 ... ok 17/128 ... ok 17/129 ... ok 56/130 ... ok 17/132 ... repository is empty 12/135 ... ok 14/138 ... repository is empty 17/157 ... ok 8/168 ... repository is empty 75/169 ... repository is empty 17/170 ... ok 85/171 ... ok 85/172 ... repository is empty 75/183 ... ok 14/184 ... ok 14/185 ... ok 14/186 ... ok 87/187 ... ok 85/190 ... repository is empty 52/191 ... ok 52/192 ... ok 17/194 ... ok 87/195 ... ok 14/196 ... repository is empty 14/197 ... ok 42/198 ... ok 9/199 ... ok 12/201 ... ok 12/207 ... ok 17/208 ... ok 12/209 ... ok 17/210 ... ok 9/211 ... ok 82/212 ... ok 12/213 ... ok 14/214 ... ok 25/215 ... ok 12/216 ... ok 79/218 ... ok 12/221 ... ok 89/222 ... repository is empty 51/223 ... ok 51/224 ... ok 9/225 ... ok 12/226 ... ok 60/227 ... ok 99/228 ... ok 12/230 ... ok 95/231 ... ok 12/233 ... ok 102/234 ... ok 17/235 ... ok 35/236 ... ok 36/237 ... ok 35/238 ... ok 103/243 ... ok 104/246 ... ok 58/247 ... ok 12/248 ... ok 64/249 ... ok 103/250 ... 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: ... 8/5 ... yes 8/6 ... yes 9/7 ... yes 9/8 ... yes 9/9 ... yes 9/10 ... yes 17/11 ... yes 17/12 ... yes 12/13 ... yes 17/14 ... yes 12/17 ... yes 12/18 ... yes 14/19 ... yes 14/20 ... yes 14/24 ... yes 14/26 ... yes 14/27 ... yes 15/29 ... yes 16/30 ... yes 17/31 ... yes 18/32 ... yes 18/33 ... yes 14/34 ... yes 12/35 ... yes 14/36 ... yes 10/37 ... yes 12/38 ... yes 18/39 ... yes 12/41 ... yes 12/43 ... yes 12/44 ... yes 12/45 ... yes 17/46 ... yes 14/48 ... yes 12/50 ... yes 14/51 ... yes 35/52 ... yes 12/53 ... yes 12/54 ... yes 12/55 ... yes 12/56 ... yes 12/57 ... yes 12/59 ... yes 12/61 ... yes 12/63 ... yes 12/64 ... yes 12/65 ... yes 12/66 ... yes 12/67 ... yes 12/68 ... yes 12/69 ... yes 12/70 ... yes 12/72 ... yes 12/73 ... yes 12/76 ... yes 12/77 ... yes 45/78 ... yes 12/80 ... yes 49/81 ... yes 14/82 ... yes 49/84 ... yes 51/88 ... yes 52/89 ... yes 56/90 ... yes 12/91 ... yes 12/92 ... yes 12/93 ... yes 58/96 ... yes 14/97 ... yes 45/98 ... yes 12/99 ... yes 12/100 ... yes 45/101 ... yes 63/104 ... yes 12/105 ... yes 45/106 ... yes 45/107 ... yes 43/108 ... yes 14/110 ... yes 45/111 ... yes 51/113 ... yes 52/114 ... yes 17/115 ... yes 7/116 ... yes 75/117 ... yes 14/122 ... yes 14/123 ... yes 45/124 ... yes 12/125 ... yes 12/126 ... yes 12/127 ... yes 17/128 ... yes 17/129 ... yes 56/130 ... yes 17/132 ... yes 12/135 ... yes 14/138 ... yes 17/157 ... yes 8/168 ... yes 75/169 ... yes 17/170 ... yes 85/171 ... yes 85/172 ... yes 75/183 ... yes 14/184 ... yes 14/185 ... yes 14/186 ... yes 87/187 ... yes 85/190 ... yes 52/191 ... yes 52/192 ... yes 17/194 ... yes 87/195 ... yes 14/196 ... yes 14/197 ... yes 42/198 ... yes 9/199 ... yes 12/201 ... yes 12/207 ... yes 17/208 ... yes 12/209 ... yes 17/210 ... yes 9/211 ... yes 82/212 ... yes 12/213 ... yes 14/214 ... yes 25/215 ... yes 12/216 ... yes 79/218 ... yes 12/221 ... yes 89/222 ... yes 51/223 ... yes 51/224 ... yes 9/225 ... yes 12/226 ... yes 60/227 ... yes 99/228 ... yes 12/230 ... yes 95/231 ... yes 12/233 ... yes 102/234 ... yes 17/235 ... yes 35/236 ... yes 36/237 ... yes 35/238 ... yes 103/243 ... yes 104/246 ... yes 58/247 ... yes 12/248 ... yes 64/249 ... yes 103/250 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1521239704 sudo mv /var/opt/gitlab/.ssh/id_rsa.pub ~/gitlab-check-backup-1521239704 sudo mv /var/opt/gitlab/.ssh/id_rsa ~/gitlab-check-backup-1521239704 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: ... 62 Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)
Checking GitLab ... Finished
Possible fixes
@stanhu mentioned trying a "force refresh".