我已将 gitlab 版本从 9 升级到最新版本,但出现故障并恢复更改以运行。解决了大部分问题,但坚持这个问题 sudo gitlab-ctl tail 的日志如下
print(pattern.group(1) + " + " + pattern.group(2))
sudo gitlab-ctl pg-upgrade 给出
==> /var/log/gitlab/unicorn/current <==
2021-03-01_11:45:09.17544 failed to start a new unicorn master
2021-03-01_11:45:09.18657 starting new unicorn master
==> /var/log/gitlab/postgresql/current <==
2021-03-01_11:45:09.61584 FATAL: database files are incompatible with server
2021-03-01_11:45:09.61587 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:09.61587 HINT: It looks like you need to initdb.
==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
I, [2021-03-01T11:45:09.808436 #16902] INFO -- : Refreshing Gem list
==> /var/log/gitlab/postgresql/current <==
2021-03-01_11:45:10.73457 FATAL: database files are incompatible with server
2021-03-01_11:45:10.73460 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:10.73460 HINT: It looks like you need to initdb.
2021-03-01_11:45:11.84962 FATAL: database files are incompatible with server
2021-03-01_11:45:11.84964 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:11.84964 HINT: It looks like you need to initdb.
2021-03-01_11:45:12.96683 FATAL: database files are incompatible with server
2021-03-01_11:45:12.96686 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:12.96687 HINT: It looks like you need to initdb.
==> /var/log/gitlab/postgresql/current <==
2021-03-01_11:45:14.04158 FATAL: database files are incompatible with server
2021-03-01_11:45:14.04160 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:14.04161 HINT: It looks like you need to initdb.
2021-03-01_11:45:15.17195 FATAL: database files are incompatible with server
2021-03-01_11:45:15.17197 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:15.17197 HINT: It looks like you need to initdb.
2021-03-01_11:45:16.29761 FATAL: database files are incompatible with server
2021-03-01_11:45:16.29762 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:16.29763 HINT: It looks like you need to initdb.
2021-03-01_11:45:17.42083 FATAL: database files are incompatible with server
2021-03-01_11:45:17.42086 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:17.42086 HINT: It looks like you need to initdb.
2021-03-01_11:45:18.50755 FATAL: database files are incompatible with server
2021-03-01_11:45:18.50757 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:18.50757 HINT: It looks like you need to initdb.
2021-03-01_11:45:19.63453 FATAL: database files are incompatible with server
2021-03-01_11:45:19.63455 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:19.63455 HINT: It looks like you need to initdb.
2021-03-01_11:45:20.75152 FATAL: database files are incompatible with server
2021-03-01_11:45:20.75154 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:20.75154 HINT: It looks like you need to initdb.
2021-03-01_11:45:21.85148 FATAL: database files are incompatible with server
2021-03-01_11:45:21.85150 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
2021-03-01_11:45:21.85151 HINT: It looks like you need to initdb.
2021-03-01_11:45:22.93649 FATAL: database files are incompatible with server
2021-03-01_11:45:22.93651 DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 960, but the server was compiled with PG_CONTROL_VERSION 922.
当前活跃的postgresql版本是9.2.18,需要升级到9.6.1才能初始化数据库 请帮忙 。提前致谢