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
Show 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,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
Re
sivion: fd5141d
Re
vision: 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 Git
olite
...
Checking Git
lab 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 Git
olite
... Finished
Checking Git
lab 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
```
```
...
...
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]
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
...
@@ -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
...
...
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