Skip to content
代码片段 群组 项目
未验证 提交 c823d3dc 编辑于 作者: Vasilii Iakliushin's avatar Vasilii Iakliushin 提交者: Amy Qualls
浏览文件

Upgrade documentation for 16.4.0 migration

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/423445

Describe a potential problem with the migration and provide options how
to fix it.
上级 8b8b2450
No related branches found
No related tags found
无相关合并请求
...@@ -36,6 +36,44 @@ For more information about upgrading GitLab Helm Chart, see [the release notes f ...@@ -36,6 +36,44 @@ For more information about upgrading GitLab Helm Chart, see [the release notes f
server-side custom hooks. server-side custom hooks.
1. Remove the `[gitlab-shell] dir` configuration. 1. Remove the `[gitlab-shell] dir` configuration.
- You might encounter the following error while upgrading to GitLab 16.4 or later:
```plaintext
main: == 20230830084959 ValidatePushRulesConstraints: migrating =====================
main: -- execute("SET statement_timeout TO 0")
main: -> 0.0002s
main: -- execute("ALTER TABLE push_rules VALIDATE CONSTRAINT force_push_regex_size_constraint;")
main: -> 0.0004s
main: -- execute("RESET statement_timeout")
main: -> 0.0003s
main: -- execute("ALTER TABLE push_rules VALIDATE CONSTRAINT delete_branch_regex_size_constraint;")
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
PG::CheckViolation: ERROR: check constraint "delete_branch_regex_size_constraint" of relation "push_rules" is violated by some row
```
These constraints might return an error:
- `author_email_regex_size_constraint`
- `branch_name_regex_size_constraint`
- `commit_message_negative_regex_size_constraint`
- `commit_message_regex_size_constraint`
- `delete_branch_regex_size_constraint`
- `file_name_regex_size_constraint`
- `force_push_regex_size_constraint`
To fix the error, find the records in the `push_rules` table that exceed the 511
character limit.
```sql
;; replace `delete_branch_regex` with a name of the field used in constraint
SELECT id FROM push_rules WHERE LENGTH(delete_branch_regex) > 511;
```
Reduce the value length of the regex field for affected push rules records, then
retry the migration.
## 16.3.0 ## 16.3.0
- For Go applications, [`crypto/tls`: verifying certificate chains containing large RSA keys is slow (CVE-2023-29409)](https://github.com/golang/go/issues/61460) - For Go applications, [`crypto/tls`: verifying certificate chains containing large RSA keys is slow (CVE-2023-29409)](https://github.com/golang/go/issues/61460)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册