Commit c36d02f3 authored by Niklas's avatar Niklas Committed by Achilleas Pipinellis

Doc Consistency: administration/troubleshooting

parent c6904269
...@@ -243,7 +243,7 @@ project.update!(repository_read_only: true) ...@@ -243,7 +243,7 @@ project.update!(repository_read_only: true)
### Transfer project from one namespace to another ### Transfer project from one namespace to another
```ruby ```ruby
p= Project.find_by_full_path('<project_path>') p = Project.find_by_full_path('<project_path>')
# To set the owner of the project # To set the owner of the project
current_user= p.creator current_user= p.creator
...@@ -416,7 +416,7 @@ p.create_wiki ### creates the wiki project on the filesystem ...@@ -416,7 +416,7 @@ p.create_wiki ### creates the wiki project on the filesystem
### In case of issue boards not loading properly and it's getting time out. We need to call the Issue Rebalancing service to fix this ### In case of issue boards not loading properly and it's getting time out. We need to call the Issue Rebalancing service to fix this
```ruby ```ruby
p=Project.find_by_full_path('PROJECT PATH') p = Project.find_by_full_path('PROJECT PATH')
IssueRebalancingService.new(p.issues.take).execute IssueRebalancingService.new(p.issues.take).execute
``` ```
...@@ -999,8 +999,8 @@ This content has been moved to the [Troubleshooting Sidekiq docs](sidekiq.md). ...@@ -999,8 +999,8 @@ This content has been moved to the [Troubleshooting Sidekiq docs](sidekiq.md).
### Get information about LFS objects and associated project ### Get information about LFS objects and associated project
```ruby ```ruby
o=LfsObject.find_by(oid: "<oid>") o = LfsObject.find_by(oid: "<oid>")
p=Project.find(LfsObjectsProject.find_by_lfs_object_id(o.id).project_id) p = Project.find(LfsObjectsProject.find_by_lfs_object_id(o.id).project_id)
``` ```
You can then delete these records from the database with: You can then delete these records from the database with:
......
...@@ -116,7 +116,7 @@ References: ...@@ -116,7 +116,7 @@ References:
ERROR: deadlock detected ERROR: deadlock detected
``` ```
Three applicable timeouts are identified in the issue [#1](https://gitlab.com/gitlab-org/gitlab/-/issues/30528); our recommended settings are as follows: Three applicable timeouts are identified in the issue [#30528](https://gitlab.com/gitlab-org/gitlab/-/issues/30528); our recommended settings are as follows:
```ini ```ini
deadlock_timeout = 5s deadlock_timeout = 5s
...@@ -124,7 +124,7 @@ statement_timeout = 15s ...@@ -124,7 +124,7 @@ statement_timeout = 15s
idle_in_transaction_session_timeout = 60s idle_in_transaction_session_timeout = 60s
``` ```
Quoting from issue [#1](https://gitlab.com/gitlab-org/gitlab/-/issues/30528): Quoting from issue [#30528](https://gitlab.com/gitlab-org/gitlab/-/issues/30528):
> "If a deadlock is hit, and we resolve it through aborting the transaction after a short period, then the retry mechanisms we already have will make the deadlocked piece of work try again, and it's unlikely we'll deadlock multiple times in a row." > "If a deadlock is hit, and we resolve it through aborting the transaction after a short period, then the retry mechanisms we already have will make the deadlocked piece of work try again, and it's unlikely we'll deadlock multiple times in a row."
...@@ -146,7 +146,7 @@ PostgresSQL defaults: ...@@ -146,7 +146,7 @@ PostgresSQL defaults:
- `statement_timeout = 0` (never) - `statement_timeout = 0` (never)
- `idle_in_transaction_session_timeout = 0` (never) - `idle_in_transaction_session_timeout = 0` (never)
Comments in issue [#1](https://gitlab.com/gitlab-org/gitlab/-/issues/30528) Comments in issue [#30528](https://gitlab.com/gitlab-org/gitlab/-/issues/30528)
indicate that these should both be set to at least a number of minutes for all indicate that these should both be set to at least a number of minutes for all
Omnibus GitLab installations (so they don't hang indefinitely). However, 15s Omnibus GitLab installations (so they don't hang indefinitely). However, 15s
for statement_timeout is very short, and will only be effective if the for statement_timeout is very short, and will only be effective if the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment