Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
0f758405
Commit
0f758405
authored
Apr 18, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3602 from axilleas/check-redis
Added check_redis_version to check.rake
parents
4fe1c894
06a41513
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
51 deletions
+51
-51
doc/raketasks/maintenance.md
doc/raketasks/maintenance.md
+32
-50
doc/raketasks/user_management.md
doc/raketasks/user_management.md
+1
-1
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+18
-0
No files found.
doc/raketasks/maintenance.md
View file @
0f758405
...
...
@@ -11,31 +11,30 @@ Example output:
```
System information
System: Debian 6.0.6
Current User: gitlab
Using RVM: yes
RVM Version: 1.17.2
Ruby Version: ruby-1.9.3-p392
Gem Version: 1.8.24
Bundler Version:1.2.3
Rake Version: 10.0.1
System: Debian 6.0.7
Current User: git
Using RVM: no
Ruby Version: 1.9.3p392
Gem Version: 1.8.23
Bundler Version:1.3.5
Rake Version: 10.0.4
GitLab information
Version:
3.1.0
Re
sivion: fd5141d
Directory:
/home/gitlab
/gitlab
DB Adapter:
mysql2
URL:
http://localhost:3000
HTTP Clone URL:
http://localhost:3000
/some-project.git
SSH Clone URL:
git@localhost:some-project.git
Using LDAP:
no
Using Omniauth:
no
Version:
5.1.0.beta2
Re
vision: 4da8b37
Directory:
/home/git
/gitlab
DB Adapter:
mysql2
URL:
http://localhost
HTTP Clone URL:
http://localhost
/some-project.git
SSH Clone URL:
git@localhost:some-project.git
Using LDAP:
no
Using Omniauth:
no
GitLab Shell
Version:
1.0.4
Repositories:
/home/git/repositories/
Hooks:
/home/git/gitlab-shell/hooks/
Git:
/usr/bin/git
Version:
1.2.0
Repositories:
/home/git/repositories/
Hooks:
/home/git/gitlab-shell/hooks/
Git:
/usr/bin/git
```
...
...
@@ -61,60 +60,43 @@ Example output:
```
Checking Environment ...
gitlab user is in git group? ... yes
Has no "-e" in ~git/.profile ... yes
Git configured for gitlab user? ... yes
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking Git
olite
...
Checking Git
lab Shell
...
Using recommended version ... yes
Config directory exists? ... yes
Config directory owned by git:git? ... yes
Config directory access is drwxr-x---? ... yes
GitLab Shell version? ... OK (1.2.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
post-receive hook exists? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
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
post-receive hooks in repos are links: ... yes
Checking Git
olite
... Finished
Checking Git
lab Shell
... Finished
Checking
Resque
...
Checking
Sidekiq
...
Running? ... yes
Checking
Resque
... Finished
Checking
Sidekiq
... Finished
Checking GitLab ...
Database config exists? ... yes
Database is
not SQLite ... yes
Database is
SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config
not outdated? ... 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 satellites? ...
GitLab ... yes
Non-Ascii Files Test ... yes
Touch Commit Test ... yes
Without Master Test ... yes
Projects have satellites? ... yes
Redis version >= 2.0.0? ... yes
Checking GitLab ... Finished
```
...
...
doc/raketasks/user_management.md
View file @
0f758405
### 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]
...
...
lib/tasks/gitlab/check.rake
View file @
0f758405
...
...
@@ -23,6 +23,7 @@ namespace :gitlab do
check_init_script_exists
check_init_script_up_to_date
check_satellites_exist
check_redis_version
finished_checking
"GitLab"
end
...
...
@@ -245,6 +246,23 @@ namespace :gitlab do
fix_and_rerun
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment