I’ve tried to update GitLab from 12 to 13, but now the GitLab instance doesn’t work at all. If I tried to reconfigure GitLab a post in logs appears:
2021-06-03_11:39:30.96425 FATAL: database files are incompatible with server
2021-06-03_11:39:30.96427 DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 12.6
If I try to revert the version of PostgreSQL I get:
Traceback (most recent call last):
7: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'
6: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
5: from /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
4: from /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'
3: from /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:204:in `block in add_command_under_category'
2: from /opt/gitlab/embedded/service/omnibus-ctl/pg-upgrade.rb:38:in `block in load_file'
1: from /opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:62:in `get_node_attributes'
/opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:47:in `parse_json_file': Attributes not found in /opt/gitlab/embedded/nodes/CoreD.json, has reconfigure been run yet? (GitlabCtl::Errors::NodeError)
If I try to update GitLab I get the error:
Running handlers:
There was an error running gitlab-ctl reconfigure:
database_objects[postgresql] (postgresql::standalone line 28) had an error: RuntimeError: postgresql_user[gitlab] (/opt/gitlab/embedded/cookbooks/cache/coo
kbooks/gitlab/resources/database_objects.rb line 19) had an error: RuntimeError: execute[create gitlab postgresql user] (/opt/gitlab/embedded/cookbooks/cac
he/cookbooks/postgresql/resources/user.rb line 11) had an error: RuntimeError: PostgreSQL did not respond before service checks were exhausted
I also tried to change permission to GitLab files, reinstall PostgreSQL, install the old version of PostgreSQL, install the new version of PostgreSQL, change shared_buffes size in .rb config, change shared_buffes size in OS
I also tried to deploy GitLab on another machine but when I copy repositories I get the error:
* Failed to move repo: 14:failed to connect to all addresses. debug_error_string:{"created":"@1622751694.185383828","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3951,"referenced_errors":[{"created":"@1622751694.185376145","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
* Failed trying to create .........
How can I fix that?