Robert Speicher
28a8d0b5db
Merge branch 'add_user_repo_integrity_rake_task' into 'master'
...
Add user repository integrity check rake task
Corrupt repositories and stuck lock files can cause weird issues in
GitLab. Often we know which user is having these problems and then we
have to go hunt down which repository is causing it. Several times
recently that involved me running queries in the rails console to get
an array of projects and then writing a quick Ruby script to loop
through and run `git fsck`. This last time I also had to check for the
existence of `config.lock` and ref lock files.
This rake task will eliminate all of those steps and allow an admin to
simply specify a username.
I also added the lock file checks to the existing `gitlab:repo:check`
task which goes through all projects.
See merge request !2080
2015-12-15 18:36:28 +00:00
Drew Blessing
f8bf6c4b2c
[ci skip] Add user repository integrity check rake task
2015-12-14 15:27:14 -06:00
Stan Hu
9c5d8079a3
Bump Redis requirement to 2.8 for Sidekiq 4 requirements
...
Closes #3649
[ci skip]
2015-12-12 07:51:50 -08:00
Robert Speicher
d09d62b6b8
Replace all usages of `git` command with configurable binary path
...
Closes #3311
2015-11-03 17:11:09 -05:00
Benny Schimmer
d02a467d64
Fix regex in redis version check
2015-10-19 22:14:22 +02:00
Douwe Maan
712d17684b
Make Reply by email easier to configure
2015-10-13 13:10:49 +02:00
Achilleas Pipinellis
110e90c855
Skip check_initd_configured_correctly on omnibus installs
...
This was causing the task `gitlab-rake gitlab:incoming_email:check`
to fail.
2015-09-22 22:56:49 +03:00
Douwe Maan
ee028d9d60
Rename reply_by_email to incoming_email to prepare for the future.
2015-09-21 10:35:37 +02:00
Marin Jankovski
8bd419d9c8
Merge branch 'upgrade-redis-required-check' into 'master'
...
Upgrade Redis requirement check to 2.4.0 per https://github.com/mperham/sidekiq/pull/957
Closes #2222
Closes #2445
See merge request !1251
2015-09-07 07:39:58 +00:00
Stan Hu
fd6eba34eb
Use File.join to prevent extra slash in help message from appearing. Before:
...
```
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell//bin/create-hooks
```
2015-09-06 07:41:23 -07:00
Stan Hu
30039dae63
Upgrade Redis requirement check to 2.4.0 per https://github.com/mperham/sidekiq/pull/957
...
Closes #2222
Closes #2445
2015-09-06 00:35:16 -07:00
Robert Speicher
f0bdf7f810
Merge branch 'reply-by-email' into 'master'
...
Reply by email
Fixes #1360 .
It's far from done, but _it works_.
See merge request !1173
2015-08-22 00:00:08 +00:00
Douwe Maan
0366655311
Fix check task for development.
2015-08-21 15:06:04 -07:00
Douwe Maan
50baa1fdd1
Add development section to doc.
2015-08-21 15:03:16 -07:00
Jacob Vosmaer
bd78e1a2e9
Merge pull request #9535 from bbodenmiller/patch-3
...
check upload dir permissions
2015-08-21 14:30:58 +02:00
Douwe Maan
41ed60c21a
Fix MailRoom running check.
2015-08-20 14:09:37 -07:00
Douwe Maan
123af78561
Add gitlab:reply_by_email:check rake task.
2015-08-20 14:03:04 -07:00
Dmitriy Zaporozhets
4a0fa27017
Merge branch 'master' into remove-satellites
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-17 11:41:53 +02:00
Ben Bodenmiller
ea9b8fe5f1
check uploads dir
...
Detect issues with uploads dir, e.g. permission and ownership issues
with the users uploads dir. This helps troubleshoot and correct
gitlab-org/omnibus-gitlab#311 . Fixes gitlabhq#7500, gitlabhq#7052.
Related to gitlabhq#6281.
2015-08-16 16:57:15 -07:00
Robert Speicher
33c818d2d8
Require Ruby 2.1.0 in `gitlab:app:check` task
...
[ci skip]
2015-08-15 20:04:52 -04:00
Dmitriy Zaporozhets
3e259ea8bc
Revert "Merge branch 'revert-satellites' into 'master'
"
...
This reverts commit 5daf44b7c8
, reversing
changes made to 2f706fbd23
.
2015-08-11 14:33:31 +02:00
Dmitriy Zaporozhets
9f10943c1a
Revert "Merge branch 'drop-satellites'"
...
This reverts commit 957e849f41
, reversing
changes made to 6b9dbe9f5a
.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-11 10:28:42 +02:00
Dmitriy Zaporozhets
b48b07044b
Merge branch 'master' into drop-satellites
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-04 16:42:36 +02:00
Stan Hu
ee17102848
Check that hooks directory exists before attempting to call realpath
...
Closes #2121
2015-07-30 06:53:23 -07:00
Dmitriy Zaporozhets
a87989fb7d
Remove satellites
2015-07-15 15:45:57 +02:00
Dmitriy Zaporozhets
b8f12d1917
Replace GITLAB with GitLab in rake task descriptions
2015-06-23 16:52:40 +02:00
Marin Jankovski
7044d649a3
Add autocrlf back to installation docs, add a check for it.
2015-06-03 15:42:22 +02:00
Marin Jankovski
5f7d6c7d74
Remove gitlab:env:check task.
2015-06-03 11:26:57 +02:00
Dmitriy Zaporozhets
317ed1fa90
Revert "Allow to configure smtp and sendmail in gitlab.yml"
2015-05-06 17:39:18 +03:00
Jakub Jirutka
b4be7aed77
Allow to configure smtp and sendmail in gitlab.yml
2015-05-06 13:15:33 +02:00
tonic
2e34b7aab5
fix redis 3.0.0
2015-04-25 21:46:10 +08:00
Vinnie Okada
acd80bdc2d
Add new rake task
...
Add a task that checks repository integrity with `git fsck`.
2015-04-15 22:22:20 -06:00
Zeger-Jan van de Weg
67f55d9b25
Let the server fix unconfigured git
2015-03-16 16:28:20 +01:00
Dmitriy Zaporozhets
ae7e380632
Add active users to gitlab:check
2015-03-10 12:03:04 -07:00
Marin Jankovski
18d9172edc
Use a different name of the method to check if sanitize is enabled in check task.
2014-12-22 10:03:52 +01:00
Robert Schilling
f7f56e4a0b
Merge pull request #8256 from cirosantilli/rm-unused-has_gitlab_shell3
...
Remove unused has_gitlab_shell3? method
2014-12-21 10:15:34 +01:00
Ciro Santilli
586590d20e
Remove unused has_gitlab_shell3? method
2014-11-05 17:24:20 +01:00
Ciro Santilli
f36db59d97
Factor GITLAB_SHELL_VERSION get method
2014-11-05 17:16:04 +01:00
Dmitriy Zaporozhets
05f19392b7
Make gitlab ldap check work for old and new syntax
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-10-22 11:11:18 +03:00
Dmitriy Zaporozhets
da21b9e7d0
Fix rake gitlab:ldap:check
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-10-21 18:26:40 +03:00
Dmitriy Zaporozhets
8bff9a4098
Merge branch 'refator-members-logic' of https://dev.gitlab.org/dzaporozhets/gitlabhq into 7-4-pre
2014-09-17 21:31:41 +03:00
Jacob Vosmaer
45a6b62407
Check for hooks directory symlink in gitlab:check
2014-09-16 17:11:25 +02:00
Dmitriy Zaporozhets
8210d81381
Replace old references of users_project & users_group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-14 19:51:54 +03:00
Dmitriy Zaporozhets
c69b8e0459
Huge replace of old users_project and users_group references
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-14 19:32:51 +03:00
Jacob Vosmaer
042465c448
Use create-hooks instead of rewrite-hooks.sh
...
The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's
create-hooks script.
2014-09-08 10:16:15 +02:00
Ben Bodenmiller
5e2bce0fef
change git to git bin path
2014-08-30 17:09:32 -07:00
Ben Bodenmiller
ecd33c9d92
add git config --global core.autocrlf check
...
core.autocrlf was added to install guide in 2d681c0d1e
but not added to check script
2014-08-04 20:41:20 -07:00
Dmitriy Zaporozhets
059f3a34ac
Check ruby version to be >= 2.0.0
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-23 11:44:27 +03:00
Marin Jankovski
553f3aba48
Remove duplicated calls.
2014-07-07 14:19:32 +02:00
Marin Jankovski
4c68d2387e
Add sanitize option to gitlab check rake task.
2014-07-07 14:12:06 +02:00
Jacob Vosmaer
90bfe286a6
Skip init script checks on omnibus-gitlab
...
Omnibus-gitlab does not use the init script.
2014-06-12 09:31:17 +02:00
Marin Jankovski
dca6c490cc
Update check task and add to monthly release doc lines about gitlab_shell_version file.
2014-06-10 11:16:47 +02:00
Dmitriy Zaporozhets
94b0f1b2bb
Bump gitlab-shell version
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-31 15:57:22 +03:00
Dmitriy Zaporozhets
bd7c3955b1
Merge pull request #6882 from Tandrial/master
...
Satellites access fix
2014-05-30 16:59:02 +03:00
Marin Jankovski
2341cefd6f
Move from script to bin directory.
2014-05-27 17:14:41 +02:00
Marin Jankovski
b019c06195
Required shell version is now 1.9.4.
2014-05-22 11:01:01 +02:00
Michael Krane
a5e20638c2
Satellites access fix
2014-04-27 11:36:45 +02:00
Jacob Vosmaer
77e565d347
Bump the required gitlab-shell version to 1.9.3
2014-04-23 11:13:21 +02:00
Marin Jankovski
03b8dcce87
Change the satellites directory permission in the install guide, add to rake check task.
2014-04-02 15:25:26 +02:00
Marin Jankovski
7bf92b368f
Ldap check recognize ldap user filter.
2014-03-26 15:38:14 +01:00
Marin Jankovski
895c913247
Use the latest tag, 1.9.1 for gitlab-shell.
2014-03-21 12:42:59 +01:00
Dmitriy Zaporozhets
e013be10d7
GitLab requires gitlab-shell v1.9.0
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-20 13:37:35 +02:00
Jacob Vosmaer
acaf297846
Merge pull request #5993 from DarkHorseComics/bypass-commented-sqlite
...
Explain what to do about legacy sqlite in database.yml
2014-03-18 10:48:27 +01:00
Dmitriy Zaporozhets
8fa53ce43d
Merge branch 'check_orphaned_users_groups' into 'master'
...
Check Orphaned Users Groups
2014-03-18 07:14:08 +00:00
Jamey J. DeOrio
37192d5e18
Add more descriptive line for resolving sqlite error during check
2014-03-17 09:43:27 -07:00
Jacob Vosmaer
5e7e814e81
Drop UsersGroup orphans using `rails runner`
2014-03-17 14:42:20 +01:00
Jacob Vosmaer
4aa3ce7534
Add check for orphaned UsersGroups
2014-03-14 17:25:11 +01:00
Jacob Vosmaer
090ed21e6f
Batch key import requires gitlab-shell 1.8.5
2014-03-14 15:58:47 +01:00
Dmitriy Zaporozhets
bce8edbbcc
Require gitlab-shell v1.8.4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-14 12:57:26 +02:00
Dmitriy Zaporozhets
dca8f6d4a6
Merge pull request #6492 from tsigo/gitlab-shell-custom-path
...
Respect custom gitlab_shell path in gitlab:gitlab_shell:check task
2014-03-10 17:30:21 +02:00
Robert Speicher
c5f76e5939
Popen (at least on OSX) expects an Array, not a String
...
This was causing the gitlab:check task to exit prematurely with the
error "System commands must be given as an array of strings."
2014-03-07 21:39:48 -05:00
Robert Speicher
30f8713aa1
Respect custom gitlab_shell path in gitlab:gitlab_shell:check task
...
Prior to this change, if I customized the config value of
`gitlab.gitlab_shell.path`, the check would ignore this value in favor
of `"~<gitlab.gitlab_shell.ssh_user>/gitlab-shell/"` resulting in a
failed check when the configuration was otherwise valid.
2014-03-07 21:05:56 -05:00
Jacob Vosmaer
2b816075dc
Replace backticks with Gitlab::Popen
2014-03-03 08:40:29 +01:00
Johannes Schleifenbaum
7085892e47
remove remaining python references
2014-02-03 11:25:47 +01:00
Dmitriy Zaporozhets
9e181d36ea
Dont check for python any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-31 13:09:10 +02:00
Jacob Vosmaer
2f4d0a3008
Rephrase LDAP check script output
...
The previous phrasing lead some people to believe that there is a limit
on the number of LDAP users that can sign in to a GitLab instance. That
is not the case; the limit in the check script only applies to the
diagnostic information result set, so that running `rake gitlab:check`
does not output thousands of LDAP users.
2014-01-21 11:05:03 +01:00
Jacob Vosmaer
af9a14c49c
Explain that `limit` only applies to the check
2014-01-16 18:40:45 +01:00
Jacob Vosmaer
80302a0f6f
Limit the number of results in gitlab:ldap:check
2013-12-03 18:51:21 +01:00
Jacob Vosmaer
376cfc6ac6
Give more information in rake gitlab:ldap:check
2013-11-28 18:12:30 +01:00
Jacob Vosmaer
9f4909faad
Add LDAP check to rake gitlab:check
2013-11-28 15:20:40 +01:00
Dmitriy Zaporozhets
b07c02eb13
Add more info to admin dashboard
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-11-20 13:41:41 +02:00
Dmitriy Zaporozhets
7101b22c2e
Recommend gitlab-shell 1.7.9 in docs and check task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-11-20 12:34:14 +02:00
Jacob Vosmaer
0ab0ca0d9d
Use gitlab-shell 1.7.8
2013-11-14 13:35:45 +01:00
Dmitriy Zaporozhets
c28786ecbe
Require gitlab-shell 1.7.6
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-11-06 21:52:37 +02:00
Dmitriy Zaporozhets
4c47a89fa5
Require gitlab-shell 1.7.4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-11-01 16:58:24 +02:00
Perry Faro
5d98afb55b
Fix sidekiq start text in documentation and gitlab:check
2013-11-01 11:52:44 +01:00
Dmitriy Zaporozhets
9ab4539a62
Require gitlab-shell v1.7.3
2013-10-31 19:48:39 +02:00
Jacob Vosmaer
73d19bb320
Count sidekiq processes using String#scan
...
It seems there is no easy way to count pattern occurences with
String#match.
2013-10-17 12:01:29 +02:00
Marin Jankovski
f3d77a7661
Add invert match to sidekiq match.
2013-10-16 13:39:09 +02:00
Dmitriy Zaporozhets
3db47d12f2
Merge branch 'check_hooks' of /home/git/repositories/gitlab/gitlabhq
2013-10-07 10:29:00 +00:00
Jacob Vosmaer
99916fe159
Add troubleshooting hints to update hook check
2013-10-07 11:27:38 +02:00
Jacob Vosmaer
4017789f5a
Only kill sidekiqs belonging to gitlab user
2013-10-04 11:25:44 +02:00
Johannes Schleifenbaum
b5d7bcb784
[gitlab:check] Fix detecting the status of sidekiq
...
If you are running another sidekiq instance on your server, e.g. GitLab
CI, the check script would parse the output of `ps aux` searching for
`sidekiq` and returning success, although the GitLab sidekiq may not be
running.
Now the `ps` call will only print the processes run by the GitLab user.
2013-09-27 16:06:06 +02:00
Jacob Vosmaer
1a9b0df767
Check whether only one sidekiq is running
2013-09-27 12:57:05 +02:00
Dmitriy Zaporozhets
b6adabb45d
Merge branch '6-1-stable'
...
Conflicts:
lib/tasks/gitlab/check.rake
2013-09-25 18:34:50 +03:00
Jacob Vosmaer
ddf873ad5e
Add gitlab-shell/bin/check to rake gitlab:check
...
We sometimes encounter connectivity issues where gitlab-shell cannot
make API calls to the Rails application. There is a self-test script
`gitlab-shell/bin/check` that tries to connect to the API; this commit
runs that script as part of `rake gitlab:check`.
2013-09-24 14:36:57 +02:00
Hiroyuki Sato
a5e19c4edc
Update check script
...
* GitLab Shell 1.7.1 is required
* Global projects are not supported (refs #5152 )
2013-09-24 15:32:56 +09:00
Marin Jankovski
cb6d7e5192
Rescue an error if group doesn't exist
2013-09-12 15:28:46 +02:00
James Newton
4994ebbb11
update gitlab:check to look for update hook, not post-receive
2013-08-27 16:15:32 -05:00
Dmitriy Zaporozhets
475f607a22
Use gitlab-shell authorized_keys truncation. Fix issue with authorized_keys stored in different location
2013-07-18 13:55:01 +03:00