summaryrefslogtreecommitdiff
path: root/lib/tasks/gitlab/check.rake
Commit message (Collapse)AuthorAgeFilesLines
* Introduce better credential and error checking to `rake gitlab:ldap:check`Drew Blessing2016-11-081-9/+30
| | | | | | | It was previously possible for invalid credential errors to go unnoticed in this task. Users would believe everything was configured correctly and then sign in would fail with 'invalid credentials'. This adds a specific bind check, plus catches errors connecting to the server. Also, specs :)
* Move reply by email docs to a new locationdocs/refactor-reply-by-emailAchilleas Pipinellis2016-09-251-3/+3
| | | | [ci skip]
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-111-10/+10
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* Rename `run` task helper method to prevent conflict with StateMachineRobert Speicher2016-08-091-4/+4
| | | | | | | | | This prevents the following message from appearing whenever running a Rake task: Instance method "run" is already defined in Object, use generic helper instead or set StateMachines::Machine.ignore_method_conflicts = true.
* Use limit parameter rather than hardcoded valueM. Ricketts2016-07-201-1/+1
|
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-78/+89
|
* Replace colorize gem with rainbow.Connor Shea2016-06-031-89/+89
| | | | | | | | | | | | | Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize. The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance. The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product. An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded. Rainbow library: https://github.com/sickill/rainbow Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
* Fixed advice on invalid permissions on upload pathJazz2016-05-191-1/+1
|
* Improve and finish the fallback to the In-Reply-To and References header for ↵2364-fallback-to-in-reply-to-headerRémy Coutable2016-03-251-15/+0
| | | | | | | | | | | | | | | | the reply-by-email feature A few things to note: - The IncomingEmail feature is now enabled even without a correctly-formatted sub-address - Message-ID for new thread mail are kept the same so that subsequent notifications to this thread are grouped in the thread by the email service that receives the notification (i.e. In-Reply-To of the answer == Message-ID of the first thread message) - To maximize our chance to be able to retrieve the reply key, we look for it in the In-Reply-To header and the References header - The pattern for the fallback reply message id is "reply-[key]@[gitlab_host]" - Improve docs thanks to Axil
* Bump Git version requirement to 2.7.3Douwe Maan2016-03-151-1/+1
|
* Fix `gitlab:incoming_email:check` task.Douwe Maan2016-02-291-4/+6
|
* Merge branch 'uploads-700' into 'master' revert-53176717Marin Jankovski2016-02-231-6/+7
|\ | | | | | | | | | | | | Restrict permissions on public/uploads Based on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/631 See merge request !2764
| * Simplify permissions creationuploads-700Achilleas Pipinellis2016-02-101-1/+1
| | | | | | | | [ci skip]
| * Restrict permissions on public/uploadsAchilleas Pipinellis2016-02-091-6/+7
| |
* | Remove remaining sqlite method callAchilleas Pipinellis2016-02-171-1/+0
| |
* | Remove sqlite check in raketaskremove_sqlite_checkAchilleas Pipinellis2016-02-101-18/+0
|/
* Suggest prefacing find command with sudo when base permissions are wrongStan Hu2016-01-051-1/+1
| | | | Closes #5872
* Merge branch 'add_user_repo_integrity_rake_task' into 'master' Robert Speicher2015-12-151-4/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * [ci skip] Add user repository integrity check rake taskDrew Blessing2015-12-141-4/+52
| |
* | Bump Redis requirement to 2.8 for Sidekiq 4 requirementsStan Hu2015-12-121-1/+1
|/ | | | | | Closes #3649 [ci skip]
* Replace all usages of `git` command with configurable binary pathrs-git-bin-pathRobert Speicher2015-11-031-1/+1
| | | | Closes #3311
* Fix regex in redis version checkBenny Schimmer2015-10-191-1/+1
|
* Make Reply by email easier to configureDouwe Maan2015-10-131-32/+5
|
* Skip check_initd_configured_correctly on omnibus installsAchilleas Pipinellis2015-09-221-0/+5
| | | | | This was causing the task `gitlab-rake gitlab:incoming_email:check` to fail.
* Rename reply_by_email to incoming_email to prepare for the future.Douwe Maan2015-09-211-9/+9
|
* Merge branch 'upgrade-redis-required-check' into 'master'Marin Jankovski2015-09-071-3/+6
|\ | | | | | | | | | | | | | | | | | | Upgrade Redis requirement check to 2.4.0 per https://github.com/mperham/sidekiq/pull/957 Closes #2222 Closes #2445 See merge request !1251
| * Upgrade Redis requirement check to 2.4.0 per ↵Stan Hu2015-09-061-4/+7
| | | | | | | | | | | | | | | | https://github.com/mperham/sidekiq/pull/957 Closes #2222 Closes #2445
* | Use File.join to prevent extra slash in help message from appearing. Before:Stan Hu2015-09-061-2/+2
|/ | | | | | | ``` Try fixing it: sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell//bin/create-hooks ```
* Merge branch 'reply-by-email' into 'master'Robert Speicher2015-08-221-0/+169
|\ | | | | | | | | | | | | | | | | | | Reply by email Fixes #1360. It's far from done, but _it works_. See merge request !1173
| * Fix check task for development.Douwe Maan2015-08-211-2/+2
| |
| * Add development section to doc.Douwe Maan2015-08-211-2/+26
| |
| * Fix MailRoom running check.Douwe Maan2015-08-201-3/+3
| |
| * Add gitlab:reply_by_email:check rake task.Douwe Maan2015-08-201-0/+145
| |
* | Merge pull request #9535 from bbodenmiller/patch-3Jacob Vosmaer2015-08-211-0/+52
|\ \ | |/ |/| check upload dir permissions
| * check uploads dirBen Bodenmiller2015-08-161-0/+52
| | | | | | | | | | | | | | 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.
* | Merge branch 'master' into remove-satellitesDmitriy Zaporozhets2015-08-171-1/+1
|\ \ | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Require Ruby 2.1.0 in `gitlab:app:check` taskRobert Speicher2015-08-151-1/+1
| | | | | | | | | | | | [ci skip]
* | | Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-56/+0
|/ / | | | | | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* | Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-0/+56
|/ | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into drop-satellitesDmitriy Zaporozhets2015-08-041-4/+4
|\ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Check that hooks directory exists before attempting to call realpathStan Hu2015-07-301-4/+4
| | | | | | | | Closes #2121
* | Remove satellitesDmitriy Zaporozhets2015-07-151-56/+0
|/
* Replace GITLAB with GitLab in rake task descriptionsDmitriy Zaporozhets2015-06-231-5/+5
|
* Add autocrlf back to installation docs, add a check for it.Marin Jankovski2015-06-031-0/+31
|
* Remove gitlab:env:check task.remove_unecessary_rake_taskMarin Jankovski2015-06-031-54/+1
|
* Revert "Allow to configure smtp and sendmail in gitlab.yml"Dmitriy Zaporozhets2015-05-061-1/+1
|
* Allow to configure smtp and sendmail in gitlab.ymlJakub Jirutka2015-05-061-1/+1
|
* fix redis 3.0.0tonic2015-04-251-1/+2
|
* Add new rake taskVinnie Okada2015-04-151-0/+17
| | | | Add a task that checks repository integrity with `git fsck`.
* Let the server fix unconfigured gitZeger-Jan van de Weg2015-03-161-10/+15
|