Handle out-of-space errors
Created by: junalmeida
Summary: Creating a new project using web-ui never fails even with disk is out-of-space.
Steps to reproduce: Make sure that the disk where git repository resides is full (100%). Create a new project using the web UI.
Expected behavior: Web-UI should inform that cannot create a new project due to out-of-space.
Observed behavior: Web-UI creates the project and an empty folder. If i call gitlab-shell cli I can see the real problem. ( /home/git/gitlab-shell/bin/gitlab-projects add-project ) Here is the disk usage: /dev/md0 5,5T 5,2T 0 100% /media/dados
Relevant logs and/or screen shots: There is no useful log about, and this is part of the issue.
Output of checks
administrador@dev:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ...
Sensorial / teste ... repository is empty
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/media/dados/git: OK
/home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.2.12
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
Sensorial / teste ... yes
Projects have satellites? ...
Sensorial / teste ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.5)
Checking GitLab ... Finished
Version of GitLab you are running: 6.5.1 2ffa03ab
Describe your setup (use relevant parts from sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production) Ubuntu Precise x64
Possible fixes: