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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a5846336
Commit
a5846336
authored
Mar 02, 2021
by
Marcin Sedlak-Jakubowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc review edits
parent
9cd99e0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
doc/administration/raketasks/maintenance.md
doc/administration/raketasks/maintenance.md
+27
-26
No files found.
doc/administration/raketasks/maintenance.md
View file @
a5846336
...
@@ -13,13 +13,13 @@ GitLab provides Rake tasks for general maintenance.
...
@@ -13,13 +13,13 @@ GitLab provides Rake tasks for general maintenance.
This command gathers information about your GitLab installation and the system it runs on.
This command gathers information about your GitLab installation and the system it runs on.
These may be useful when asking for help or reporting issues.
These may be useful when asking for help or reporting issues.
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake gitlab:env:info
sudo
gitlab-rake gitlab:env:info
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
bundle
exec
rake gitlab:env:info
RAILS_ENV
=
production
bundle
exec
rake gitlab:env:info
RAILS_ENV
=
production
...
@@ -76,13 +76,13 @@ installations: a license cannot be installed into GitLab Community Edition.
...
@@ -76,13 +76,13 @@ installations: a license cannot be installed into GitLab Community Edition.
These may be useful when raising tickets with Support, or for programmatically
These may be useful when raising tickets with Support, or for programmatically
checking your license parameters.
checking your license parameters.
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake gitlab:license:info
sudo
gitlab-rake gitlab:license:info
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
bundle
exec
rake gitlab:license:info
RAILS_ENV
=
production
bundle
exec
rake gitlab:license:info
RAILS_ENV
=
production
...
@@ -119,13 +119,13 @@ You may also have a look at our troubleshooting guides for:
...
@@ -119,13 +119,13 @@ You may also have a look at our troubleshooting guides for:
To run
`gitlab:check`
, run:
To run
`gitlab:check`
, run:
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake gitlab:check
sudo
gitlab-rake gitlab:check
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
bundle
exec
rake gitlab:check
RAILS_ENV
=
production
bundle
exec
rake gitlab:check
RAILS_ENV
=
production
...
@@ -182,13 +182,13 @@ Checking GitLab ... Finished
...
@@ -182,13 +182,13 @@ Checking GitLab ... Finished
In some case it is necessary to rebuild the
`authorized_keys`
file. To do this, run:
In some case it is necessary to rebuild the
`authorized_keys`
file. To do this, run:
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake gitlab:shell:setup
sudo
gitlab-rake gitlab:shell:setup
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
...
@@ -205,24 +205,26 @@ Do you want to continue (yes/no)? yes
...
@@ -205,24 +205,26 @@ Do you want to continue (yes/no)? yes
## Clear issue and merge request description template names cache
## Clear issue and merge request description template names cache
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54706) in GitLab 13.10
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54706) in GitLab 13.10
.
If for some reason the issue or merge request description template names in the dropdown
If the issue or merge request description template names in the dropdown
do not reflect the actual description template names in the repository, you may want to
do not reflect the actual description template names in the repository, consider clearing
consider clearing the Redis cache that stores the template names information. To do so, you
the Redis cache that stores the template names information.
need to run:
You can clear the cache of
[
all issues and merge request templates in the installation
](
#clear-cache-for-all-issue-and-merge-request-template-names
)
or
[
in a specific project
](
#clear-cache-for-issue-and-merge-request-template-names-in-specific-projects
)
.
### Clear cache for all issue and merge request template names
### Clear cache for all issue and merge request template names
I
n cases where you want to refresh issue and merge request templates for all projects in your installation
:
I
f you want to refresh issue and merge request templates for all projects
:
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake cache:clear:description_templates
sudo
gitlab-rake cache:clear:description_templates
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
...
@@ -231,17 +233,16 @@ sudo -u git -H bundle exec rake cache:clear:description_templates RAILS_ENV=prod
...
@@ -231,17 +233,16 @@ sudo -u git -H bundle exec rake cache:clear:description_templates RAILS_ENV=prod
### Clear cache for issue and merge request template names in specific projects
### Clear cache for issue and merge request template names in specific projects
In cases where you want to refresh issue and merge request templates for specific projects
If you want to refresh issue and merge request templates for specific projects,
provide a comma-separated list of IDs as the
`project_ids`
parameter to the Rake task.
Provide a comma separate list of ids as
`project_ids`
parameter to the Rake task.
**For Omnibus installations**
**Omnibus Installation**
```
shell
```
shell
sudo
gitlab-rake cache:clear:description_templates
project_ids
=
10,25,35
sudo
gitlab-rake cache:clear:description_templates
project_ids
=
10,25,35
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
...
@@ -253,13 +254,13 @@ sudo -u git -H bundle exec rake cache:clear:description_templates project_ids=10
...
@@ -253,13 +254,13 @@ sudo -u git -H bundle exec rake cache:clear:description_templates project_ids=10
If for some reason the dashboard displays the wrong information, you might want to
If for some reason the dashboard displays the wrong information, you might want to
clear Redis' cache. To do this, run:
clear Redis' cache. To do this, run:
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake cache:clear
sudo
gitlab-rake cache:clear
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
...
@@ -274,7 +275,7 @@ missing some icons. In that case, try to precompile the assets again.
...
@@ -274,7 +275,7 @@ missing some icons. In that case, try to precompile the assets again.
This only applies to source installations and does NOT apply to
This only applies to source installations and does NOT apply to
Omnibus packages.
Omnibus packages.
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
...
@@ -294,13 +295,13 @@ Sometimes you need to know if your GitLab installation can connect to a TCP
...
@@ -294,13 +295,13 @@ Sometimes you need to know if your GitLab installation can connect to a TCP
service on another machine - perhaps a PostgreSQL or HTTPS server. A Rake task
service on another machine - perhaps a PostgreSQL or HTTPS server. A Rake task
is included to help you with this:
is included to help you with this:
**
Omnibus Installation
**
**
For Omnibus installations
**
```
shell
```
shell
sudo
gitlab-rake gitlab:tcp_check[example.com,80]
sudo
gitlab-rake gitlab:tcp_check[example.com,80]
```
```
**
Source Installation
**
**
For installations from source
**
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
...
...
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