BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b39aba73
Commit
b39aba73
authored
Dec 05, 2012
by
Johannes Schleifenbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add rake task to gather system information
parent
8022628f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
0 deletions
+78
-0
maintenance.md
doc/raketasks/maintenance.md
+30
-0
info.rake
lib/tasks/gitlab/info.rake
+48
-0
No files found.
doc/raketasks/maintenance.md
View file @
b39aba73
...
...
@@ -11,6 +11,36 @@ bundle exec rake gitlab:app:setup
```
### Gather Information about GitLab Installation
This command gathers information about your GitLab installation. These can be used in issue reports.
```
bundle exec rake gitlab:app:info
```
Example output:
```
Gitlab information
Version: 4.0.0pre
Resivion: 8022628
System information
System: Debian6.0.6
Home: /home/gitlab
User: gitlab
Ruby: ruby-1.9.3-p286
Gems: 1.8.24
Gitolite information
Version: v3.04-4-g4524f01
Admin URI: git@localhost:gitolite-admin
Base Path: /home/git/repositories/
Hook Path: /home/git/.gitolite/hooks/
Git: /usr/bin/git
```
### Check GitLab installation status
[
Trouble-Shooting-Guide
](
https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide
)
...
...
lib/tasks/gitlab/info.rake
0 → 100644
View file @
b39aba73
namespace
:gitlab
do
namespace
:app
do
desc
"GITLAB | Get Information about this installation"
task
:info
=>
:environment
do
puts
""
puts
"Gitlab information"
.
yellow
puts
"Version:
\t
#{
Gitlab
::
Version
}
"
puts
"Resivion:
\t
#{
Gitlab
::
Revision
}
"
# check which os is running
if
Kernel
.
system
(
'lsb_release > /dev/null 2>&1'
)
os_name
=
`lsb_release -irs`
elsif
File
.
exists?
(
'/etc/system-release'
)
&&
File
.
readable?
(
'/etc/system-release'
)
os_name
=
File
.
read
(
'/etc/system-release'
)
elsif
File
.
exists?
(
'/etc/debian_version'
)
&&
File
.
readable?
(
'/etc/debian_version'
)
debian_version
=
File
.
read
(
'/etc/debian_version'
)
os_name
=
"Debian
#{
debian_version
}
"
end
os_name
=
os_name
.
gsub
(
/\n/
,
''
)
# check gitolite version
gitolite_version_file
=
"
#{
Gitlab
.
config
.
git_base_path
}
/../gitolite/src/VERSION"
if
File
.
exists?
(
gitolite_version_file
)
&&
File
.
readable?
(
gitolite_version_file
)
gitolite_version
=
File
.
read
(
gitolite_version_file
)
else
gitolite_version
=
'unknown'
end
puts
""
puts
"System information"
.
yellow
puts
"System:
\t\t
#{
os_name
}
"
puts
"Home:
\t\t
#{
ENV
[
'HOME'
]
}
"
puts
"User:
\t\t
#{
ENV
[
'LOGNAME'
]
}
"
puts
"Ruby:
\t\t
#{
ENV
[
'RUBY_VERSION'
]
}
"
puts
"Gems:
\t\t
#{
`gem --version`
}
"
puts
""
puts
"Gitolite information"
.
yellow
puts
"Version:
\t
#{
gitolite_version
}
"
puts
"Admin URI:
\t
#{
Gitlab
.
config
.
git_host
.
admin_uri
}
"
puts
"Base Path:
\t
#{
Gitlab
.
config
.
git_base_path
}
"
puts
"Hook Path:
\t
#{
Gitlab
.
config
.
git_hooks_path
}
"
puts
"Git:
\t\t
#{
Gitlab
.
config
.
git
.
path
}
"
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