Commit 7305d98c authored by axilleas's avatar axilleas Committed by Axilleas Pipinellis

Added check_redis_version. Fixes #3449

Checking the redis version will warn users that
are using an old version to update. Included
reference to the troubleshooting guide.
parent e45d1d25
...@@ -11,28 +11,27 @@ Example output: ...@@ -11,28 +11,27 @@ Example output:
``` ```
System information System information
System: Debian 6.0.6 System: Debian 6.0.7
Current User: gitlab Current User: git
Using RVM: yes Using RVM: no
RVM Version: 1.17.2 Ruby Version: 1.9.3p392
Ruby Version: ruby-1.9.3-p392 Gem Version: 1.8.23
Gem Version: 1.8.24 Bundler Version:1.3.5
Bundler Version:1.2.3 Rake Version: 10.0.4
Rake Version: 10.0.1
GitLab information GitLab information
Version: 3.1.0 Version: 5.1.0.beta2
Resivion: fd5141d Revision: 4da8b37
Directory: /home/gitlab/gitlab Directory: /home/git/gitlab
DB Adapter: mysql2 DB Adapter: mysql2
URL: http://localhost:3000 URL: http://localhost
HTTP Clone URL: http://localhost:3000/some-project.git HTTP Clone URL: http://localhost/some-project.git
SSH Clone URL: git@localhost:some-project.git SSH Clone URL: git@localhost:some-project.git
Using LDAP: no Using LDAP: no
Using Omniauth: no Using Omniauth: no
GitLab Shell GitLab Shell
Version: 1.0.4 Version: 1.2.0
Repositories: /home/git/repositories/ Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/ Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git Git: /usr/bin/git
...@@ -61,60 +60,43 @@ Example output: ...@@ -61,60 +60,43 @@ Example output:
``` ```
Checking Environment ... Checking Environment ...
gitlab user is in git group? ... yes Git configured for git user? ... yes
Has no "-e" in ~git/.profile ... yes
Git configured for gitlab user? ... yes
Has python2? ... yes Has python2? ... yes
python2 is supported version? ... yes python2 is supported version? ... yes
Checking Environment ... Finished Checking Environment ... Finished
Checking Gitolite ... Checking Gitlab Shell ...
Using recommended version ... yes GitLab Shell version? ... OK (1.2.0)
Config directory exists? ... yes
Config directory owned by git:git? ... yes
Config directory access is drwxr-x---? ... yes
Repo base directory exists? ... yes Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes Repo base access is drwxrws---? ... yes
post-receive hook exists? ... yes
post-receive hook up-to-date? ... yes post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ... post-receive hooks in repos are links: ... yes
GitLab ... ok
Non-Ascii Files Test ... ok
Touch Commit Test ... ok
Without Master Test ... ok
Git config in repos: ...
GitLab ... ok
Non-Ascii Files Test ... ok
Touch Commit Test ... ok
Without Master Test ... ok
Checking Gitolite ... Finished Checking Gitlab Shell ... Finished
Checking Resque ... Checking Sidekiq ...
Running? ... yes Running? ... yes
Checking Resque ... Finished Checking Sidekiq ... Finished
Checking GitLab ... Checking GitLab ...
Database config exists? ... yes Database config exists? ... yes
Database is not SQLite ... yes Database is SQLite ... no
All migrations up? ... yes All migrations up? ... yes
GitLab config exists? ... yes GitLab config exists? ... yes
GitLab config not outdated? ... yes GitLab config outdated? ... no
Log directory writable? ... yes Log directory writable? ... yes
Tmp directory writable? ... yes Tmp directory writable? ... yes
Init script exists? ... yes Init script exists? ... yes
Init script up-to-date? ... yes Init script up-to-date? ... yes
Projects have satellites? ... Projects have satellites? ... yes
GitLab ... yes Redis version >= 2.0.0? ... yes
Non-Ascii Files Test ... yes
Touch Commit Test ... yes
Without Master Test ... yes
Checking GitLab ... Finished Checking GitLab ... Finished
``` ```
......
### Add user to as a developer to all projects ### Add user as a developer to all projects
``` ```
bundle exec rake gitlab:import:user_to_projects[username@domain.tld] bundle exec rake gitlab:import:user_to_projects[username@domain.tld]
......
...@@ -23,6 +23,7 @@ namespace :gitlab do ...@@ -23,6 +23,7 @@ namespace :gitlab do
check_init_script_exists check_init_script_exists
check_init_script_up_to_date check_init_script_up_to_date
check_satellites_exist check_satellites_exist
check_redis_version
finished_checking "GitLab" finished_checking "GitLab"
end end
...@@ -245,6 +246,23 @@ namespace :gitlab do ...@@ -245,6 +246,23 @@ namespace :gitlab do
fix_and_rerun fix_and_rerun
end end
end end
def check_redis_version
print "Redis version >= 2.0.0? ... "
if run_and_match("redis-cli --version", /redis-cli 2.\d.\d/)
puts "yes".green
else
puts "no".red
try_fixing_it(
"Update your redis server to a version >= 2.0.0"
)
for_more_information(
"gitlab-public-wiki/wiki/Trouble-Shooting-Guide in section sidekiq"
)
fix_and_rerun
end
end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment