【DevOps】全流程记录:Gitlab 升级(附带备份)

1. 缘起

安装Gitlab服务器以后,整理使用没有任何问题。 公司的代码管理,文档管理等也恢复了正常。 上周Gitlab提示,系统需要升级。 于是决定进行升级:15.0.1 —> 15.1.3

2. 备份

2.1 命令

gitlab-rake gitlab:backup:create

2.2 执行过程

默认情况下会备份到 /var/opt/gitlab/backups/ 目录

如果有仓库本身有错误,则会备份失败。 别问我怎么知道的。要先解决错误的仓库。

[root@ecs-tdouya-cicd ~]# gitlab-rake gitlab:backup:create
2022-07-21 21:49:36 +0800 -- Dumping database ... 
Dumping PostgreSQL database gitlabhq_production ... [DONE]
2022-07-21 21:49:40 +0800 -- Dumping database ... done
2022-07-21 21:49:40 +0800 -- Dumping repositories ... 
{"command":"create","gl_project_path":"root/tianxin-personal-info","level":"info","msg":"started create","relative_path":"@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.git","storage_name":"default","time":"2022-07-21T13:49:41.173Z"}
{"command":"create","gl_project_path":"root/tianxin-personal-info.wiki","level":"info","msg":"started create","relative_path":"@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.wiki.git","storage_name":"default","time":"2022-07-21T13:49:41.174Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"root/tianxin-personal-info.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.wiki.git","storage_name":"default","time":"2022-07-21T13:49:41.387Z"}
{"command":"create","gl_project_path":"root/tianxin-personal-info","level":"info","msg":"started create","relative_path":"@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.design.git","storage_name":"default","time":"2022-07-21T13:49:41.387Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"root/tianxin-personal-info","level":"warning","msg":"skipped create","relative_path":"@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.design.git","storage_name":"default","time":"2022-07-21T13:49:41.401Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/prince2-curriculum-development","level":"info","msg":"started create","relative_path":"@hashed/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.git","storage_name":"default","time":"2022-07-21T13:49:41.401Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/prince2-curriculum-development","level":"info","msg":"completed create","relative_path":"@hashed/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.git","storage_name":"default","time":"2022-07-21T13:49:43.226Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/prince2-curriculum-development.wiki","level":"info","msg":"started create","relative_path":"@hashed/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.wiki.git","storage_name":"default","time":"2022-07-21T13:49:43.226Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/project-management/prince2-curriculum-development.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.wiki.git","storage_name":"default","time":"2022-07-21T13:49:43.274Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/prince2-curriculum-development","level":"info","msg":"started create","relative_path":"@hashed/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.design.git","storage_name":"default","time":"2022-07-21T13:49:43.274Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/project-management/prince2-curriculum-development","level":"warning","msg":"skipped create","relative_path":"@hashed/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.design.git","storage_name":"default","time":"2022-07-21T13:49:43.275Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/restructuring-your-job","level":"info","msg":"started create","relative_path":"@hashed/4a/44/4a44dc15364204a80fe80e9039455cc1608281820fe2b24f1e5233ade6af1dd5.git","storage_name":"default","time":"2022-07-21T13:49:43.275Z"}
{"command":"create","gl_project_path":"root/tianxin-personal-info","level":"info","msg":"completed create","relative_path":"@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.git","storage_name":"default","time":"2022-07-21T13:49:44.977Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/restructuring-your-job.wiki","level":"info","msg":"started create","relative_path":"@hashed/4a/44/4a44dc15364204a80fe80e9039455cc1608281820fe2b24f1e5233ade6af1dd5.wiki.git","storage_name":"default","time":"2022-07-21T13:49:44.978Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/crr/restructuring-your-job.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/4a/44/4a44dc15364204a80fe80e9039455cc1608281820fe2b24f1e5233ade6af1dd5.wiki.git","storage_name":"default","time":"2022-07-21T13:49:45.002Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/restructuring-your-job","level":"info","msg":"started create","relative_path":"@hashed/4a/44/4a44dc15364204a80fe80e9039455cc1608281820fe2b24f1e5233ade6af1dd5.design.git","storage_name":"default","time":"2022-07-21T13:49:45.002Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/crr/restructuring-your-job","level":"warning","msg":"skipped create","relative_path":"@hashed/4a/44/4a44dc15364204a80fe80e9039455cc1608281820fe2b24f1e5233ade6af1dd5.design.git","storage_name":"default","time":"2022-07-21T13:49:45.007Z"}
{"command":"create","gl_project_path":"root/knowledge-base","level":"info","msg":"started create","relative_path":"@hashed/4f/c8/4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8.git","storage_name":"default","time":"2022-07-21T13:49:45.007Z"}
{"command":"create","gl_project_path":"root/knowledge-base","level":"info","msg":"completed create","relative_path":"@hashed/4f/c8/4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8.git","storage_name":"default","time":"2022-07-21T13:49:45.919Z"}
{"command":"create","gl_project_path":"root/knowledge-base.wiki","level":"info","msg":"started create","relative_path":"@hashed/4f/c8/4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8.wiki.git","storage_name":"default","time":"2022-07-21T13:49:45.919Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"root/knowledge-base.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/4f/c8/4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8.wiki.git","storage_name":"default","time":"2022-07-21T13:49:45.924Z"}
{"command":"create","gl_project_path":"root/knowledge-base","level":"info","msg":"started create","relative_path":"@hashed/4f/c8/4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8.design.git","storage_name":"default","time":"2022-07-21T13:49:45.924Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"root/knowledge-base","level":"warning","msg":"skipped create","relative_path":"@hashed/4f/c8/4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8.design.git","storage_name":"default","time":"2022-07-21T13:49:45.924Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/gtt/git-training","level":"info","msg":"started create","relative_path":"@hashed/6b/51/6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918.git","storage_name":"default","time":"2022-07-21T13:49:45.924Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/gtt/git-training","level":"info","msg":"completed create","relative_path":"@hashed/6b/51/6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918.git","storage_name":"default","time":"2022-07-21T13:49:46.169Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/gtt/git-training.wiki","level":"info","msg":"started create","relative_path":"@hashed/6b/51/6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918.wiki.git","storage_name":"default","time":"2022-07-21T13:49:46.169Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/gtt/git-training.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/6b/51/6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918.wiki.git","storage_name":"default","time":"2022-07-21T13:49:46.235Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/gtt/git-training","level":"info","msg":"started create","relative_path":"@hashed/6b/51/6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918.design.git","storage_name":"default","time":"2022-07-21T13:49:46.235Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/gtt/git-training","level":"warning","msg":"skipped create","relative_path":"@hashed/6b/51/6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918.design.git","storage_name":"default","time":"2022-07-21T13:49:46.255Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/tdouya-kms","level":"info","msg":"started create","relative_path":"@hashed/3f/db/3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278.git","storage_name":"default","time":"2022-07-21T13:49:46.255Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/tdouya-kms","level":"info","msg":"completed create","relative_path":"@hashed/3f/db/3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278.git","storage_name":"default","time":"2022-07-21T13:49:46.418Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/tdouya-kms.wiki","level":"info","msg":"started create","relative_path":"@hashed/3f/db/3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278.wiki.git","storage_name":"default","time":"2022-07-21T13:49:46.418Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/coding-group/tdouya-kms.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/3f/db/3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278.wiki.git","storage_name":"default","time":"2022-07-21T13:49:46.427Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/tdouya-kms","level":"info","msg":"started create","relative_path":"@hashed/3f/db/3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278.design.git","storage_name":"default","time":"2022-07-21T13:49:46.427Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/coding-group/tdouya-kms","level":"warning","msg":"skipped create","relative_path":"@hashed/3f/db/3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278.design.git","storage_name":"default","time":"2022-07-21T13:49:46.428Z"}
{"command":"create","gl_project_path":"tdouya-company/ceo-office/general-info","level":"info","msg":"started create","relative_path":"@hashed/e6/29/e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb.git","storage_name":"default","time":"2022-07-21T13:49:46.428Z"}
{"command":"create","gl_project_path":"tdouya-company/ceo-office/general-info","level":"info","msg":"completed create","relative_path":"@hashed/e6/29/e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb.git","storage_name":"default","time":"2022-07-21T13:49:46.522Z"}
{"command":"create","gl_project_path":"tdouya-company/ceo-office/general-info.wiki","level":"info","msg":"started create","relative_path":"@hashed/e6/29/e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb.wiki.git","storage_name":"default","time":"2022-07-21T13:49:46.522Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/ceo-office/general-info.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/e6/29/e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb.wiki.git","storage_name":"default","time":"2022-07-21T13:49:46.560Z"}
{"command":"create","gl_project_path":"tdouya-company/ceo-office/general-info","level":"info","msg":"started create","relative_path":"@hashed/e6/29/e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb.design.git","storage_name":"default","time":"2022-07-21T13:49:46.560Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/ceo-office/general-info","level":"warning","msg":"skipped create","relative_path":"@hashed/e6/29/e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb.design.git","storage_name":"default","time":"2022-07-21T13:49:46.560Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/interview_and_resume_tutor","level":"info","msg":"started create","relative_path":"@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.git","storage_name":"default","time":"2022-07-21T13:49:46.560Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/interview_and_resume_tutor","level":"info","msg":"completed create","relative_path":"@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.git","storage_name":"default","time":"2022-07-21T13:49:47.169Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/interview_and_resume_tutor.wiki","level":"info","msg":"started create","relative_path":"@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.wiki.git","storage_name":"default","time":"2022-07-21T13:49:47.169Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/restructuring-your-job","level":"info","msg":"completed create","relative_path":"@hashed/4a/44/4a44dc15364204a80fe80e9039455cc1608281820fe2b24f1e5233ade6af1dd5.git","storage_name":"default","time":"2022-07-21T13:49:47.169Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/interview_and_resume_tutor","level":"info","msg":"started create","relative_path":"@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.design.git","storage_name":"default","time":"2022-07-21T13:49:47.169Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/crr/interview_and_resume_tutor","level":"warning","msg":"skipped create","relative_path":"@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.design.git","storage_name":"default","time":"2022-07-21T13:49:47.170Z"}
{"command":"create","gl_project_path":"tdouya-company/qad/cmmi3","level":"info","msg":"started create","relative_path":"@hashed/45/23/4523540f1504cd17100c4835e85b7eefd49911580f8efff0599a8f283be6b9e3.git","storage_name":"default","time":"2022-07-21T13:49:47.170Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/crr/interview_and_resume_tutor.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.wiki.git","storage_name":"default","time":"2022-07-21T13:49:47.179Z"}
{"command":"create","gl_project_path":"tdouya-company/qad/cmmi3.wiki","level":"info","msg":"started create","relative_path":"@hashed/45/23/4523540f1504cd17100c4835e85b7eefd49911580f8efff0599a8f283be6b9e3.wiki.git","storage_name":"default","time":"2022-07-21T13:49:47.179Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/qad/cmmi3.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/45/23/4523540f1504cd17100c4835e85b7eefd49911580f8efff0599a8f283be6b9e3.wiki.git","storage_name":"default","time":"2022-07-21T13:49:47.184Z"}
{"command":"create","gl_project_path":"tdouya-company/qad/cmmi3","level":"info","msg":"started create","relative_path":"@hashed/45/23/4523540f1504cd17100c4835e85b7eefd49911580f8efff0599a8f283be6b9e3.design.git","storage_name":"default","time":"2022-07-21T13:49:47.184Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/qad/cmmi3","level":"warning","msg":"skipped create","relative_path":"@hashed/45/23/4523540f1504cd17100c4835e85b7eefd49911580f8efff0599a8f283be6b9e3.design.git","storage_name":"default","time":"2022-07-21T13:49:47.186Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/make_a_successful_career_controller","level":"info","msg":"started create","relative_path":"@hashed/4e/c9/4ec9599fc203d176a301536c2e091a19bc852759b255bd6818810a42c5fed14a.git","storage_name":"default","time":"2022-07-21T13:49:47.186Z"}
{"command":"create","gl_project_path":"tdouya-company/qad/cmmi3","level":"info","msg":"completed create","relative_path":"@hashed/45/23/4523540f1504cd17100c4835e85b7eefd49911580f8efff0599a8f283be6b9e3.git","storage_name":"default","time":"2022-07-21T13:49:47.305Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/make_a_successful_career_controller.wiki","level":"info","msg":"started create","relative_path":"@hashed/4e/c9/4ec9599fc203d176a301536c2e091a19bc852759b255bd6818810a42c5fed14a.wiki.git","storage_name":"default","time":"2022-07-21T13:49:47.305Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/crr/make_a_successful_career_controller.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/4e/c9/4ec9599fc203d176a301536c2e091a19bc852759b255bd6818810a42c5fed14a.wiki.git","storage_name":"default","time":"2022-07-21T13:49:47.314Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/make_a_successful_career_controller","level":"info","msg":"started create","relative_path":"@hashed/4e/c9/4ec9599fc203d176a301536c2e091a19bc852759b255bd6818810a42c5fed14a.design.git","storage_name":"default","time":"2022-07-21T13:49:47.314Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/crr/make_a_successful_career_controller","level":"warning","msg":"skipped create","relative_path":"@hashed/4e/c9/4ec9599fc203d176a301536c2e091a19bc852759b255bd6818810a42c5fed14a.design.git","storage_name":"default","time":"2022-07-21T13:49:47.314Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/pmp-training-public","level":"info","msg":"started create","relative_path":"@hashed/94/00/9400f1b21cb527d7fa3d3eabba93557a18ebe7a2ca4e471cfe5e4c5b4ca7f767.git","storage_name":"default","time":"2022-07-21T13:49:47.314Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/crr/make_a_successful_career_controller","level":"info","msg":"completed create","relative_path":"@hashed/4e/c9/4ec9599fc203d176a301536c2e091a19bc852759b255bd6818810a42c5fed14a.git","storage_name":"default","time":"2022-07-21T13:49:49.280Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/pmp-training-public.wiki","level":"info","msg":"started create","relative_path":"@hashed/94/00/9400f1b21cb527d7fa3d3eabba93557a18ebe7a2ca4e471cfe5e4c5b4ca7f767.wiki.git","storage_name":"default","time":"2022-07-21T13:49:49.280Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/project-management/pmp-training-public.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/94/00/9400f1b21cb527d7fa3d3eabba93557a18ebe7a2ca4e471cfe5e4c5b4ca7f767.wiki.git","storage_name":"default","time":"2022-07-21T13:49:49.299Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/pmp-training-public","level":"info","msg":"started create","relative_path":"@hashed/94/00/9400f1b21cb527d7fa3d3eabba93557a18ebe7a2ca4e471cfe5e4c5b4ca7f767.design.git","storage_name":"default","time":"2022-07-21T13:49:49.299Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/project-management/pmp-training-public","level":"warning","msg":"skipped create","relative_path":"@hashed/94/00/9400f1b21cb527d7fa3d3eabba93557a18ebe7a2ca4e471cfe5e4c5b4ca7f767.design.git","storage_name":"default","time":"2022-07-21T13:49:49.300Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/customized-training","level":"info","msg":"started create","relative_path":"@hashed/f5/ca/f5ca38f748a1d6eaf726b8a42fb575c3c71f1864a8143301782de13da2d9202b.git","storage_name":"default","time":"2022-07-21T13:49:49.300Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/customized-training","level":"info","msg":"completed create","relative_path":"@hashed/f5/ca/f5ca38f748a1d6eaf726b8a42fb575c3c71f1864a8143301782de13da2d9202b.git","storage_name":"default","time":"2022-07-21T13:49:49.427Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/customized-training.wiki","level":"info","msg":"started create","relative_path":"@hashed/f5/ca/f5ca38f748a1d6eaf726b8a42fb575c3c71f1864a8143301782de13da2d9202b.wiki.git","storage_name":"default","time":"2022-07-21T13:49:49.427Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/project-management/customized-training.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/f5/ca/f5ca38f748a1d6eaf726b8a42fb575c3c71f1864a8143301782de13da2d9202b.wiki.git","storage_name":"default","time":"2022-07-21T13:49:49.431Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/customized-training","level":"info","msg":"started create","relative_path":"@hashed/f5/ca/f5ca38f748a1d6eaf726b8a42fb575c3c71f1864a8143301782de13da2d9202b.design.git","storage_name":"default","time":"2022-07-21T13:49:49.431Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tr-n/project-management/customized-training","level":"warning","msg":"skipped create","relative_path":"@hashed/f5/ca/f5ca38f748a1d6eaf726b8a42fb575c3c71f1864a8143301782de13da2d9202b.design.git","storage_name":"default","time":"2022-07-21T13:49:49.432Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/fastadmin-base-source","level":"info","msg":"started create","relative_path":"@hashed/6f/4b/6f4b6612125fb3a0daecd2799dfd6c9c299424fd920f9b308110a2c1fbd8f443.git","storage_name":"default","time":"2022-07-21T13:49:49.432Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/fastadmin-base-source","level":"info","msg":"completed create","relative_path":"@hashed/6f/4b/6f4b6612125fb3a0daecd2799dfd6c9c299424fd920f9b308110a2c1fbd8f443.git","storage_name":"default","time":"2022-07-21T13:49:51.051Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/fastadmin-base-source.wiki","level":"info","msg":"started create","relative_path":"@hashed/6f/4b/6f4b6612125fb3a0daecd2799dfd6c9c299424fd920f9b308110a2c1fbd8f443.wiki.git","storage_name":"default","time":"2022-07-21T13:49:51.051Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/coding-group/fastadmin-base-source.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/6f/4b/6f4b6612125fb3a0daecd2799dfd6c9c299424fd920f9b308110a2c1fbd8f443.wiki.git","storage_name":"default","time":"2022-07-21T13:49:51.256Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/coding-group/fastadmin-base-source","level":"info","msg":"started create","relative_path":"@hashed/6f/4b/6f4b6612125fb3a0daecd2799dfd6c9c299424fd920f9b308110a2c1fbd8f443.design.git","storage_name":"default","time":"2022-07-21T13:49:51.256Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/coding-group/fastadmin-base-source","level":"warning","msg":"skipped create","relative_path":"@hashed/6f/4b/6f4b6612125fb3a0daecd2799dfd6c9c299424fd920f9b308110a2c1fbd8f443.design.git","storage_name":"default","time":"2022-07-21T13:49:51.285Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/gitlab-gmaintenance","level":"info","msg":"started create","relative_path":"@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.git","storage_name":"default","time":"2022-07-21T13:49:51.285Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/gitlab-gmaintenance","level":"info","msg":"completed create","relative_path":"@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.git","storage_name":"default","time":"2022-07-21T13:49:51.642Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/gitlab-gmaintenance.wiki","level":"info","msg":"started create","relative_path":"@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.wiki.git","storage_name":"default","time":"2022-07-21T13:49:51.642Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/dop/gitlab-gmaintenance.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.wiki.git","storage_name":"default","time":"2022-07-21T13:49:51.678Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/gitlab-gmaintenance","level":"info","msg":"started create","relative_path":"@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.design.git","storage_name":"default","time":"2022-07-21T13:49:51.678Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/dop/gitlab-gmaintenance","level":"warning","msg":"skipped create","relative_path":"@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.design.git","storage_name":"default","time":"2022-07-21T13:49:51.686Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/webserver-gmaintenance","level":"info","msg":"started create","relative_path":"@hashed/53/5f/535fa30d7e25dd8a49f1536779734ec8286108d115da5045d77f3b4185d8f790.git","storage_name":"default","time":"2022-07-21T13:49:51.686Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/dop/webserver-gmaintenance","level":"warning","msg":"skipped create","relative_path":"@hashed/53/5f/535fa30d7e25dd8a49f1536779734ec8286108d115da5045d77f3b4185d8f790.git","storage_name":"default","time":"2022-07-21T13:49:51.768Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/webserver-gmaintenance.wiki","level":"info","msg":"started create","relative_path":"@hashed/53/5f/535fa30d7e25dd8a49f1536779734ec8286108d115da5045d77f3b4185d8f790.wiki.git","storage_name":"default","time":"2022-07-21T13:49:51.768Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/dop/webserver-gmaintenance.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/53/5f/535fa30d7e25dd8a49f1536779734ec8286108d115da5045d77f3b4185d8f790.wiki.git","storage_name":"default","time":"2022-07-21T13:49:51.794Z"}
{"command":"create","gl_project_path":"tdouya-company/tdd/dop/webserver-gmaintenance","level":"info","msg":"started create","relative_path":"@hashed/53/5f/535fa30d7e25dd8a49f1536779734ec8286108d115da5045d77f3b4185d8f790.design.git","storage_name":"default","time":"2022-07-21T13:49:51.794Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"tdouya-company/tdd/dop/webserver-gmaintenance","level":"warning","msg":"skipped create","relative_path":"@hashed/53/5f/535fa30d7e25dd8a49f1536779734ec8286108d115da5045d77f3b4185d8f790.design.git","storage_name":"default","time":"2022-07-21T13:49:51.796Z"}
{"command":"create","gl_project_path":"tdouya-company/tr-n/project-management/pmp-training-public","level":"info","msg":"completed create","relative_path":"@hashed/94/00/9400f1b21cb527d7fa3d3eabba93557a18ebe7a2ca4e471cfe5e4c5b4ca7f767.git","storage_name":"default","time":"2022-07-21T13:49:59.498Z"}
2022-07-21 21:49:59 +0800 -- Dumping repositories ... done
2022-07-21 21:49:59 +0800 -- Dumping uploads ... 
2022-07-21 21:49:59 +0800 -- Dumping uploads ... done
2022-07-21 21:49:59 +0800 -- Dumping builds ... 
2022-07-21 21:49:59 +0800 -- Dumping builds ... done
2022-07-21 21:49:59 +0800 -- Dumping artifacts ... 
2022-07-21 21:49:59 +0800 -- Dumping artifacts ... done
2022-07-21 21:49:59 +0800 -- Dumping pages ... 
2022-07-21 21:49:59 +0800 -- Dumping pages ... done
2022-07-21 21:49:59 +0800 -- Dumping lfs objects ... 
2022-07-21 21:49:59 +0800 -- Dumping lfs objects ... done
2022-07-21 21:49:59 +0800 -- Dumping terraform states ... 
2022-07-21 21:49:59 +0800 -- Dumping terraform states ... done
2022-07-21 21:49:59 +0800 -- Dumping container registry images ... [DISABLED]
2022-07-21 21:49:59 +0800 -- Dumping packages ... 
2022-07-21 21:49:59 +0800 -- Dumping packages ... done
2022-07-21 21:49:59 +0800 -- Creating backup archive: 1658411376_2022_07_21_15.0.1_gitlab_backup.tar ... 
2022-07-21 21:50:22 +0800 -- Creating backup archive: 1658411376_2022_07_21_15.0.1_gitlab_backup.tar ... done
2022-07-21 21:50:22 +0800 -- Uploading backup archive to remote storage  ... [SKIPPED]
2022-07-21 21:50:22 +0800 -- Deleting tar staging files ... 
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/backup_information.yml
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/db
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/repositories
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/uploads.tar.gz
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/builds.tar.gz
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/artifacts.tar.gz
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/pages.tar.gz
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/lfs.tar.gz
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/terraform_state.tar.gz
2022-07-21 21:50:22 +0800 -- Cleaning up /var/opt/gitlab/backups/packages.tar.gz
2022-07-21 21:50:22 +0800 -- Deleting tar staging files ... done
2022-07-21 21:50:22 +0800 -- Deleting old backups ... [SKIPPED]
2022-07-21 21:50:22 +0800 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data 
and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.
2022-07-21 21:50:22 +0800 -- Backup 1658411376_2022_07_21_15.0.1 is done.
[root@ecs-tdouya-cicd ~]#

备份命令备份不会备份gitlab.rb,gitlab-secrets.json文件,需要单独备份。这次备份的目的是升级,而不是建立定期备份机制,所以使用的是ftp手动备份的。

2.3 检查备份文件

[root@ecs-tdouya-cicd ~]# cd /var/opt/gitlab/backups/
[root@ecs-tdouya-cicd backups]# ll
total 1252916
-rw------- 1 git git 1282979840 Jul 21 21:50 1658411376_2022_07_21_15.0.1_gitlab_backup.tar
[root@ecs-tdouya-cicd backups]#

3. 升级

3.1 获得安装文件

还是从清华镜像获得相应的安装文件。

[root@ecs-tdouya-cicd ~]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm
--2022-07-21 22:36:07--  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1093980280 (1.0G) [application/x-redhat-package-manager]
Saving to: ‘gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm’

100%[====================================================================================================>] 1,093,980,280 3.04MB/s   in 5m 26s 

2022-07-21 22:41:33 (3.20 MB/s) - ‘gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm’ saved [1093980280/1093980280]

[root@ecs-tdouya-cicd ~]# ll
total 1068348
-rw-r--r-- 1 root root 1093980280 Jul 20 02:09 gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm
[root@ecs-tdouya-cicd ~]#

3.2 安装过程

3.2.1 命令
rpm -Uvh gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm 

参数说明:

​ -U 代表升级,属于标准语法:rpm {-U|–upgrade} [install-options] PACKAGE_FILE …
​ -v 打印详细信息-通常会显示例行进度消息。
​ -h 解包包时打印50个哈希标记。与-v|–verbose一起使用,以获得更好的显示效果。

3.2.2 安装过程

因为是升级,安装完成会直接自动执行reconfigure和restart。

[root@ecs-tdouya-cicd ~]# rpm -Uvh gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm 
warning: gitlab-ce-15.1.3-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
Preparing...                          ################################# [100%]
gitlab preinstall: Checking for unmigrated data on legacy storage
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
2022-07-21 22:48:50 +0800 -- Dumping database ... 
Dumping PostgreSQL database gitlabhq_production ... [DONE]
2022-07-21 22:48:53 +0800 -- Dumping database ... done
2022-07-21 22:48:53 +0800 -- Dumping repositories ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping uploads ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping builds ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping artifacts ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping pages ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping lfs objects ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping terraform states ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Dumping container registry images ... [DISABLED]
2022-07-21 22:48:53 +0800 -- Dumping packages ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Creating backup archive: 1658414930_2022_07_21_15.0.1_gitlab_backup.tar ... 
2022-07-21 22:48:53 +0800 -- Creating backup archive: 1658414930_2022_07_21_15.0.1_gitlab_backup.tar ... done
2022-07-21 22:48:53 +0800 -- Uploading backup archive to remote storage  ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Deleting tar staging files ... 
2022-07-21 22:48:53 +0800 -- Cleaning up /var/opt/gitlab/backups/backup_information.yml
2022-07-21 22:48:53 +0800 -- Cleaning up /var/opt/gitlab/backups/db
2022-07-21 22:48:53 +0800 -- Deleting tar staging files ... done
2022-07-21 22:48:53 +0800 -- Deleting old backups ... [SKIPPED]
2022-07-21 22:48:53 +0800 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data 
and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.
2022-07-21 22:48:53 +0800 -- Backup 1658414930_2022_07_21_15.0.1 is done.
gitlab preinstall: Automatically backing up /etc/gitlab
Could not find '/etc/gitlab/config_backup' directory. Creating.
Running configuration backup
Creating configuration backup archive: gitlab_config_1658414934_2022_07_21.tar
/etc/gitlab/
/etc/gitlab/gitlab.rb
/etc/gitlab/bak-gitlal.rb
/etc/gitlab/gitlab-secrets.json
/etc/gitlab/trusted-certs/
Configuration backup archive complete: /etc/gitlab/config_backup/gitlab_config_1658414934_2022_07_21.tar
Keeping all older configuration backups
Updating / installing...
   1:gitlab-ce-15.1.3-ce.0.el7        ################################# [ 50%]
Cleaning up / removing...
   2:gitlab-ce-15.0.1-ce.0.el7        ################################# [100%]
Checking PostgreSQL executables:[2022-07-21T22:50:00+08:00] INFO: Started Chef Infra Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook)
Chef Infra Client, version 17.10.0
Patents: https://www.chef.io/patents
Infra Phase starting
[2022-07-21T22:50:00+08:00] INFO: *** Chef Infra Client 17.10.0 ***
[2022-07-21T22:50:00+08:00] INFO: Platform: x86_64-linux
[2022-07-21T22:50:00+08:00] INFO: Chef-client pid: 20220
[2022-07-21T22:50:03+08:00] INFO: Setting the run_list to ["recipe[gitlab::config]", "recipe[postgresql::bin]"] from CLI options
[2022-07-21T22:50:03+08:00] INFO: Run List is [recipe[gitlab::config], recipe[postgresql::bin]]
[2022-07-21T22:50:03+08:00] INFO: Run List expands to [gitlab::config, postgresql::bin]
[2022-07-21T22:50:03+08:00] INFO: Starting Chef Infra Client Run for ecs-tdouya-cicd
[2022-07-21T22:50:03+08:00] INFO: Running start handlers
[2022-07-21T22:50:03+08:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab::config", "postgresql::bin"]
[2022-07-21T22:50:04+08:00] INFO: Loading cookbooks [gitlab@0.0.1, postgresql@0.1.0, package@0.1.0, logrotate@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.3, acme@4.1.5, crond@0.1.0]
[2022-07-21T22:50:04+08:00] INFO: Removing cookbooks/acme/libraries/matchers.rb from the cache; its is no longer in the cookbook manifest.
Synchronizing cookbooks:
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/libraries/helpers/base_pg_helper.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/libraries/puma.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/libraries/helpers/pg_helper.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/attributes/default.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/templates/default/gitlab.yml.erb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/recipes/database_reindexing_disable.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/resources/rails_migration.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/resources/database_objects.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/resources/sidekiq_service.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/resources/config.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/resources/database.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitlab/resources/puma_config.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/resources/query.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/resources/user.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/resources/schema.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/libraries/deprecations.rb in the cache.
  - gitlab (0.0.1)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/resources/account.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/resources/env_dir.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/resources/storage_directory.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/resources/extension.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/resources/gitlab_sysctl.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/postgresql/recipes/bin.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/resources/version_file.rb in the cache.
  - postgresql (0.1.0)
  - logrotate (0.1.0)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/package/resources/templatesymlink.rb in the cache.
  - package (0.1.0)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/redis/resources/service.rb in the cache.
  - redis (0.1.0)
  - monitoring (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitaly/attributes/default.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/consul/resources/consul_service.rb in the cache.
  - consul (0.1.0)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitaly/recipes/enable.rb in the cache.
  - praefect (0.1.0)[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/gitaly/templates/default/gitaly-config.toml.erb in the cache.

  - gitaly (0.1.0)
  - gitlab-kas (0.1.0)
  - gitlab-pages (0.1.0)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/letsencrypt/recipes/disable.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/letsencrypt/resources/certificate.rb in the cache.
  - nginx (0.1.0)[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/attributes/default.rb in the cache.

[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/letsencrypt/recipes/enable.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/metadata.rb in the cache.
  - letsencrypt (0.1.0)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/kitchen.digitalocean.yml in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/kitchen.dokken.yml in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/libraries/acme.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/runit/libraries/resource_runit_service.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/.rubocop.yml in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/resources/selfsigned.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/recipes/default.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/resources/certificate.rb in the cache.
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/resources/ssl_key.rb in the cache.
  - runit (5.1.3)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/acme/kitchen.yml in the cache.
  - acme (4.1.5)
[2022-07-21T22:50:04+08:00] INFO: Storing updated cookbooks/crond/resources/job.rb in the cache.
  - crond (0.1.0)
Installing cookbook gem dependencies:
Compiling cookbooks...
Loading Cinc Auditor profile files:
Loading Cinc Auditor input files:
Loading Cinc Auditor waiver files:
Converging 4 resources
Recipe: postgresql::bin
  * ruby_block[check_postgresql_version] action run (skipped due to not_if)
  * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if)
  * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
  * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
[2022-07-21T22:50:07+08:00] INFO: Chef Infra Client Run complete in 3.434251843 seconds
[2022-07-21T22:50:07+08:00] INFO: Removing cookbooks/acme/.kitchen.dokken.yml from the cache; it is no longer needed by chef-client.
[2022-07-21T22:50:07+08:00] INFO: Removing cookbooks/acme/.kitchen.digitalocean.yml from the cache; it is no longer needed by chef-client.
[2022-07-21T22:50:07+08:00] INFO: Removing cookbooks/acme/.kitchen.yml from the cache; it is no longer needed by chef-client.

Running handlers:
[2022-07-21T22:50:07+08:00] INFO: Running report handlers
Running handlers complete
[2022-07-21T22:50:07+08:00] INFO: Report handlers complete
Infra Phase complete, 0/4 resources updated in 06 seconds
Checking PostgreSQL executables: OK
Shutting down all GitLab services except those needed for migrations
ok: down: alertmanager: 1s, normally up
ok: down: gitlab-exporter: 0s, normally up
ok: down: gitlab-kas: 1s, normally up
ok: down: gitlab-workhorse: 0s, normally up
ok: down: grafana: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: nginx: 0s, normally up
ok: down: node-exporter: 1s, normally up
ok: down: postgres-exporter: 0s, normally up
ok: down: prometheus: 1s, normally up
ok: down: puma: 0s, normally up
ok: down: redis-exporter: 0s, normally up
ok: down: sidekiq: 0s, normally up
Ensuring the required services are running
ok: run: postgresql: (pid 1196) 810385s
ok: run: redis: (pid 1187) 810385s
ok: run: gitaly: (pid 1208) 810385s
run: postgresql: (pid 1196) 810385s; run: log: (pid 1181) 810385s
run: redis: (pid 1187) 810385s; run: log: (pid 1180) 810385s
run: gitaly: (pid 1208) 810385s; run: log: (pid 1202) 810385s
Reconfigure GitLab to apply migrations
ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available
[2022-07-21T22:50:18+08:00] INFO: Started Chef Infra Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook)
Chef Infra Client, version 17.10.0
Patents: https://www.chef.io/patents
Infra Phase starting
[2022-07-21T22:50:18+08:00] INFO: *** Chef Infra Client 17.10.0 ***
[2022-07-21T22:50:18+08:00] INFO: Platform: x86_64-linux
[2022-07-21T22:50:18+08:00] INFO: Chef-client pid: 20393
[2022-07-21T22:50:20+08:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2022-07-21T22:50:20+08:00] INFO: Run List is [recipe[gitlab]]
[2022-07-21T22:50:20+08:00] INFO: Run List expands to [gitlab]
[2022-07-21T22:50:20+08:00] INFO: Starting Chef Infra Client Run for ecs-tdouya-cicd
[2022-07-21T22:50:20+08:00] INFO: Running start handlers
[2022-07-21T22:50:20+08:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab"]
[2022-07-21T22:50:21+08:00] INFO: Loading cookbooks [gitlab@0.0.1, package@0.1.0, logrotate@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.3, acme@4.1.5, crond@0.1.0]
Synchronizing cookbooks:
  - logrotate (0.1.0)
  - redis (0.1.0)
  - gitlab (0.0.1)
  - postgresql (0.1.0)
  - package (0.1.0)
  - mattermost (0.1.0)
  - consul (0.1.0)
  - praefect (0.1.0)
  - gitlab-pages (0.1.0)
  - letsencrypt (0.1.0)
  - nginx (0.1.0)
  - monitoring (0.1.0)
  - gitaly (0.1.0)
  - gitlab-kas (0.1.0)
  - registry (0.1.0)
  - runit (5.1.3)
  - acme (4.1.5)
  - crond (0.1.0)
Installing cookbook gem dependencies:
Compiling cookbooks...
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
Loading Cinc Auditor profile files:
Loading Cinc Auditor input files:
Loading Cinc Auditor waiver files:
Recipe: gitlab::default
  * directory[/etc/gitlab] action create (up to date)
[2022-07-21T22:50:25+08:00] WARN: Selected systemd because /run/systemd/system/ exists
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: already initialized constant MACROS_MARKER
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: previous definition of MACROS_MARKER was here
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: already initialized constant DO_NOT_SPLIT
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: previous definition of DO_NOT_SPLIT was here
  Converging 296 resources
  * directory[/etc/gitlab] action create (up to date)
  * directory[Create /var/opt/gitlab] action create (up to date)
  * directory[Create /var/log/gitlab] action create (up to date)
  * directory[/opt/gitlab/embedded/etc] action create (up to date)
  * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
Recipe: gitlab::web-server
  * account[Webserver user and group] action create
    * group[Webserver user and group] action create (up to date)
    * linux_user[Webserver user and group] action create (up to date)
     (up to date)
Recipe: gitlab::users
  * directory[/var/opt/gitlab] action create (up to date)
  * account[GitLab user and group] action create
    * group[GitLab user and group] action create (up to date)
    * linux_user[GitLab user and group] action create (up to date)
     (up to date)
  * template[/var/opt/gitlab/.gitconfig] action create (up to date)
  * directory[/var/opt/gitlab/.bundle] action create (up to date)
Recipe: gitlab::gitlab-shell
  * storage_directory[/var/opt/gitlab/.ssh] action create
    * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
     (up to date)
  * directory[/var/log/gitlab/gitlab-shell/] action create (up to date)
  * directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
  * templatesymlink[Create a config.yml and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
     (up to date)
  * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
  * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date)
Recipe: gitlab::gitlab-rails
  * storage_directory[/var/opt/gitlab/git-data] action create
    * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/git-data/repositories] action create
    * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
     (up to date)
Recipe: gitlab::rails_pages_shared_path
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
     (up to date)
Recipe: gitlab::gitlab-rails
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
    * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if)
     (up to date)
  * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
  * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
  * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
  * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
  * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
  * directory[create /var/log/gitlab/gitlab-rails] action create (up to date)
  * storage_directory[/var/opt/gitlab/backups] action create
    * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
     (up to date)
  * directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
  * directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
  * template[/opt/gitlab/etc/gitlab-rails-rc] action create (up to date)
  * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
  * templatesymlink[Create a database.yml and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
     (up to date)
  * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
     (up to date)
  * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
     (up to date)
  * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date)
     (up to date)
  * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date)
  * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date)
  * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date)
  * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action create (skipped due to not_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date)
  * templatesymlink[Create a redis.rate_limiting.yml and create a symlink to Rails root] action create (skipped due to not_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.rate_limiting.yml] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/redis.rate_limiting.yml] action delete (up to date)
  * templatesymlink[Create a redis.sessions.yml and create a symlink to Rails root] action create (skipped due to not_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.sessions.yml] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/redis.sessions.yml] action delete (up to date)
  * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date)
     (up to date)
  * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create[2022-07-21T22:50:27+08:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/etc/gitlab.yml.chef-20220721225027.462650
[2022-07-21T22:50:27+08:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] removed backup at /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/etc/gitlab.yml.chef-20220605121838.176110
[2022-07-21T22:50:27+08:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] updated file contents /var/opt/gitlab/gitlab-rails/etc/gitlab.yml

      - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from e0fa82 to 1b6e4c
      - suppressed sensitive resource
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
  
  * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
     (up to date)
  * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
    * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
     (up to date)
  * templatesymlink[Create a gitlab_incoming_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
  * templatesymlink[Create a gitlab_service_desk_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
  * templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create[2022-07-21T22:50:27+08:00] WARN: only_if block for templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] returned a string, did you mean to run a command?

    * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
     (up to date)
  * templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] action create[2022-07-21T22:50:27+08:00] WARN: only_if block for templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] returned a string, did you mean to run a command?

    * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date)
    * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date)
     (up to date)
  * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
  * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
  * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
    * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_DIR] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_FILE] action create (up to date)
     (up to date)
  * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
  * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
  * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
  * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if)
  * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create[2022-07-21T22:50:27+08:00] INFO: file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] owner changed to 996

    - change owner from 'root' to 'git'
  * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create[2022-07-21T22:50:27+08:00] INFO: remote_file[/var/opt/gitlab/gitlab-rails/VERSION] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/VERSION.chef-20220721225027.772288
[2022-07-21T22:50:27+08:00] INFO: remote_file[/var/opt/gitlab/gitlab-rails/VERSION] updated file contents /var/opt/gitlab/gitlab-rails/VERSION

    - update content in file /var/opt/gitlab/gitlab-rails/VERSION from e707d1 to 0df871
    --- /var/opt/gitlab/gitlab-rails/VERSION	2022-06-05 10:40:29.766221481 +0800
    +++ /var/opt/gitlab/gitlab-rails/.chef-VERSION20220721-20393-1e1rhwt	2022-07-21 22:50:27.757259657 +0800
    @@ -1 +1 @@
    -15.0.1
    +15.1.3
  * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create[2022-07-21T22:50:27+08:00] INFO: remote_file[/var/opt/gitlab/gitlab-rails/REVISION] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/REVISION.chef-20220721225027.789215
[2022-07-21T22:50:27+08:00] INFO: remote_file[/var/opt/gitlab/gitlab-rails/REVISION] updated file contents /var/opt/gitlab/gitlab-rails/REVISION

    - update content in file /var/opt/gitlab/gitlab-rails/REVISION from d38f71 to 6e5c6c
    --- /var/opt/gitlab/gitlab-rails/REVISION	2022-06-05 10:40:29.779222684 +0800
    +++ /var/opt/gitlab/gitlab-rails/.chef-REVISION20220721-20393-avp058	2022-07-21 22:50:27.786260695 +0800
    @@ -1 +1 @@
    -39b217000de
    +15fae3a516e
  * version_file[Create version file for Rails] action create
    * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
     (up to date)
  * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
  * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
Recipe: gitlab::selinux
  * execute[semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-7.2.0-ssh-keygen.pp] action runDisabled
[2022-07-21T22:50:27+08:00] INFO: execute[Guard resource] ran successfully
 (skipped due to not_if)
  * execute[semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-10.5.0-ssh-authorized-keys.pp] action runDisabled
[2022-07-21T22:50:27+08:00] INFO: execute[Guard resource] ran successfully
 (skipped due to not_if)
  * execute[semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-13.5.0-gitlab-shell.pp] action runDisabled
[2022-07-21T22:50:27+08:00] INFO: execute[Guard resource] ran successfully
 (skipped due to not_if)
  * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing)
Recipe: gitlab::add_trusted_certs
  * directory[/etc/gitlab/trusted-certs] action create (up to date)
  * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
  * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
  * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run

  * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs

  * Symlinking existing certificates found in /etc/gitlab/trusted-certs
[2022-07-21T22:50:27+08:00] INFO: ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] called

    - execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs
Recipe: gitlab::default
  * service[create a temporary puma service] action nothing (skipped due to action :nothing)
  * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
  * service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
Recipe: package::runit_systemd
  * directory[/usr/lib/systemd/system] action create (up to date)
  * template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
  * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
  * file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
  * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
  * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
  * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
Recipe: package::sysctl
  * execute[reload all sysctl conf] action nothing (skipped due to action :nothing)
Recipe: logrotate::folders_and_configs
  * directory[/var/opt/gitlab/logrotate] action create (up to date)
  * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date)
  * directory[/var/log/gitlab/logrotate] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date)
  * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date)
Recipe: logrotate::enable
  * service[logrotate] action nothing (skipped due to action :nothing)
  * runit_service[logrotate] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/logrotate] action create (up to date)
    * template[/opt/gitlab/sv/logrotate/run] action create (up to date)
    * directory[/opt/gitlab/sv/logrotate/log] action create (up to date)
    * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date)
    * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/logrotate/config] action create (up to date)
    * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/logrotate/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/logrotate/control] action create (up to date)
    * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date)
    * link[/opt/gitlab/init/logrotate] action create (up to date)
    * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/logrotate] action create (up to date)
    * ruby_block[wait for logrotate service socket] action run (skipped due to not_if)
     (up to date)
Recipe: redis::enable
  * redis_service[redis] action create
    * account[user and group for redis] action create
      * group[user and group for redis] action create (up to date)
      * linux_user[user and group for redis] action create (up to date)
       (up to date)
    * group[Socket group] action create (up to date)
    * directory[/var/opt/gitlab/redis] action create (up to date)
    * directory[/var/log/gitlab/redis] action create (up to date)
    * template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
    * service[redis] action nothing (skipped due to action :nothing)
    * runit_service[redis] action enable
      * ruby_block[restart_service] action nothing (skipped due to action :nothing)
      * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
      * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
      * directory[/opt/gitlab/sv/redis] action create (up to date)
      * template[/opt/gitlab/sv/redis/run] action create (up to date)
      * directory[/opt/gitlab/sv/redis/log] action create (up to date)
      * directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
      * template[/opt/gitlab/sv/redis/log/config] action create (up to date)
      * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing)
      * link[/var/log/gitlab/redis/config] action create (up to date)
      * template[/opt/gitlab/sv/redis/log/run] action create (up to date)
      * directory[/opt/gitlab/sv/redis/env] action create (up to date)
      * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
      * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
      * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
      * directory[/opt/gitlab/sv/redis/control] action create (up to date)
      * link[/opt/gitlab/init/redis] action create (up to date)
      * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing)
      * directory[/opt/gitlab/service] action create (up to date)
      * link[/opt/gitlab/service/redis] action create (up to date)
      * ruby_block[wait for redis service socket] action run (skipped due to not_if)
       (up to date)
    * ruby_block[warn pending redis restart] action run[2022-07-21T22:50:28+08:00] WARN: The version of the running redis service is different than what is installed.
Please restart redis to start the new version.

sudo gitlab-ctl restart redis

[2022-07-21T22:50:28+08:00] INFO: ruby_block[warn pending redis restart] called

      - execute the ruby block warn pending redis restart
  
  * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create (up to date)
Recipe: gitaly::enable
  * directory[/var/opt/gitlab/gitaly] action create (up to date)
  * directory[/var/opt/gitlab/gitaly/run] action create (up to date)
  * directory[/var/log/gitlab/gitaly] action create (up to date)
  * directory[/var/opt/gitlab/gitaly/internal_sockets] action delete (up to date)
  * env_dir[/opt/gitlab/etc/gitaly/env] action create
    * directory[/opt/gitlab/etc/gitaly/env] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date)
    * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date)
     (up to date)
  * template[Create Gitaly config.toml] action create[2022-07-21T22:50:28+08:00] INFO: template[Create Gitaly config.toml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitaly/config.toml.chef-20220721225028.564011
[2022-07-21T22:50:28+08:00] INFO: template[Create Gitaly config.toml] updated file contents /var/opt/gitlab/gitaly/config.toml

    - update content in file /var/opt/gitlab/gitaly/config.toml from 51b7e6 to 4ce73d
    --- /var/opt/gitlab/gitaly/config.toml	2022-06-05 10:40:44.706604293 +0800
    +++ /var/opt/gitlab/gitaly/.chef-config20220721-20393-iw88b5.toml	2022-07-21 22:50:28.560288396 +0800
    @@ -31,7 +31,6 @@
     
     [gitaly-ruby]
     dir = "/opt/gitlab/embedded/service/gitaly-ruby"
    -rugged_git_config_search_path = "/opt/gitlab/embedded/etc"
     
     [gitlab-shell]
     dir = "/opt/gitlab/embedded/service/gitlab-shell"
    @@ -46,8 +45,6 @@
     
     
     [daily_maintenance]
    -
    -
     
     
     
  * service[gitaly] action nothing (skipped due to action :nothing)
  * runit_service[gitaly] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/gitaly] action create (up to date)
    * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
    * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
    * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/gitaly/config] action create (up to date)
    * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
    * link[/opt/gitlab/init/gitaly] action create (up to date)
    * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/gitaly] action create (up to date)
    * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
     (up to date)
  * version_file[Create version file for Gitaly] action create
    * file[/var/opt/gitlab/gitaly/VERSION] action create[2022-07-21T22:50:28+08:00] INFO: file[/var/opt/gitlab/gitaly/VERSION] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitaly/VERSION.chef-20220721225028.869824
[2022-07-21T22:50:28+08:00] INFO: file[/var/opt/gitlab/gitaly/VERSION] updated file contents /var/opt/gitlab/gitaly/VERSION

      - update content in file /var/opt/gitlab/gitaly/VERSION from 4f5f4f to f69c9e
      --- /var/opt/gitlab/gitaly/VERSION	2022-06-05 10:40:51.097195776 +0800
      +++ /var/opt/gitlab/gitaly/.chef-VERSION20220721-20393-17wbdw9	2022-07-21 22:50:28.866299348 +0800
      @@ -1 +1 @@
      -sha256:ee8df42e1569cd725deb376125aa9c7b1d9bb12adbe745d29893e0f055499c86
      +sha256:96d9103ff2789fc046f89840e1f4c6d3be2131d6667ba82f6cf13f7229178b64
  
[2022-07-21T22:50:28+08:00] INFO: version_file[Create version file for Gitaly] not queuing delayed action hup on runit_service[gitaly] (delayed), as it's already been queued
  * version_file[Create Ruby version file for Gitaly] action create
    * file[/var/opt/gitlab/gitaly/RUBY_VERSION] action create (up to date)
     (up to date)
  * consul_service[gitaly] action delete
    * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date)
     (up to date)
Recipe: postgresql::bin
  * ruby_block[check_postgresql_version] action run (skipped due to not_if)
  * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if)
  * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
  * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
Recipe: postgresql::user
  * account[Postgresql user and group] action create
    * group[Postgresql user and group] action create (up to date)
    * linux_user[Postgresql user and group] action create (up to date)
     (up to date)
  * directory[/var/opt/gitlab/postgresql] action create (up to date)
  * file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
Recipe: postgresql::sysctl
  * gitlab_sysctl[kernel.shmmax] action create
    * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
    * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
    * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
     (up to date)
  * gitlab_sysctl[kernel.shmall] action create
    * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
    * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
    * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
     (up to date)
  * gitlab_sysctl[kernel.sem] action create
    * directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
    * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
    * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
     (up to date)
Recipe: postgresql::enable
  * directory[/var/opt/gitlab/postgresql] action create (up to date)
  * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  * directory[/var/log/gitlab/postgresql] action create (up to date)
  * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if)
  * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date)
  * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date)
  * postgresql_config[gitlab] action create
    * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date)
    * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date)
    * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date)
    * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date)
     (up to date)
Recipe: postgresql::standalone
  * service[postgresql] action nothing (skipped due to action :nothing)
  * runit_service[postgresql] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/postgresql] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
    * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/postgresql/config] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
    * link[/opt/gitlab/init/postgresql] action create (up to date)
    * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/postgresql] action create (up to date)
    * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
    * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
    * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
    * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
    * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
    * file[/opt/gitlab/service/postgresql/supervise/status] action touch[2022-07-21T22:50:29+08:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] owner changed to 994
[2022-07-21T22:50:29+08:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 991

      - change owner from 'root' to 'gitlab-psql'
      - change group from 'root' to 'gitlab-psql'[2022-07-21T22:50:29+08:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] updated atime and mtime to 2022-07-21 22:50:29 +0800

      - update utime on file /opt/gitlab/service/postgresql/supervise/status
    * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2022-07-21T22:50:29+08:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 994
[2022-07-21T22:50:29+08:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 991

      - change owner from 'root' to 'gitlab-psql'
      - change group from 'root' to 'gitlab-psql'[2022-07-21T22:50:29+08:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2022-07-21 22:50:29 +0800

      - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
    * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
    * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
  
  * database_objects[postgresql] action create
    * postgresql_user[gitlab] action create
      * execute[create gitlab postgresql user] action run (skipped due to not_if)
       (up to date)
    * postgresql_user[gitlab_replicator] action create
      * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if)
      * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if)
       (up to date)
    * postgresql_database[gitlabhq_production] action create
      * execute[create database gitlabhq_production] action run (skipped due to not_if)
       (up to date)
    * postgresql_extension[pg_trgm] action enable
      * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if)
       (up to date)
    * postgresql_extension[btree_gist] action enable
      * postgresql_query[enable btree_gist extension] action run (skipped due to only_if)
       (up to date)
     (up to date)
  * version_file[Create version file for PostgreSQL] action create
    * file[/var/opt/gitlab/postgresql/VERSION] action create (up to date)
     (up to date)
  * ruby_block[warn pending postgresql restart] action run (skipped due to only_if)
  * execute[reload postgresql] action nothing (skipped due to action :nothing)
  * execute[start postgresql] action nothing (skipped due to action :nothing)
Recipe: praefect::disable
  * service[praefect] action nothing (skipped due to action :nothing)
  * runit_service[praefect] action disable
    * ruby_block[disable praefect] action run (skipped due to only_if)
     (up to date)
  * consul_service[praefect] action delete
    * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date)
     (up to date)
Recipe: gitlab-kas::enable
  * directory[/var/opt/gitlab/gitlab-kas] action create (up to date)
  * directory[/var/log/gitlab/gitlab-kas] action create (up to date)
  * directory[/opt/gitlab/etc/gitlab-kas] action create (up to date)
  * ruby_block[websocket TLS termination] action run (skipped due to only_if)
  * version_file[Create version file for Gitlab KAS] action create
    * file[/var/opt/gitlab/gitlab-kas/VERSION] action create[2022-07-21T22:50:29+08:00] INFO: file[/var/opt/gitlab/gitlab-kas/VERSION] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-kas/VERSION.chef-20220721225029.948790
[2022-07-21T22:50:29+08:00] INFO: file[/var/opt/gitlab/gitlab-kas/VERSION] updated file contents /var/opt/gitlab/gitlab-kas/VERSION

      - update content in file /var/opt/gitlab/gitlab-kas/VERSION from 650e2a to a21dd9
      --- /var/opt/gitlab/gitlab-kas/VERSION	2022-06-05 10:41:02.418243176 +0800
      +++ /var/opt/gitlab/gitlab-kas/.chef-VERSION20220721-20393-k5uqxz	2022-07-21 22:50:29.945337965 +0800
      @@ -1 +1 @@
      -kas version v15.0.0, commit: b93d7a6, built: 20220519.084245
      +kas version v15.1.0, commit: 500aefa, built: 20220719.152704
  
  * file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] action create (up to date)
  * file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] action create (up to date)
  * file[/var/opt/gitlab/gitlab-kas/redis_password_file] action create (skipped due to only_if)
  * template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] action create (up to date)
  * env_dir[/opt/gitlab/etc/gitlab-kas/env] action create
    * directory[/opt/gitlab/etc/gitlab-kas/env] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL] action create (up to date)
     (up to date)
  * service[gitlab-kas] action nothing (skipped due to action :nothing)
  * runit_service[gitlab-kas] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
    * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
    * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
    * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
     (up to date)
Recipe: gitlab::database_migrations
  * ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
  * rails_migration[gitlab-rails] action run
    * bash[migrate gitlab-rails database] action run[2022-07-21T22:50:49+08:00] INFO: bash[migrate gitlab-rails database] ran successfully

      - execute sensitive resource
  
[2022-07-21T22:50:49+08:00] INFO: rails_migration[gitlab-rails] sending run action to execute[clear the gitlab-rails cache] (immediate)
Recipe: gitlab::gitlab-rails
  * execute[clear the gitlab-rails cache] action run[2022-07-21T22:51:04+08:00] INFO: execute[clear the gitlab-rails cache] ran successfully

    - execute /opt/gitlab/bin/gitlab-rake cache:clear
[2022-07-21T22:51:04+08:00] INFO: rails_migration[gitlab-rails] sending run action to ruby_block[check remote PG version] (immediate)
Recipe: gitlab::database_migrations
  * ruby_block[check remote PG version] action run (skipped due to only_if)
Recipe: crond::disable
  * service[crond] action nothing (skipped due to action :nothing)
  * runit_service[crond] action disable
    * ruby_block[disable crond] action run (skipped due to only_if)
     (up to date)
Recipe: gitlab::puma
  * directory[/var/log/gitlab/puma] action create (up to date)
  * directory[/opt/gitlab/var/puma] action create (up to date)
  * directory[/var/opt/gitlab/gitlab-rails/sockets] action create (up to date)
  * puma_config[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create
    * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date)
    * template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create (up to date)
     (up to date)
  * service[puma] action nothing (skipped due to action :nothing)
  * runit_service[puma] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/puma] action create (up to date)
    * template[/opt/gitlab/sv/puma/run] action create (up to date)
    * directory[/opt/gitlab/sv/puma/log] action create (up to date)
    * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
    * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/puma/config] action create (up to date)
    * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/puma/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/puma/control] action create (up to date)
    * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
    * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
    * link[/opt/gitlab/init/puma] action create (up to date)
    * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/puma] action create (up to date)
    * ruby_block[wait for puma service socket] action run (skipped due to not_if)
     (up to date)
  * consul_service[rails] action delete
    * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date)
     (up to date)
  * gitlab_sysctl[net.core.somaxconn] action create
    * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (up to date)
    * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (up to date)
    * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing)
     (up to date)
Recipe: gitlab::sidekiq
  * sidekiq_service[sidekiq] action enable
    * directory[/var/log/gitlab/sidekiq] action create (up to date)
    * service[sidekiq] action nothing (skipped due to action :nothing)
    * runit_service[sidekiq] action enable
      * ruby_block[restart_service] action nothing (skipped due to action :nothing)
      * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
      * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
      * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
      * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
      * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
      * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
      * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
      * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
      * link[/var/log/gitlab/sidekiq/config] action create (up to date)
      * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
      * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
      * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
      * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
      * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
      * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
      * link[/opt/gitlab/init/sidekiq] action create (up to date)
      * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
      * directory[/opt/gitlab/service] action create (up to date)
      * link[/opt/gitlab/service/sidekiq] action create (up to date)
      * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
       (up to date)
     (up to date)
  * consul_service[sidekiq] action delete
    * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date)
     (up to date)
Recipe: gitlab::gitlab-workhorse
  * directory[/var/opt/gitlab/gitlab-workhorse] action create (up to date)
  * directory[/var/opt/gitlab/gitlab-workhorse/sockets] action create (up to date)
  * directory[/var/log/gitlab/gitlab-workhorse] action create (up to date)
  * directory[/opt/gitlab/etc/gitlab-workhorse] action create (up to date)
  * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create
    * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] action create (up to date)
     (up to date)
  * service[gitlab-workhorse] action nothing (skipped due to action :nothing)
  * runit_service[gitlab-workhorse] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
    * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
    * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
    * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
     (up to date)
  * consul_service[workhorse] action delete
    * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date)
     (up to date)
  * version_file[Create version file for Workhorse] action create
    * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create[2022-07-21T22:51:05+08:00] INFO: file[/var/opt/gitlab/gitlab-workhorse/VERSION] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-workhorse/VERSION.chef-20220721225105.431482
[2022-07-21T22:51:05+08:00] INFO: file[/var/opt/gitlab/gitlab-workhorse/VERSION] updated file contents /var/opt/gitlab/gitlab-workhorse/VERSION

      - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from a53963 to cecddc
      --- /var/opt/gitlab/gitlab-workhorse/VERSION	2022-06-05 10:42:10.310515844 +0800
      +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20220721-20393-vgy1wj	2022-07-21 22:51:05.428607848 +0800
      @@ -1 +1 @@
      -gitlab-workhorse v15.0.1-20220601.134446
      +gitlab-workhorse v15.1.3-20220719.152835
  
  * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create (up to date)
Recipe: gitlab::mailroom_disable
  * service[mailroom] action nothing (skipped due to action :nothing)
  * runit_service[mailroom] action disable
    * ruby_block[disable mailroom] action run (skipped due to only_if)
     (up to date)
Recipe: gitlab::nginx
  * directory[/var/opt/gitlab/nginx] action create (up to date)
  * directory[/var/opt/gitlab/nginx/conf] action create (up to date)
  * directory[/var/log/gitlab/nginx] action create (up to date)
  * link[/var/opt/gitlab/nginx/logs] action create (up to date)
  * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create[2022-07-21T22:51:05+08:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/nginx/conf/gitlab-http.conf.chef-20220721225105.481509
[2022-07-21T22:51:05+08:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] updated file contents /var/opt/gitlab/nginx/conf/gitlab-http.conf

    - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from d5b75f to e5a42e
    --- /var/opt/gitlab/nginx/conf/gitlab-http.conf	2022-06-06 07:44:36.608953370 +0800
    +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20220721-20393-12lgihm.conf	2022-07-21 22:51:05.477609602 +0800
    @@ -91,7 +91,7 @@
       proxy_set_header Connection $connection_upgrade;
       proxy_set_header X-Forwarded-Proto http;
     
    -  location ~ (/api/v\d/jobs/\d+/artifacts$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {
    +  location ~ (/api/v\d/jobs/\d+/artifacts$|/import/gitlab_project$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {
         proxy_cache off;
         proxy_pass http://gitlab-workhorse;
         proxy_request_buffering off;
    @@ -108,6 +108,7 @@
     
       location /-/kubernetes-agent/k8s-proxy/ {
         proxy_pass http://localhost:8154/;
    +    proxy_buffering off;
         proxy_intercept_errors off;
       }
     
  * template[/var/opt/gitlab/nginx/conf/gitlab-smartcard-http.conf] action delete (up to date)
  * template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] action create (up to date)
  * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date)
  * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date)
  * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date)
  * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create (up to date)
  * consul_service[nginx] action delete
    * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date)
     (up to date)
  * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create (up to date)
Recipe: nginx::enable
  * service[nginx] action nothing (skipped due to action :nothing)
  * runit_service[nginx] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/nginx] action create (up to date)
    * template[/opt/gitlab/sv/nginx/run] action create (up to date)
    * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
    * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
    * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/nginx/config] action create (up to date)
    * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
    * link[/opt/gitlab/init/nginx] action create (up to date)
    * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/nginx] action create (up to date)
    * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
     (up to date)
  * execute[reload nginx] action nothing (skipped due to action :nothing)
Recipe: gitlab::remote-syslog_disable
  * service[remote-syslog] action nothing (skipped due to action :nothing)
  * runit_service[remote-syslog] action disable
    * ruby_block[disable remote-syslog] action run (skipped due to only_if)
     (up to date)
Recipe: gitlab::storage-check_disable
  * service[storage-check] action nothing (skipped due to action :nothing)
  * runit_service[storage-check] action disable
    * ruby_block[disable storage-check] action run (skipped due to only_if)
     (up to date)
Recipe: gitlab-pages::disable
  * service[gitlab-pages] action nothing (skipped due to action :nothing)
  * runit_service[gitlab-pages] action disable
    * ruby_block[disable gitlab-pages] action run (skipped due to only_if)
     (up to date)
Recipe: registry::disable
  * service[registry] action nothing (skipped due to action :nothing)
  * runit_service[registry] action disable
    * ruby_block[disable registry] action run (skipped due to only_if)
     (up to date)
Recipe: mattermost::disable
  * service[mattermost] action nothing (skipped due to action :nothing)
  * runit_service[mattermost] action disable
    * ruby_block[disable mattermost] action run (skipped due to only_if)
     (up to date)
Recipe: letsencrypt::disable
  * crond_job[letsencrypt-renew] action delete
    * file[/var/opt/gitlab/crond/letsencrypt-renew] action delete (up to date)
     (up to date)
Recipe: gitlab::gitlab-healthcheck
  * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create (up to date)
Recipe: monitoring::user
  * account[Prometheus user and group] action create
    * group[Prometheus user and group] action create (up to date)
    * linux_user[Prometheus user and group] action create (up to date)
     (up to date)
Recipe: monitoring::node-exporter
  * directory[/var/log/gitlab/node-exporter] action create (up to date)
  * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date)
  * env_dir[/opt/gitlab/etc/node-exporter/env] action create
    * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date)
    * file[/opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR] action create (up to date)
     (up to date)
  * directory[/var/opt/gitlab/node-exporter/textfile_collector] action create (up to date)
  * service[node-exporter] action nothing (skipped due to action :nothing)
  * runit_service[node-exporter] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
    * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
    * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
    * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
    * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/node-exporter/config] action create (up to date)
    * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
    * link[/opt/gitlab/init/node-exporter] action create (up to date)
    * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/node-exporter] action create (up to date)
    * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
     (up to date)
  * consul_service[node-exporter] action delete
    * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date)
     (up to date)
Recipe: monitoring::gitlab-exporter
  * directory[/var/opt/gitlab/gitlab-exporter] action create (up to date)
  * directory[/var/log/gitlab/gitlab-exporter] action create (up to date)
  * env_dir[/opt/gitlab/etc/gitlab-exporter/env] action create
    * directory[/opt/gitlab/etc/gitlab-exporter/env] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR] action create (up to date)
    * file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE] action create (up to date)
     (up to date)
  * template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] action create (up to date)
  * version_file[Create version file for GitLab-Exporter] action create
    * file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] action create (up to date)
     (up to date)
  * service[gitlab-exporter] action nothing (skipped due to action :nothing)
  * runit_service[gitlab-exporter] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
    * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
    * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
    * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
    * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
     (up to date)
  * consul_service[gitlab-exporter] action delete
    * file[/var/opt/gitlab/consul/config.d/gitlab-exporter-service.json] action delete (up to date)
     (up to date)
Recipe: monitoring::redis-exporter
  * directory[/var/log/gitlab/redis-exporter] action create (up to date)
  * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date)
  * env_dir[/opt/gitlab/etc/redis-exporter/env] action create
    * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date)
    * file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] action create (up to date)
     (up to date)
  * service[redis-exporter] action nothing (skipped due to action :nothing)
  * runit_service[redis-exporter] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
    * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
    * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
    * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
    * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
    * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
    * link[/opt/gitlab/init/redis-exporter] action create (up to date)
    * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/redis-exporter] action create (up to date)
    * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
     (up to date)
  * consul_service[redis-exporter] action delete
    * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date)
     (up to date)
Recipe: monitoring::prometheus
  * directory[/var/opt/gitlab/prometheus] action create (up to date)
  * directory[/var/opt/gitlab/prometheus/rules] action create (up to date)
  * directory[/var/log/gitlab/prometheus] action create (up to date)
  * directory[/opt/gitlab/etc/prometheus/env] action create (up to date)
  * env_dir[/opt/gitlab/etc/prometheus/env] action create
    * directory[/opt/gitlab/etc/prometheus/env] action create (up to date)
    * file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] action create (up to date)
     (up to date)
  * execute[reload prometheus] action nothing (skipped due to action :nothing)
  * file[Prometheus config] action create (up to date)
  * service[prometheus] action nothing (skipped due to action :nothing)
  * runit_service[prometheus] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/prometheus] action create (up to date)
    * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
    * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
    * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
    * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/prometheus/config] action create (up to date)
    * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
    * link[/opt/gitlab/init/prometheus] action create (up to date)
    * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/prometheus] action create (up to date)
    * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
     (up to date)
  * consul_service[prometheus] action delete
    * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date)
     (up to date)
  * template[/var/opt/gitlab/prometheus/rules/gitlab.rules] action create (up to date)
  * template[/var/opt/gitlab/prometheus/rules/node.rules] action create (up to date)
Recipe: monitoring::alertmanager
  * directory[/var/opt/gitlab/alertmanager] action create (up to date)
  * directory[/var/log/gitlab/alertmanager] action create (up to date)
  * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date)
  * env_dir[/opt/gitlab/etc/alertmanager/env] action create
    * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date)
    * file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] action create (up to date)
     (up to date)
  * file[Alertmanager config] action create (up to date)
  * service[alertmanager] action nothing (skipped due to action :nothing)
  * runit_service[alertmanager] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
    * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
    * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
    * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
    * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/alertmanager/config] action create (up to date)
    * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
    * link[/opt/gitlab/init/alertmanager] action create (up to date)
    * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/alertmanager] action create (up to date)
    * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
     (up to date)
Recipe: monitoring::postgres-exporter
  * directory[/var/log/gitlab/postgres-exporter] action create (up to date)
  * directory[/var/opt/gitlab/postgres-exporter] action create (up to date)
  * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create
    * directory[/opt/gitlab/etc/postgres-exporter/env] action create (up to date)
    * file[/opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR] action create (up to date)
    * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create (up to date)
     (up to date)
  * service[postgres-exporter] action nothing (skipped due to action :nothing)
  * runit_service[postgres-exporter] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
    * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
    * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
    * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
    * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
    * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
    * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
    * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
     (up to date)
  * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create (up to date)
  * consul_service[postgres-exporter] action delete
    * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date)
     (up to date)
Recipe: monitoring::grafana
  * directory[/var/log/gitlab/grafana] action create (up to date)
  * directory[/var/opt/gitlab/grafana] action create (up to date)
  * directory[/var/opt/gitlab/grafana/provisioning] action create (up to date)
  * directory[/var/opt/gitlab/grafana/provisioning/dashboards] action create (up to date)
  * directory[/var/opt/gitlab/grafana/provisioning/datasources] action create (up to date)
  * directory[/var/opt/gitlab/grafana/provisioning/notifiers] action create (up to date)
  * file[/var/opt/gitlab/grafana/CVE_reset_status] action delete (up to date)
  * link[/var/opt/gitlab/grafana/conf] action create (up to date)
  * link[/var/opt/gitlab/grafana/public] action create (up to date)
  * directory[/opt/gitlab/etc/grafana/env] action create (up to date)
  * ruby_block[populate Grafana configuration options] action run[2022-07-21T22:51:06+08:00] INFO: ruby_block[populate Grafana configuration options] called

    - execute the ruby block populate Grafana configuration options
  * env_dir[/opt/gitlab/etc/grafana/env] action create
    * directory[/opt/gitlab/etc/grafana/env] action create (up to date)
    * file[/opt/gitlab/etc/grafana/env/SSL_CERT_DIR] action create (up to date)
     (up to date)
  * template[/var/opt/gitlab/grafana/grafana.ini] action create (up to date)
  * file[/var/opt/gitlab/grafana/provisioning/dashboards/gitlab_dashboards.yml] action create (up to date)
  * file[/var/opt/gitlab/grafana/provisioning/datasources/gitlab_datasources.yml] action create (up to date)
  * service[grafana] action nothing (skipped due to action :nothing)
  * runit_service[grafana] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/grafana] action create (up to date)
    * template[/opt/gitlab/sv/grafana/run] action create (up to date)
    * directory[/opt/gitlab/sv/grafana/log] action create (up to date)
    * directory[/opt/gitlab/sv/grafana/log/main] action create (up to date)
    * template[/opt/gitlab/sv/grafana/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_grafana] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/grafana/config] action create (up to date)
    * template[/opt/gitlab/sv/grafana/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/grafana/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for grafana service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/grafana/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/grafana/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/grafana/control] action create (up to date)
    * link[/opt/gitlab/init/grafana] action create (up to date)
    * file[/opt/gitlab/sv/grafana/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/grafana] action create (up to date)
    * ruby_block[wait for grafana service socket] action run (skipped due to not_if)
     (up to date)
Recipe: gitlab::database_reindexing_disable
  * crond_job[database-reindexing] action delete
    * file[/var/opt/gitlab/crond/database-reindexing] action delete (up to date)
     (up to date)
[2022-07-21T22:51:06+08:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending run action to execute[clear the gitlab-rails cache] (delayed)
Recipe: gitlab::gitlab-rails
  * execute[clear the gitlab-rails cache] action run[2022-07-21T22:51:22+08:00] INFO: execute[clear the gitlab-rails cache] ran successfully

    - execute /opt/gitlab/bin/gitlab-rake cache:clear
[2022-07-21T22:51:22+08:00] INFO: template[Create Gitaly config.toml] sending hup action to runit_service[gitaly] (delayed)
Recipe: gitaly::enable
  * runit_service[gitaly] action hup[2022-07-21T22:51:22+08:00] INFO: runit_service[gitaly] signalled (HUP)
[2022-07-21T22:51:22+08:00] INFO: runit_service[gitaly] sent hup

    - send hup to runit_service[gitaly]
[2022-07-21T22:51:22+08:00] INFO: version_file[Create version file for Gitlab KAS] sending restart action to runit_service[gitlab-kas] (delayed)
Recipe: gitlab-kas::enable
  * runit_service[gitlab-kas] action restart (up to date)
[2022-07-21T22:51:22+08:00] INFO: version_file[Create version file for Workhorse] sending restart action to runit_service[gitlab-workhorse] (delayed)
Recipe: gitlab::gitlab-workhorse
  * runit_service[gitlab-workhorse] action restart (up to date)
[2022-07-21T22:51:23+08:00] INFO: Chef Infra Client Run complete in 62.338972278 seconds

Running handlers:
[2022-07-21T22:51:23+08:00] INFO: Running report handlers
Running handlers complete
[2022-07-21T22:51:23+08:00] INFO: Report handlers complete
Infra Phase complete, 25/824 resources updated in 01 minutes 04 seconds

Warnings:
The version of the running redis service is different than what is installed.
Please restart redis to start the new version.

sudo gitlab-ctl restart redis

gitlab Reconfigured!
Restarting previously running GitLab services
ok: run: alertmanager: (pid 20989) 0s
ok: run: gitaly: (pid 1208) 810452s
ok: run: gitlab-exporter: (pid 20998) 1s
ok: run: gitlab-kas: (pid 20970) 2s
ok: run: gitlab-workhorse: (pid 20980) 2s
ok: run: grafana: (pid 21002) 0s
ok: run: logrotate: (pid 21010) 0s
ok: run: nginx: (pid 21019) 0s
ok: run: node-exporter: (pid 21025) 0s
ok: run: postgres-exporter: (pid 21034) 1s
ok: run: postgresql: (pid 1196) 810455s
ok: run: prometheus: (pid 21043) 0s
ok: run: puma: (pid 21059) 1s
ok: run: redis: (pid 1187) 810456s
ok: run: redis-exporter: (pid 21067) 0s
ok: run: sidekiq: (pid 21073) 1s

     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  

Upgrade complete! If your GitLab server is misbehaving try running
  sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

4. 验证

image-20220725112655449

image-20220725112832755

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

田辛 | 田豆芽

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值