commit a924233573d10f801b634d3f327a703d49e83342 Author: yuyr Date: Sun Apr 27 09:56:14 2025 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02afab9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ + +openstreetmap-website/ + +openstreetmap-templates/ + +osm/ + +venv_reset/ + +tmpfs/ + +wiki/ + +venv/ + +*.tar.gz \ No newline at end of file diff --git a/00_vars.sh b/00_vars.sh new file mode 100644 index 0000000..7ec8b9b --- /dev/null +++ b/00_vars.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +# PUBLIC_HOSTNAME=$(curl -s ifconfig.me) +PUBLIC_HOSTNAME="localhost" + +# Change ports as desired +REDDIT_PORT=28080 +# WIKIPEDIA_PORT=28081 +SHOPPING_PORT=28082 +SHOPPING_ADMIN_PORT=28083 +GITLAB_PORT=28084 +# MAP_PORT=28085 +HOMEPAGE_PORT=20080 +RESET_PORT=20081 + +# Original webarena ports +# SHOPPING_PORT=7770 +# SHOPPING_ADMIN_PORT=7780 +# REDDIT_PORT=9999 +# GITLAB_PORT=8023 +# WIKIPEDIA_PORT=8888 +# MAP_PORT=3000 +# HOMEPAGE_PORT=4399 + +SHOPPING_URL="http://${PUBLIC_HOSTNAME}:${SHOPPING_PORT}" +SHOPPING_ADMIN_URL="http://${PUBLIC_HOSTNAME}:${SHOPPING_ADMIN_PORT}/admin" +REDDIT_URL="http://${PUBLIC_HOSTNAME}:${REDDIT_PORT}/forums/all" +GITLAB_URL="http://${PUBLIC_HOSTNAME}:${GITLAB_PORT}/explore" +# WIKIPEDIA_URL="http://${PUBLIC_HOSTNAME}:${WIKIPEDIA_PORT}/wikipedia_en_all_maxi_2022-05/A/User:The_other_Kiwix_guy/Landing" +# MAP_URL="http://${PUBLIC_HOSTNAME}:${MAP_PORT}" +MAP_URL="https://www.openstreetmap.org/" + +# download the archives from the webarena instructions +# https://github.com/web-arena-x/webarena/tree/main/environment_docker +# Download the additional openstreetmap docker files from Zenodo (see README) +# - shopping_final_0712.tar +# - shopping_admin_final_0719.tar +# - postmill-populated-exposed-withimg.tar +# - gitlab-populated-final-port8023.tar +# - openstreetmap-website-db.tar.gz +# - openstreetmap-website-web.tar.gz +# - openstreetmap-website.tar.gz +# - wikipedia_en_all_maxi_2022-05.zim + +ARCHIVES_LOCATION="/home/yuyr/webarena_docker_tar" diff --git a/01_docker_load_images.sh b/01_docker_load_images.sh new file mode 100644 index 0000000..f5d7927 --- /dev/null +++ b/01_docker_load_images.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +# stop if any error occur +set -e + +source ./00_vars.sh + +assert() { + if ! "$@"; then + echo "Assertion failed: $@" >&2 + exit 1 + fi +} + +load_docker_image() { + local IMAGE_NAME="$1" + local INPUT_FILE="$2" + + if ! docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "^${IMAGE_NAME}:"; then + echo "Loading Docker image ${IMAGE_NAME} from ${INPUT_FILE}" + docker load --input "${INPUT_FILE}" + else + echo "Docker image ${IMAGE_NAME} is already loaded." + fi +} + +# make sure all required files are here +assert [ -f ${ARCHIVES_LOCATION}/shopping_final_0712.tar ] +assert [ -f ${ARCHIVES_LOCATION}/shopping_admin_final_0719.tar ] +assert [ -f ${ARCHIVES_LOCATION}/postmill-populated-exposed-withimg.tar ] +assert [ -f ${ARCHIVES_LOCATION}/gitlab-populated-final-port8023.tar ] +# assert [ -f ${ARCHIVES_LOCATION}/openstreetmap-website-db.tar.gz ] +# assert [ -f ${ARCHIVES_LOCATION}/openstreetmap-website-web.tar.gz ] +# assert [ -f ${ARCHIVES_LOCATION}/openstreetmap-website.tar.gz ] +# assert [ -f ${ARCHIVES_LOCATION}/wikipedia_en_all_maxi_2022-05.zim ] + +# load docker images (if needed) +load_docker_image "shopping_final_0712" "${ARCHIVES_LOCATION}/shopping_final_0712.tar" +load_docker_image "shopping_admin_final_0719" ${ARCHIVES_LOCATION}/shopping_admin_final_0719.tar +load_docker_image "postmill-populated-exposed-withimg" "${ARCHIVES_LOCATION}/postmill-populated-exposed-withimg.tar" +load_docker_image "gitlab-populated-final-port8023" "${ARCHIVES_LOCATION}/gitlab-populated-final-port8023.tar" +# load_docker_image "openstreetmap-website-db" "${ARCHIVES_LOCATION}/openstreetmap-website-db.tar.gz" +#load_docker_image "openstreetmap-website-web" "${ARCHIVES_LOCATION}/openstreetmap-website-web.tar.gz" + +# extract openstreetmap archive locally (if needed) +# if [ ! -d ./openstreetmap-website ]; then +# echo "Extracting openstreemap archive..." +# tar -xzf ${ARCHIVES_LOCATION}/openstreetmap-website.tar.gz +# else +# echo "Openstreemap archive already extracted." +# fi + +# copy wikipedia archive to local folder (if needed) +# WIKIPEDIA_ARCHIVE=wikipedia_en_all_maxi_2022-05.zim +# if [ ! -f ./wiki/${WIKIPEDIA_ARCHIVE} ]; then +# echo "Moving wikipedia archive..." +# mkdir -p ./wiki +# cp ${ARCHIVES_LOCATION}/${WIKIPEDIA_ARCHIVE} ./wiki +# else +# echo "Wikipedia archive already present." +# fi diff --git a/02_docker_remove_containers.sh b/02_docker_remove_containers.sh new file mode 100644 index 0000000..ad84478 --- /dev/null +++ b/02_docker_remove_containers.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +docker stop shopping_admin forum gitlab shopping || true +docker rm shopping_admin forum gitlab shopping || true + +# docker stop shopping_admin forum gitlab shopping wikipedia openstreetmap-website-db-1 openstreetmap-website-web-1 || true +#docker rm shopping_admin forum gitlab shopping wikipedia openstreetmap-website-db-1 openstreetmap-website-web-1 || true + diff --git a/03_docker_create_containers.sh b/03_docker_create_containers.sh new file mode 100644 index 0000000..0875b87 --- /dev/null +++ b/03_docker_create_containers.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +# stop if any error occur +set -e + +source ./00_vars.sh + +WORKING_DIR=$(pwd) + +docker create --name shopping -p $SHOPPING_PORT:80 shopping_final_0712 +docker create --name shopping_admin -p $SHOPPING_ADMIN_PORT:80 shopping_admin_final_0719 +docker create --name forum -p $REDDIT_PORT:80 postmill-populated-exposed-withimg +docker create --name gitlab --sysctl net.ipv6.conf.all.disable_ipv6=0 --sysctl net.ipv6.conf.default.disable_ipv6=0 \ + -p $GITLAB_PORT:$GITLAB_PORT gitlab-populated-final-port8023 /opt/gitlab/embedded/bin/runsvdir-start --env GITLAB_PORT=$GITLAB_PORT +# docker create --name wikipedia --volume=${WORKING_DIR}/wiki_patch/start.sh:/usr/local/bin/start.sh \ +# --volume=${WORKING_DIR}/wiki/:/data --network=host ghcr.io/kiwix/kiwix-serve:3.3.0 wikipedia_en_all_maxi_2022-05.zim $WIKIPEDIA_PORT + +# +# # openstreetmap docker set up +# cd openstreetmap-website/ + +# # tile server URL (use default openstreetmap server) +# OSM_TILE_SERVER_URL="http://tile-server-run/tile/{z}/{x}/{y}.png" +# # geocoding server URL (use default openstreetmap server) +# OSM_GEOCODING_SERVER_URL="http://geocoding:8080/" +# # routing server URLs (use default openstreetmap server) +# OSM_ROUTING_SERVER_URL="http://nginx" +# OSM_CAR_SUFFIX="/routed-car" +# OSM_BIKE_SUFFIX="/routed-bike" +# OSM_FOOT_SUFFIX="/routed-foot" +# # original WebArena config (CMU server with different ports for each vehicule type) +# # OSM_ROUTING_SERVER_URL="http://metis.lti.cs.cmu.edu" +# # OSM_CAR_SUFFIX=":5000" +# # OSM_BIKE_SUFFIX=":5001" +# # OSM_FOOT_SUFFIX=":5002" + +# # copy template files to be set up +# cp ../openstreetmap-templates/docker-compose.yml ./docker-compose.yml +# cp ../openstreetmap-templates/nginx.conf ./nginx.conf +# cp ../openstreetmap-templates/leaflet.osm.js ./vendor/assets/leaflet/leaflet.osm.js +# cp ../openstreetmap-templates/fossgis_osrm.js ./app/assets/javascripts/index/directions/fossgis_osrm.js + +# # set up web server port +# sed -i "s|MAP_PORT|${MAP_PORT}|g" docker-compose.yml +# # set up tile server URL +# sed -i "s|url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'|url: '${OSM_TILE_SERVER_URL}'|g" ./vendor/assets/leaflet/leaflet.osm.js +# # set up geocoding server URL +# sed -i "s|nominatim_url:.*|nominatim_url: \"$OSM_GEOCODING_SERVER_URL\"|g" ./config/settings.yml +# # set up routing server URLs +# sed -i "s|fossgis_osrm_url:.*|fossgis_osrm_url: \"$OSM_ROUTING_SERVER_URL\"|g" ./config/settings.yml +# sed -i "s|__OSMCarSuffix__|${OSM_CAR_SUFFIX}|g" ./app/assets/javascripts/index/directions/fossgis_osrm.js +# sed -i "s|__OSMBikeSuffix__|${OSM_BIKE_SUFFIX}|g" ./app/assets/javascripts/index/directions/fossgis_osrm.js +# sed -i "s|__OSMFootSuffix__|${OSM_FOOT_SUFFIX}|g" ./app/assets/javascripts/index/directions/fossgis_osrm.js + +# docker compose create diff --git a/04_docker_start_containers.sh b/04_docker_start_containers.sh new file mode 100644 index 0000000..00cd2e9 --- /dev/null +++ b/04_docker_start_containers.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# stop if any error occur +set -e + +docker start gitlab +docker start shopping +docker start shopping_admin +docker start forum +# docker start kiwix33 +# docker start wikipedia + +# cd openstreetmap-website/ +# docker compose start + +# 尤其是等gitlab,这个服务启动很慢,要5分钟以上 +echo -n -e "Waiting 300 seconds for all services to start..." +sleep 300 +echo -n -e " done\n" + diff --git a/05_docker_patch_containers.sh b/05_docker_patch_containers.sh new file mode 100644 index 0000000..5f0d9e2 --- /dev/null +++ b/05_docker_patch_containers.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +# stop if any error occur +set -e + +source ./00_vars.sh + +# reddit - make server more responsive +docker exec forum sed -i \ + -e 's/^pm.max_children = .*/pm.max_children = 32/' \ + -e 's/^pm.start_servers = .*/pm.start_servers = 10/' \ + -e 's/^pm.min_spare_servers = .*/pm.min_spare_servers = 5/' \ + -e 's/^pm.max_spare_servers = .*/pm.max_spare_servers = 20/' \ + -e 's/^;pm.max_requests = .*/pm.max_requests = 500/' \ + /usr/local/etc/php-fpm.d/www.conf +docker exec forum supervisorctl restart php-fpm + +echo "Patching shopping container" +# shopping + shopping admin +docker exec shopping /var/www/magento2/bin/magento setup:store-config:set --base-url="http://$PUBLIC_HOSTNAME:$SHOPPING_PORT" # no trailing / +docker exec shopping mysql -u magentouser -pMyPassword magentodb -e "UPDATE core_config_data SET value='http://$PUBLIC_HOSTNAME:$SHOPPING_PORT/' WHERE path = 'web/secure/base_url';" +# remove the requirement to reset password +echo "Removing the requirement to reset password" +docker exec shopping_admin php /var/www/magento2/bin/magento config:set admin/security/password_is_forced 0 +docker exec shopping_admin php /var/www/magento2/bin/magento config:set admin/security/password_lifetime 0 +docker exec shopping /var/www/magento2/bin/magento cache:flush + +echo "Patching shopping admin container" +docker exec shopping_admin /var/www/magento2/bin/magento setup:store-config:set --base-url="http://$PUBLIC_HOSTNAME:$SHOPPING_ADMIN_PORT" +docker exec shopping_admin mysql -u magentouser -pMyPassword magentodb -e "UPDATE core_config_data SET value='http://$PUBLIC_HOSTNAME:$SHOPPING_ADMIN_PORT/' WHERE path = 'web/secure/base_url';" +docker exec shopping_admin /var/www/magento2/bin/magento cache:flush + +echo "Patching gitlab container" +# gitlab +docker exec gitlab sed -i "s|^external_url.*|external_url 'http://$PUBLIC_HOSTNAME:$GITLAB_PORT'|" /etc/gitlab/gitlab.rb +docker exec gitlab bash -c "printf '\n\npuma[\"worker_processes\"] = 4' >> /etc/gitlab/gitlab.rb" # bugfix https://github.com/ServiceNow/BrowserGym/issues/285 +# 添加 IPv6 支持 +docker exec gitlab bash -c "echo ' +# Enable IPv6 +nginx[\"listen_addresses\"] = [\"[::]\", \"0.0.0.0\"] +nginx[\"listen_port\"] = $GITLAB_PORT +' >> /etc/gitlab/gitlab.rb" +docker exec gitlab gitlab-ctl reconfigure + + +# echo "Patching openstreetmap container" +# maps +# docker exec openstreetmap-website-web-1 bin/rails db:migrate RAILS_ENV=development diff --git a/06_serve_homepage.sh b/06_serve_homepage.sh new file mode 100644 index 0000000..91f625a --- /dev/null +++ b/06_serve_homepage.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +source ./00_vars.sh + +# install flask in a venv +# apt install python3-venv -y +python3 -m venv venv +source venv/bin/activate +pip install flask + + +cd webarena-homepage +cp templates/index.backup templates/index.html +sed -i "s|SHOPPING_URL|${SHOPPING_URL}|g" templates/index.html +sed -i "s|SHOPPING_ADMIN_URL|${SHOPPING_ADMIN_URL}|g" templates/index.html +sed -i "s|GITLAB_URL|${GITLAB_URL}|g" templates/index.html +sed -i "s|REDDIT_URL|${REDDIT_URL}|g" templates/index.html +sed -i "s|MAP_URL|${MAP_URL}|g" templates/index.html +sed -i "s|WIKIPEDIA_URL|${WIKIPEDIA_URL}|g" templates/index.html + +flask run --host=0.0.0.0 --port=$HOMEPAGE_PORT diff --git a/07_serve_reset.sh b/07_serve_reset.sh new file mode 100644 index 0000000..7a0f202 --- /dev/null +++ b/07_serve_reset.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# stop if any error occur +set -e + +source ./00_vars.sh + +# install flask in a venv +# apt install python3-venv -y +python3 -m venv venv_reset +source venv_reset/bin/activate + +cd reset_server/ +python server.py --port ${RESET_PORT} 2>&1 | tee -a server.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..3987ef5 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ + +# 简化部署WebArena-Lite环境 +1. 只管理shopping, shopping_admin, gitlab, reddit四个网站。 +2. Wiki在webarena-lite中移除,所以先不用部署 +3. openstreetmap部署非常复杂,建议使用官网 https://opensteetmap.org + +# 部署方法 +1. 保证环境已经加载了四个网站的docker镜像,如果还没加载,使用`01_docker_load_images.sh` +2. 修改`00_vars.sh`,配置每个网页的端口 +3. 拉起/重置环境,执行`sh reset.sh` + +# 注意事项 +1. 当前配置了访问url为`localhost`,所以只能同一台服务器上的程序能够访问,不能跨机器; +2. 可以使用vscode的端口映射功能映射到笔记本上,打开四个网站进行浏览。 + diff --git a/README_original.md b/README_original.md new file mode 100644 index 0000000..5ae0a27 --- /dev/null +++ b/README_original.md @@ -0,0 +1,75 @@ +> :warning: **This is not an official WebArena repo. For the official instructions refer to [WebArena](https://github.com/web-arena-x/webarena/tree/main/environment_docker)** + +# webarena-setup + +Setup scripts for webarena. + +## Get the files + +Download the necessary docker images from the [official webarena repo](https://github.com/web-arena-x/webarena/tree/main/environment_docker). You'll need the following files: +- shopping_final_0712.tar +- shopping_admin_final_0719.tar +- postmill-populated-exposed-withimg.tar +- gitlab-populated-final-port8023.tar +- wikipedia_en_all_maxi_2022-05.zim + +Download the additional openstreetmap docker files from Zenodo: +```sh +wget https://zenodo.org/records/12636845/files/openstreetmap-website-db.tar.gz +wget https://zenodo.org/records/12636845/files/openstreetmap-website-web.tar.gz +wget https://zenodo.org/records/12636845/files/openstreetmap-website.tar.gz +``` + +(if you're planning to setup multiple instances, should download these files once in a shared location) + +## Configure the scripts + +Edit `00_vars.sh` with your ports and hostname (or ip address). You can also change `ARCHIVES_LOCATION="./"` to where your files are if you put them at a different location (like a shared folder). + +## Extract / load the image files (very long, do it just once) + +Untar the openstreemap docker folder: +```sh +tar -xzf ./openstreetmap-website.tar.gz +``` + +Create a wiki folder and move (or copy) the wikipedia file to it +```sh +mkdir wiki +mv ./wikipedia_en_all_maxi_2022-05.zim wiki/ +``` + +Load the docker image files +```sh +sudo bash 01_docker_load_images.sh +``` + +Once these three steps are completed, you can get rid of the downloaded files (or unmount your shared folder) as these won't be needed any more. + +## Run the server + +Easiest way is to start a tmux or screen session, then run scripts 02 to 06 in order. The last script serves the homepage and should stay up. +```bash +sudo bash 02_docker_remove_containers.sh +sudo bash 03_docker_create_containers.sh +sudo bash 04_docker_start_containers.sh +sudo bash 05_docker_patch_containers.sh +sudo bash 06_serve_homepage.sh +``` + +Optional: to start the reset server (automated full instance resets) run the following in a side tmux or screen terminal +```bash +sudo bash 07_serve_reset.sh +``` + +Then you can trigger a full instance reset by accessing `http://${PUBLIC_HOSTNAME}:${RESET_PORT}/reset` check the instance status via `http://${PUBLIC_HOSTNAME}:${RESET_PORT}/reset`. + +## Safety check + +Go to the homepage and click each link to make sure the websites are operational (some might take ~10 secs to load the first time). + +## Reset + +After an agent is evaluated on WebArena, a reset is required before another agent can be evaluated. + +Run scripts 02 to 06 again, or query the reset URL `http://${PUBLIC_HOSTNAME}:${RESET_PORT}/reset` if the reset server is running. diff --git a/download_openstreemap.sh b/download_openstreemap.sh new file mode 100644 index 0000000..7483d70 --- /dev/null +++ b/download_openstreemap.sh @@ -0,0 +1,3 @@ +wget https://zenodo.org/records/12636845/files/openstreetmap-website-db.tar.gz +wget https://zenodo.org/records/12636845/files/openstreetmap-website-web.tar.gz +wget https://zenodo.org/records/12636845/files/openstreetmap-website.tar.gz \ No newline at end of file diff --git a/reset.sh b/reset.sh new file mode 100644 index 0000000..586be56 --- /dev/null +++ b/reset.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# stop if any error occur +set -e + +bash 02_docker_remove_containers.sh +bash 03_docker_create_containers.sh +bash 04_docker_start_containers.sh +bash 05_docker_patch_containers.sh + diff --git a/reset_server/fail_message b/reset_server/fail_message new file mode 100644 index 0000000..e69de29 diff --git a/reset_server/reset.sh b/reset_server/reset.sh new file mode 100644 index 0000000..574bb35 --- /dev/null +++ b/reset_server/reset.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# stop if any error occur +set -e + +cd .. +bash 02_docker_remove_containers.sh +bash 03_docker_create_containers.sh +bash 04_docker_start_containers.sh +bash 05_docker_patch_containers.sh + diff --git a/reset_server/server.log b/reset_server/server.log new file mode 100644 index 0000000..0923ccc --- /dev/null +++ b/reset_server/server.log @@ -0,0 +1,2559 @@ +2025-03-31 09:48:46,630 [MainThread ] [INFO ] Serving on port 27565... +2025-03-31 09:49:05,664 [Thread-1 (pr] [INFO ] / request received +2025-03-31 09:49:05,664 [Thread-1 (pr] [INFO ] Wrong request +127.0.0.1 - - [31/Mar/2025 09:49:05] "GET / HTTP/1.1" 404 - +2025-03-31 09:49:10,144 [Thread-2 (pr] [INFO ] /favicon.ico request received +2025-03-31 09:49:10,144 [Thread-2 (pr] [INFO ] Wrong request +127.0.0.1 - - [31/Mar/2025 09:49:10] "GET /favicon.ico HTTP/1.1" 404 - +2025-03-31 09:49:11,901 [Thread-3 (pr] [INFO ] /reset request received +2025-03-31 09:49:11,902 [Thread-3 (pr] [INFO ] Running reset script... +127.0.0.1 - - [31/Mar/2025 09:49:11] "GET /reset HTTP/1.1" 200 - +2025-03-31 09:49:15,659 [Thread-5 (pr] [INFO ] /status request received +2025-03-31 09:49:15,659 [Thread-5 (pr] [INFO ] Returning ongoing status +127.0.0.1 - - [31/Mar/2025 09:49:15] "GET /status HTTP/1.1" 200 - +shopping_admin +forum +gitlab +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +shopping_admin +forum +gitlab +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +fb45674295f49f84cf7333981bca453c3eba04f7940e5b21057cac9c32b873e4 +bbaa05f4242671905137f58e755557025bb8bc5d1c9bca56e9602d567fd73c9a +513b6bc8608a77323377e6e88b1acbd286bfbc7a2b798100101bbb1cc46d10af +79956e3542ac747b9d230ba46ba72ce0415a444ef6d5302f5ce24a5cbe1f93f0 +30061f8eb42c307cd47062d7814e8282ee703abaa93e3f80829364aa7e4c13c3 +time="2025-03-31T09:49:40+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Creating + Container openstreetmap-website-db-1 Created + Container openstreetmap-website-web-1 Creating + Container openstreetmap-website-web-1 Created +gitlab +shopping +shopping_admin +forum +wikipedia +time="2025-03-31T09:49:57+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Starting + Container openstreetmap-website-db-1 Started + Container openstreetmap-website-web-1 Starting + Container openstreetmap-website-web-1 Started +Waiting 60 seconds for all services to start... done +php-fpm: stopped +php-fpm: started + +In Abstract.php line 144: + + SQLSTATE[HY000] [2002] Connection refused + + +In Abstract.php line 128: + + SQLSTATE[HY000] [2002] Connection refused + + +setup:store-config:set [--base-url BASE-URL] [--language LANGUAGE] [--timezone TIMEZONE] [--currency CURRENCY] [--use-rewrites USE-REWRITES] [--use-secure USE-SECURE] [--base-url-secure BASE-URL-SECURE] [--use-secure-admin USE-SECURE-ADMIN] [--admin-use-security-key ADMIN-USE-SECURITY-KEY] [--magento-init-params MAGENTO-INIT-PARAMS] + +2025-03-31 09:56:04,919 [Thread-4 (re] [INFO ] Reset failed :( +2025-03-31 10:10:37,632 [Thread-7 (pr] [INFO ] /status request received +2025-03-31 10:10:37,633 [Thread-7 (pr] [ERROR] Returning error status +127.0.0.1 - - [31/Mar/2025 10:10:37] "GET /status HTTP/1.1" 500 - +2025-03-31 10:10:44,928 [Thread-8 (pr] [INFO ] /reset request received +2025-03-31 10:10:44,951 [Thread-8 (pr] [INFO ] Running reset script... +127.0.0.1 - - [31/Mar/2025 10:10:44] "GET /reset HTTP/1.1" 200 - +2025-03-31 10:10:48,310 [Thread-9 (pr] [INFO ] /status request received +2025-03-31 10:10:48,311 [Thread-9 (pr] [INFO ] Returning ongoing status +127.0.0.1 - - [31/Mar/2025 10:10:48] "GET /status HTTP/1.1" 200 - +shopping_admin +forum +gitlab +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +shopping_admin +forum +gitlab +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +e884d7dc7738021794517f00e1f4efe5020a260eeb2267fad9a4f94aa2c989c8 +7845d202aef7bab08c1162dd0410cb3295401ee65b75d2863f66a38e56e41000 +f8bad1cd2d4d18f371826ecdef61f1f804893b457a578b9f9907c602dead4e20 +ffbc4a4f5eb1005b6a2a1e41c461a36c7cb5ebe72809e77452b9c366eb0779ac +43d3b9d01d3dab9e684497639b82db92f016ad3745f7c34acd1177ca5ebbc68b +time="2025-03-31T10:11:03+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Creating + Container openstreetmap-website-db-1 Created + Container openstreetmap-website-web-1 Creating + Container openstreetmap-website-web-1 Created +gitlab +shopping +shopping_admin +forum +wikipedia +time="2025-03-31T10:11:16+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Starting + Container openstreetmap-website-db-1 Started + Container openstreetmap-website-web-1 Starting + Container openstreetmap-website-web-1 Started +Waiting 60 seconds for all services to start... done +php-fpm: stopped +php-fpm: started + +In Abstract.php line 144: + + SQLSTATE[HY000] [2002] Connection refused + + +In Abstract.php line 128: + + SQLSTATE[HY000] [2002] Connection refused + + +setup:store-config:set [--base-url BASE-URL] [--language LANGUAGE] [--timezone TIMEZONE] [--currency CURRENCY] [--use-rewrites USE-REWRITES] [--use-secure USE-SECURE] [--base-url-secure BASE-URL-SECURE] [--use-secure-admin USE-SECURE-ADMIN] [--admin-use-security-key ADMIN-USE-SECURITY-KEY] [--magento-init-params MAGENTO-INIT-PARAMS] + +2025-03-31 10:16:45,140 [Thread-10 (r] [INFO ] Reset failed :( +2025-04-01 11:06:14,508 [MainThread ] [INFO ] Serving on port 20081... +2025-04-01 11:06:44,274 [Thread-1 (pr] [INFO ] / request received +2025-04-01 11:06:44,275 [Thread-1 (pr] [INFO ] Wrong request +127.0.0.1 - - [01/Apr/2025 11:06:44] "GET / HTTP/1.1" 404 - +2025-04-01 11:06:47,161 [Thread-2 (pr] [INFO ] /favicon.ico request received +2025-04-01 11:06:47,161 [Thread-2 (pr] [INFO ] Wrong request +127.0.0.1 - - [01/Apr/2025 11:06:47] "GET /favicon.ico HTTP/1.1" 404 - +2025-04-01 11:06:48,856 [Thread-3 (pr] [INFO ] /reset request received +2025-04-01 11:06:48,856 [Thread-3 (pr] [INFO ] Running reset script... +127.0.0.1 - - [01/Apr/2025 11:06:48] "GET /reset HTTP/1.1" 200 - +shopping_admin +forum +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +Error response from daemon: No such container: gitlab +shopping_admin +forum +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +Error response from daemon: No such container: gitlab +2025-04-01 11:06:59,124 [Thread-4 (re] [INFO ] Reset failed :( +2025-04-01 11:07:15,887 [Thread-5 (pr] [INFO ] /reset request received +2025-04-01 11:07:15,888 [Thread-5 (pr] [INFO ] Running reset script... +127.0.0.1 - - [01/Apr/2025 11:07:15] "GET /reset HTTP/1.1" 200 - +Error response from daemon: No such container: shopping_admin +Error response from daemon: No such container: forum +Error response from daemon: No such container: gitlab +Error response from daemon: No such container: shopping +Error response from daemon: No such container: wikipedia +Error response from daemon: No such container: openstreetmap-website-db-1 +Error response from daemon: No such container: openstreetmap-website-web-1 +Error response from daemon: No such container: shopping_admin +Error response from daemon: No such container: forum +Error response from daemon: No such container: gitlab +Error response from daemon: No such container: shopping +Error response from daemon: No such container: wikipedia +Error response from daemon: No such container: openstreetmap-website-db-1 +Error response from daemon: No such container: openstreetmap-website-web-1 +2025-04-01 11:07:15,949 [Thread-6 (re] [INFO ] Reset failed :( +2025-04-01 11:08:21,075 [Thread-9 (pr] [INFO ] /reset request received +2025-04-01 11:08:21,076 [Thread-9 (pr] [INFO ] Running reset script... +127.0.0.1 - - [01/Apr/2025 11:08:21] "GET /reset HTTP/1.1" 200 - +Error response from daemon: No such container: shopping_admin +Error response from daemon: No such container: forum +Error response from daemon: No such container: gitlab +Error response from daemon: No such container: shopping +Error response from daemon: No such container: wikipedia +Error response from daemon: No such container: openstreetmap-website-db-1 +Error response from daemon: No such container: openstreetmap-website-web-1 +Error response from daemon: No such container: shopping_admin +Error response from daemon: No such container: forum +Error response from daemon: No such container: gitlab +Error response from daemon: No such container: shopping +Error response from daemon: No such container: wikipedia +Error response from daemon: No such container: openstreetmap-website-db-1 +Error response from daemon: No such container: openstreetmap-website-web-1 +0fb15f22d4e50112551c77b02f03e7147cc607d06df8f1d8710745cd39107612 +20f0711ee5f04e311441a02cad9b99a03227672703ba3b710a02c0aaff2b7eb6 +1c156aecfc68676af8691a066cff39f1a82014fe5c17c402714a38d13e2426ee +0a3312fc8adda6f314167640657b3400f7551e2cbeeb56b95ea80722f65792a4 +92bb7065a492838fe22e837db8d7a7f97a63aa3bb3963f9c857f59feb24983a0 +time="2025-04-01T11:08:25+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Creating + Container openstreetmap-website-db-1 Created + Container openstreetmap-website-web-1 Creating + Container openstreetmap-website-web-1 Created +gitlab +shopping +shopping_admin +forum +wikipedia +time="2025-04-01T11:08:36+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Starting + Container openstreetmap-website-db-1 Started + Container openstreetmap-website-web-1 Starting + Container openstreetmap-website-web-1 Started +Waiting 600 seconds for all services to start...2025-04-01 11:13:19,273 [Thread-12 (p] [INFO ] /status request received +2025-04-01 11:13:19,273 [Thread-12 (p] [INFO ] Returning ongoing status +127.0.0.1 - - [01/Apr/2025 11:13:19] "GET /status HTTP/1.1" 200 - + done +php-fpm: stopped +php-fpm: started +Patching shopping container +Removing the requirement to reset password +Value was saved. +Value was saved. +Flushed cache types: +config +layout +block_html +collections +reflection +db_ddl +compiled_config +eav +customer_notification +config_integration +config_integration_api +full_page +config_webservice +translate +Patching shopping admin container +Flushed cache types: +config +layout +block_html +collections +reflection +db_ddl +compiled_config +eav +customer_notification +config_integration +config_integration_api +full_page +config_webservice +translate +Patching gitlab container +ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available +[2025-04-01T03:20:35+00:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook) +Cinc Client, version 17.10.0 +Patents: https://www.chef.io/patents +Infra Phase starting +[2025-04-01T03:20:37+00:00] INFO: *** Cinc Client 17.10.0 *** +[2025-04-01T03:20:37+00:00] INFO: Platform: x86_64-linux +[2025-04-01T03:20:37+00:00] INFO: Cinc-client pid: 1144 +[2025-04-01T03:20:44+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options +[2025-04-01T03:20:44+00:00] INFO: Run List is [recipe[gitlab]] +[2025-04-01T03:20:44+00:00] INFO: Run List expands to [gitlab] +[2025-04-01T03:20:44+00:00] INFO: Starting Cinc Client Run for 0a3312fc8add +[2025-04-01T03:20:44+00:00] INFO: Running start handlers +[2025-04-01T03:20:44+00:00] INFO: Start handlers complete. +Resolving cookbooks for run list: ["gitlab"] +[2025-04-01T03:20:58+00: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.7, acme@4.1.5, crond@0.1.0] +Synchronizing 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.7) + - crond (0.1.0) + - acme (4.1.5) +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) +[2025-04-01T03:21:22+00:00] INFO: Skipped selecting an init system because it was explicitly disabled +/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 267 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 (up to date) +Recipe: gitlab::users + * directory[/var/opt/gitlab] action create (up to date) + * account[GitLab user and group] action create (up to date) + * template[/var/opt/gitlab/.gitconfig] action create[2025-04-01T03:21:23+00:00] INFO: template[/var/opt/gitlab/.gitconfig] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/.gitconfig.chef-20250401032123.366165 +[2025-04-01T03:21:23+00:00] INFO: template[/var/opt/gitlab/.gitconfig] updated file contents /var/opt/gitlab/.gitconfig + + - update content in file /var/opt/gitlab/.gitconfig from df547f to a0993e + --- /var/opt/gitlab/.gitconfig 2023-01-18 16:08:36.000000000 +0000 + +++ /var/opt/gitlab/.chef-.gitconfig20250401-1144-1cfu3sw.gitconfig 2025-04-01 03:21:22.982442626 +0000 + @@ -4,7 +4,7 @@ + + [user] + name = GitLab + - email = gitlab@metis.lti.cs.cmu.edu + + email = gitlab@localhost + [core] + autocrlf = input + alternateRefsCommand="exit 0 #" + * 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 delete + * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date) + * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (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[2025-04-01T03:21:25+00: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-20250401032125.672515 +[2025-04-01T03:21:25+00: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 c553bc to f5ff4f + - 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[2025-04-01T03:21:25+00: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[2025-04-01T03:21:25+00: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/BUNDLE_GEMFILE] action create (up to date) + * file[/opt/gitlab/etc/gitlab-rails/env/PUMA_WORKER_MAX_MEMORY] 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 (up to date) + * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date) + * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date) + * 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 + * 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 (skipped due to only_if) +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::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 (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 (skipped due to only_if) + (up to date) + * 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 (up to date) + * 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 (up to date) + (up to date) + * 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 (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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (skipped due to only_if) + * 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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (skipped due to only_if) + * 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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (skipped due to only_if) + * 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[2025-04-01T03:21:40+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/postgresql/data/runtime.conf.chef-20250401032140.290730 +[2025-04-01T03:21:40+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] updated file contents /var/opt/gitlab/postgresql/data/runtime.conf + + - update content in file /var/opt/gitlab/postgresql/data/runtime.conf from 8ea17c to a0d807 + --- /var/opt/gitlab/postgresql/data/runtime.conf 2023-01-18 14:24:31.000000000 +0000 + +++ /var/opt/gitlab/postgresql/data/.chef-runtime20250401-1144-11zj1ai.conf 2025-04-01 03:21:40.287493792 +0000 + @@ -43,7 +43,7 @@ + #seq_page_cost = 1.0 # measured on an arbitrary scale + random_page_cost = 2.0 # same scale as above + + -effective_cache_size = 32066MB # Default 128MB + +effective_cache_size = 64389MB # Default 128MB + + log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements + # and their durations, > 0 logs only + * 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) + +[2025-04-01T03:21:40+00:00] INFO: postgresql_config[gitlab] sending run action to execute[reload postgresql] (immediate) +Recipe: postgresql::standalone + * execute[reload postgresql] action run[2025-04-01T03:21:41+00:00] INFO: execute[reload postgresql] ran successfully + + - execute /opt/gitlab/bin/gitlab-ctl hup postgresql +[2025-04-01T03:21:41+00:00] INFO: postgresql_config[gitlab] sending run action to execute[start postgresql] (immediate) + * execute[start postgresql] action run (skipped due to not_if) + * 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[2025-04-01T03:21:41+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] owner changed to 996 +[2025-04-01T03:21:41+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 996 + + - change owner from 'root' to 'gitlab-psql' + - change group from 'root' to 'gitlab-psql'[2025-04-01T03:21:41+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] updated atime and mtime to 2025-04-01 03:21:41 +0000 + + - update utime on file /opt/gitlab/service/postgresql/supervise/status + * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2025-04-01T03:21:41+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 996 +[2025-04-01T03:21:41+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 996 + + - change owner from 'root' to 'gitlab-psql' + - change group from 'root' to 'gitlab-psql'[2025-04-01T03:21:41+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2025-04-01 03:21:41 +0000 + + - 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 (up to date) + (up to date) + * 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[2025-04-01T03:21:54+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml.chef-20250401032154.381936 +[2025-04-01T03:21:54+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] updated file contents /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml + + - update content in file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml from e88441 to 2bdd84 + --- /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml 2023-02-01 07:10:13.000000000 +0000 + +++ /var/opt/gitlab/gitlab-kas/.chef-gitlab-kas-config20250401-1144-yzo855.yml 2025-04-01 03:21:54.379535460 +0000 + @@ -16,7 +16,7 @@ + info_cache_ttl: 300s + info_cache_error_ttl: 60s + gitlab: + - address: http://metis.lti.cs.cmu.edu:8023 + + address: http://localhost:28084 + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file + observability: + listen: + * 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_hide_env[migrate gitlab-rails database] action run (skipped due to not_if) + (up to date) +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[2025-04-01T03:21:55+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/etc/puma.rb.chef-20250401032155.359767 +[2025-04-01T03:21:55+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] updated file contents /var/opt/gitlab/gitlab-rails/etc/puma.rb + + - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from 1edd89 to 1033b4 + --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2023-01-18 14:25:53.000000000 +0000 + +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20250401-1144-1r7dbf4.rb 2025-04-01 03:21:55.356538349 +0000 + @@ -41,7 +41,7 @@ + + directory '/var/opt/gitlab/gitlab-rails/working' + + -workers 16 + +workers 4 + + require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events" + require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/puma_worker_killer_initializer" + @@ -51,7 +51,7 @@ + Gitlab::Cluster::LifecycleEvents.do_before_master_restart + end + + -options = { workers: 16 } + +options = { workers: 4 } + + before_fork do + enable_puma_worker_killer = !Gitlab::Utils.to_boolean(ENV['DISABLE_PUMA_WORKER_KILLER']) +[2025-04-01T03:21:55+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] not queuing delayed action restart on runit_service[puma] (delayed), as it's already been queued + + * 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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (skipped due to only_if) + * 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 (up to date) + (up to date) + * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create[2025-04-01T03:21:58+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-workhorse/config.toml.chef-20250401032158.009797 +[2025-04-01T03:21:58+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] updated file contents /var/opt/gitlab/gitlab-workhorse/config.toml + + - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from 393a82 to a046e5 + - suppressed sensitive resource +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[2025-04-01T03:21:58+00: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-20250401032158.246890 +[2025-04-01T03:21:58+00: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 1297ee to 48ff30 + --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2023-02-01 07:10:14.000000000 +0000 + +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20250401-1144-yhkf1h.conf 2025-04-01 03:21:58.242546883 +0000 + @@ -32,10 +32,10 @@ + + + server { ## HTTPS server + - listen *:8023; + + listen *:28084; + + + - server_name metis.lti.cs.cmu.edu; + + server_name localhost; + server_tokens off; ## Don't show the nginx version number, a security best practice + + ## Increase this if you want to upload large attachments + @@ -60,7 +60,7 @@ + error_log /var/log/gitlab/nginx/gitlab_error.log error; + + if ($http_host = "") { + - set $http_host_with_default "metis.lti.cs.cmu.edu:8023"; + + set $http_host_with_default "localhost:28084"; + } + + if ($http_host != "") { + * 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[2025-04-01T03:21:58+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/nginx/conf/nginx.conf.chef-20250401032158.517523 +[2025-04-01T03:21:58+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] updated file contents /var/opt/gitlab/nginx/conf/nginx.conf + + - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from 3f8335 to d60ed1 + --- /var/opt/gitlab/nginx/conf/nginx.conf 2023-01-18 14:26:09.000000000 +0000 + +++ /var/opt/gitlab/nginx/conf/.chef-nginx20250401-1144-u94150.conf 2025-04-01 03:21:58.515547690 +0000 + @@ -3,7 +3,7 @@ + # and run `sudo gitlab-ctl reconfigure`. + + user gitlab-www gitlab-www; + -worker_processes 16; + +worker_processes 56; + error_log stderr; + pid nginx.pid; + +[2025-04-01T03:21:58+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] not queuing delayed action restart on runit_service[nginx] (delayed), as it's already been queued +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[2025-04-01T03:21:59+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/opt/gitlab/etc/gitlab-healthcheck-rc.chef-20250401032159.505113 +[2025-04-01T03:21:59+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] updated file contents /opt/gitlab/etc/gitlab-healthcheck-rc + + - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from 66bd38 to 8874cb + --- /opt/gitlab/etc/gitlab-healthcheck-rc 2023-04-27 11:37:02.000000000 +0000 + +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20250401-1144-t8lr14 2025-04-01 03:21:59.503550612 +0000 + @@ -1 +1 @@ + -url='http://localhost:8023/help' + +url='http://localhost:28084/help' +Recipe: monitoring::node-exporter_disable + * service[node-exporter] action nothing (skipped due to action :nothing) + * runit_service[node-exporter] action disable + * ruby_block[disable node-exporter] action run (skipped due to only_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/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::user + * account[Prometheus user and group] action create (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_disable + * service[grafana] action nothing (skipped due to action :nothing) + * runit_service[grafana] action disable + * ruby_block[disable grafana] action run (skipped due to only_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) +[2025-04-01T03:22:04+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending restart action to runit_service[puma] (delayed) +Recipe: gitlab::puma + * runit_service[puma] action restart (up to date) +[2025-04-01T03:22:04+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending restart action to sidekiq_service[sidekiq] (delayed) +Recipe: gitlab::sidekiq + * sidekiq_service[sidekiq] action restart + * service[sidekiq] action nothing (skipped due to action :nothing) + * runit_service[sidekiq] action restart (up to date) + (up to date) +[2025-04-01T03:22:32+00: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[2025-04-01T03:24:33+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully + + - execute /opt/gitlab/bin/gitlab-rake cache:clear +[2025-04-01T03:24:33+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] sending restart action to runit_service[gitlab-kas] (delayed) +Recipe: gitlab-kas::enable + * runit_service[gitlab-kas] action restart (up to date) +[2025-04-01T03:24:43+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] sending restart action to runit_service[gitlab-workhorse] (delayed) +Recipe: gitlab::gitlab-workhorse + * runit_service[gitlab-workhorse] action restart (up to date) +[2025-04-01T03:24:43+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] sending restart action to runit_service[nginx] (delayed) +Recipe: nginx::enable + * runit_service[nginx] action restart (up to date) +[2025-04-01T03:24:44+00:00] INFO: Cinc Client Run complete in 239.676016003 seconds + +Running handlers: +[2025-04-01T03:24:44+00:00] INFO: Running report handlers +Running handlers complete +[2025-04-01T03:24:44+00:00] INFO: Report handlers complete +Infra Phase complete, 17/744 resources updated in 04 minutes 09 seconds +[2025-04-01T03:24:44+00:00] WARN: This release of Cinc Client became end of life (EOL) on May 1st 2023. Please update to a supported release to receive new features, bug fixes, and security updates. +gitlab Reconfigured! +Patching openstreetmap container +warning: parser/current is loading parser/ruby30, which recognizes 3.0.6-compliant syntax, but you are running 3.0.2. +Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. +pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options) +advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options) +optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options) +pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options) +jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options) +jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options) +jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options) +gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options) +svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options) +2025-04-01 11:25:09,759 [Thread-10 (r] [INFO ] Reset successful! +2025-04-01 11:28:04,563 [Thread-16 (p] [INFO ] /status request received +2025-04-01 11:28:04,563 [Thread-16 (p] [INFO ] Returning ready status +127.0.0.1 - - [01/Apr/2025 11:28:04] "GET /status HTTP/1.1" 200 - +2025-04-01 12:10:26,133 [Thread-18 (p] [INFO ] /reset request received +2025-04-01 12:10:26,153 [Thread-18 (p] [INFO ] Running reset script... +127.0.0.1 - - [01/Apr/2025 12:10:26] "GET /reset HTTP/1.1" 200 - +shopping_admin +forum +gitlab +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +shopping_admin +forum +gitlab +shopping +wikipedia +openstreetmap-website-db-1 +openstreetmap-website-web-1 +58ea277aaccdb0b833bdcbc7939c0234f94f905e0b43903a8d9cd960ad4f2331 +f10556c7a8a58b52dc83c6141085c7ce5056423d8642d3f54eb039fd4e0c17e1 +39b618b0b1c60002c472c708233bd3a29491fcac1a31308c104c197739c81a72 +ff68f42b7a36d1301d0863d5229c69ff9d2131cfca9884cf08a3b6825e6a00c8 +52b66ecfdd319b8a6af6168a075983074eb61221673785259e57f9ab7810943d +time="2025-04-01T12:10:43+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Creating + Container openstreetmap-website-db-1 Created + Container openstreetmap-website-web-1 Creating + Container openstreetmap-website-web-1 Created +gitlab +shopping +shopping_admin +forum +wikipedia +time="2025-04-01T12:10:54+08:00" level=warning msg="/home/yuyr/webarena-setup-main/webarena/openstreetmap-website/docker-compose.yml: `version` is obsolete" + Container openstreetmap-website-db-1 Starting + Container openstreetmap-website-db-1 Started + Container openstreetmap-website-web-1 Starting + Container openstreetmap-website-web-1 Started +Waiting 600 seconds for all services to start...2025-04-01 12:11:04,924 [Thread-20 (p] [INFO ] /status request received +2025-04-01 12:11:04,924 [Thread-20 (p] [INFO ] Returning ongoing status +127.0.0.1 - - [01/Apr/2025 12:11:04] "GET /status HTTP/1.1" 200 - + done +php-fpm: stopped +php-fpm: started +Patching shopping container +Removing the requirement to reset password +Value was saved. +Value was saved. +Flushed cache types: +config +layout +block_html +collections +reflection +db_ddl +compiled_config +eav +customer_notification +config_integration +config_integration_api +full_page +config_webservice +translate +Patching shopping admin container +Flushed cache types: +config +layout +block_html +collections +reflection +db_ddl +compiled_config +eav +customer_notification +config_integration +config_integration_api +full_page +config_webservice +translate +Patching gitlab container +ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available +[2025-04-01T04:21:48+00:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook) +Cinc Client, version 17.10.0 +Patents: https://www.chef.io/patents +Infra Phase starting +[2025-04-01T04:21:48+00:00] INFO: *** Cinc Client 17.10.0 *** +[2025-04-01T04:21:48+00:00] INFO: Platform: x86_64-linux +[2025-04-01T04:21:48+00:00] INFO: Cinc-client pid: 1411 +[2025-04-01T04:21:51+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options +[2025-04-01T04:21:51+00:00] INFO: Run List is [recipe[gitlab]] +[2025-04-01T04:21:51+00:00] INFO: Run List expands to [gitlab] +[2025-04-01T04:21:51+00:00] INFO: Starting Cinc Client Run for ff68f42b7a36 +[2025-04-01T04:21:51+00:00] INFO: Running start handlers +[2025-04-01T04:21:51+00:00] INFO: Start handlers complete. +Resolving cookbooks for run list: ["gitlab"] +[2025-04-01T04:21:56+00: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.7, acme@4.1.5, crond@0.1.0] +Synchronizing 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.7) + - 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) +[2025-04-01T04:22:06+00:00] INFO: Skipped selecting an init system because it was explicitly disabled +/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 267 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 (up to date) +Recipe: gitlab::users + * directory[/var/opt/gitlab] action create (up to date) + * account[GitLab user and group] action create (up to date) + * template[/var/opt/gitlab/.gitconfig] action create[2025-04-01T04:22:08+00:00] INFO: template[/var/opt/gitlab/.gitconfig] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/.gitconfig.chef-20250401042208.061915 +[2025-04-01T04:22:08+00:00] INFO: template[/var/opt/gitlab/.gitconfig] updated file contents /var/opt/gitlab/.gitconfig + + - update content in file /var/opt/gitlab/.gitconfig from df547f to a0993e + --- /var/opt/gitlab/.gitconfig 2023-01-18 16:08:36.000000000 +0000 + +++ /var/opt/gitlab/.chef-.gitconfig20250401-1411-fb5n07.gitconfig 2025-04-01 04:22:07.912124730 +0000 + @@ -4,7 +4,7 @@ + + [user] + name = GitLab + - email = gitlab@metis.lti.cs.cmu.edu + + email = gitlab@localhost + [core] + autocrlf = input + alternateRefsCommand="exit 0 #" + * 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 delete + * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date) + * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (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[2025-04-01T04:22:09+00: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-20250401042209.589541 +[2025-04-01T04:22:09+00: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 c553bc to f5ff4f + - 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[2025-04-01T04:22:09+00: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[2025-04-01T04:22:09+00: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/BUNDLE_GEMFILE] action create (up to date) + * file[/opt/gitlab/etc/gitlab-rails/env/PUMA_WORKER_MAX_MEMORY] 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 (up to date) + * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date) + * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date) + * 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 + * 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 (skipped due to only_if) +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::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 (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 (skipped due to only_if) + (up to date) + * 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 (up to date) + * 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 (up to date) + (up to date) + * 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 (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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (skipped due to only_if) + * 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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (skipped due to only_if) + * 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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (skipped due to only_if) + * 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[2025-04-01T04:22:22+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/postgresql/data/runtime.conf.chef-20250401042222.906271 +[2025-04-01T04:22:22+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] updated file contents /var/opt/gitlab/postgresql/data/runtime.conf + + - update content in file /var/opt/gitlab/postgresql/data/runtime.conf from 8ea17c to a0d807 + --- /var/opt/gitlab/postgresql/data/runtime.conf 2023-01-18 14:24:31.000000000 +0000 + +++ /var/opt/gitlab/postgresql/data/.chef-runtime20250401-1411-ze01s8.conf 2025-04-01 04:22:22.903168322 +0000 + @@ -43,7 +43,7 @@ + #seq_page_cost = 1.0 # measured on an arbitrary scale + random_page_cost = 2.0 # same scale as above + + -effective_cache_size = 32066MB # Default 128MB + +effective_cache_size = 64389MB # Default 128MB + + log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements + # and their durations, > 0 logs only + * 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) + +[2025-04-01T04:22:23+00:00] INFO: postgresql_config[gitlab] sending run action to execute[reload postgresql] (immediate) +Recipe: postgresql::standalone + * execute[reload postgresql] action run[2025-04-01T04:22:23+00:00] INFO: execute[reload postgresql] ran successfully + + - execute /opt/gitlab/bin/gitlab-ctl hup postgresql +[2025-04-01T04:22:23+00:00] INFO: postgresql_config[gitlab] sending run action to execute[start postgresql] (immediate) + * execute[start postgresql] action run (skipped due to not_if) + * 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[2025-04-01T04:22:24+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] owner changed to 996 +[2025-04-01T04:22:24+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 996 + + - change owner from 'root' to 'gitlab-psql' + - change group from 'root' to 'gitlab-psql'[2025-04-01T04:22:24+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] updated atime and mtime to 2025-04-01 04:22:24 +0000 + + - update utime on file /opt/gitlab/service/postgresql/supervise/status + * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2025-04-01T04:22:24+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 996 +[2025-04-01T04:22:24+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 996 + + - change owner from 'root' to 'gitlab-psql' + - change group from 'root' to 'gitlab-psql'[2025-04-01T04:22:24+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2025-04-01 04:22:24 +0000 + + - 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 (up to date) + (up to date) + * 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[2025-04-01T04:22:41+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml.chef-20250401042241.418945 +[2025-04-01T04:22:41+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] updated file contents /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml + + - update content in file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml from e88441 to 2bdd84 + --- /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml 2023-02-01 07:10:13.000000000 +0000 + +++ /var/opt/gitlab/gitlab-kas/.chef-gitlab-kas-config20250401-1411-1dnc5h0.yml 2025-04-01 04:22:41.416222159 +0000 + @@ -16,7 +16,7 @@ + info_cache_ttl: 300s + info_cache_error_ttl: 60s + gitlab: + - address: http://metis.lti.cs.cmu.edu:8023 + + address: http://localhost:28084 + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file + observability: + listen: + * 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_hide_env[migrate gitlab-rails database] action run (skipped due to not_if) + (up to date) +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[2025-04-01T04:22:42+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/etc/puma.rb.chef-20250401042242.195733 +[2025-04-01T04:22:42+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] updated file contents /var/opt/gitlab/gitlab-rails/etc/puma.rb + + - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from 1edd89 to 1033b4 + --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2023-01-18 14:25:53.000000000 +0000 + +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20250401-1411-1o49utf.rb 2025-04-01 04:22:42.192224416 +0000 + @@ -41,7 +41,7 @@ + + directory '/var/opt/gitlab/gitlab-rails/working' + + -workers 16 + +workers 4 + + require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events" + require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/puma_worker_killer_initializer" + @@ -51,7 +51,7 @@ + Gitlab::Cluster::LifecycleEvents.do_before_master_restart + end + + -options = { workers: 16 } + +options = { workers: 4 } + + before_fork do + enable_puma_worker_killer = !Gitlab::Utils.to_boolean(ENV['DISABLE_PUMA_WORKER_KILLER']) +[2025-04-01T04:22:42+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] not queuing delayed action restart on runit_service[puma] (delayed), as it's already been queued + + * 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 (skipped due to only_if) + * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (skipped due to only_if) + * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (skipped due to only_if) + * 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 (up to date) + (up to date) + * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create[2025-04-01T04:22:44+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-workhorse/config.toml.chef-20250401042244.785080 +[2025-04-01T04:22:44+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] updated file contents /var/opt/gitlab/gitlab-workhorse/config.toml + + - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from 393a82 to a046e5 + - suppressed sensitive resource +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[2025-04-01T04:22:44+00: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-20250401042244.827914 +[2025-04-01T04:22:44+00: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 1297ee to 60b2d6 + --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2023-02-01 07:10:14.000000000 +0000 + +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20250401-1411-1o054y9.conf 2025-04-01 04:22:44.824232071 +0000 + @@ -32,10 +32,13 @@ + + + server { ## HTTPS server + - listen *:8023; + + listen [::]:28084; + + + - server_name metis.lti.cs.cmu.edu; + + listen 0.0.0.0:28084; + + + + + + server_name localhost; + server_tokens off; ## Don't show the nginx version number, a security best practice + + ## Increase this if you want to upload large attachments + @@ -60,7 +63,7 @@ + error_log /var/log/gitlab/nginx/gitlab_error.log error; + + if ($http_host = "") { + - set $http_host_with_default "metis.lti.cs.cmu.edu:8023"; + + set $http_host_with_default "localhost:28084"; + } + + if ($http_host != "") { + * 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[2025-04-01T04:22:45+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/nginx/conf/nginx.conf.chef-20250401042245.007250 +[2025-04-01T04:22:45+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] updated file contents /var/opt/gitlab/nginx/conf/nginx.conf + + - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from 3f8335 to d60ed1 + --- /var/opt/gitlab/nginx/conf/nginx.conf 2023-01-18 14:26:09.000000000 +0000 + +++ /var/opt/gitlab/nginx/conf/.chef-nginx20250401-1411-1som9lt.conf 2025-04-01 04:22:45.005232597 +0000 + @@ -3,7 +3,7 @@ + # and run `sudo gitlab-ctl reconfigure`. + + user gitlab-www gitlab-www; + -worker_processes 16; + +worker_processes 56; + error_log stderr; + pid nginx.pid; + +[2025-04-01T04:22:45+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] not queuing delayed action restart on runit_service[nginx] (delayed), as it's already been queued +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[2025-04-01T04:22:45+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/opt/gitlab/etc/gitlab-healthcheck-rc.chef-20250401042245.741819 +[2025-04-01T04:22:45+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] updated file contents /opt/gitlab/etc/gitlab-healthcheck-rc + + - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from 66bd38 to 8874cb + --- /opt/gitlab/etc/gitlab-healthcheck-rc 2023-04-27 11:37:02.000000000 +0000 + +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20250401-1411-14uukn7 2025-04-01 04:22:45.740234734 +0000 + @@ -1 +1 @@ + -url='http://localhost:8023/help' + +url='http://localhost:28084/help' +Recipe: monitoring::node-exporter_disable + * service[node-exporter] action nothing (skipped due to action :nothing) + * runit_service[node-exporter] action disable + * ruby_block[disable node-exporter] action run (skipped due to only_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/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::user + * account[Prometheus user and group] action create (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_disable + * service[grafana] action nothing (skipped due to action :nothing) + * runit_service[grafana] action disable + * ruby_block[disable grafana] action run (skipped due to only_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) +[2025-04-01T04:22:49+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending restart action to runit_service[puma] (delayed) +Recipe: gitlab::puma + * runit_service[puma] action restart (up to date) +[2025-04-01T04:22:49+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending restart action to sidekiq_service[sidekiq] (delayed) +Recipe: gitlab::sidekiq + * sidekiq_service[sidekiq] action restart + * service[sidekiq] action nothing (skipped due to action :nothing) + * runit_service[sidekiq] action restart (up to date) + (up to date) +[2025-04-01T04:23:17+00: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[2025-04-01T04:24:43+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully + + - execute /opt/gitlab/bin/gitlab-rake cache:clear +[2025-04-01T04:24:43+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] sending restart action to runit_service[gitlab-kas] (delayed) +Recipe: gitlab-kas::enable + * runit_service[gitlab-kas] action restart (up to date) +[2025-04-01T04:24:54+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] sending restart action to runit_service[gitlab-workhorse] (delayed) +Recipe: gitlab::gitlab-workhorse + * runit_service[gitlab-workhorse] action restart (up to date) +[2025-04-01T04:24:54+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] sending restart action to runit_service[nginx] (delayed) +Recipe: nginx::enable + * runit_service[nginx] action restart (up to date) +[2025-04-01T04:24:55+00:00] INFO: Cinc Client Run complete in 183.937797988 seconds + +Running handlers: +[2025-04-01T04:24:55+00:00] INFO: Running report handlers +Running handlers complete +[2025-04-01T04:24:55+00:00] INFO: Report handlers complete +Infra Phase complete, 17/744 resources updated in 03 minutes 06 seconds +[2025-04-01T04:24:55+00:00] WARN: This release of Cinc Client became end of life (EOL) on May 1st 2023. Please update to a supported release to receive new features, bug fixes, and security updates. +gitlab Reconfigured! +Patching openstreetmap container +warning: parser/current is loading parser/ruby30, which recognizes 3.0.6-compliant syntax, but you are running 3.0.2. +Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. +pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options) +advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options) +optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options) +pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options) +jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options) +jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options) +jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options) +gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options) +svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options) +2025-04-01 12:26:05,563 [Thread-19 (r] [INFO ] Reset successful! diff --git a/reset_server/server.py b/reset_server/server.py new file mode 100644 index 0000000..7163d50 --- /dev/null +++ b/reset_server/server.py @@ -0,0 +1,126 @@ +import argparse +import http.server +import logging +import os +import pathlib +import socketserver +import subprocess +import sys +import threading + +# setup logging +logger = logging.getLogger(__name__) +handler = logging.StreamHandler(sys.stdout) +handler.setFormatter(logging.Formatter("%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s")) +logger.setLevel(logging.INFO) +logger.addHandler(handler) + +# setup files config +lock_file_path = "reset.lock" +fail_file_path = "fail_message" + +def write_fail_message(message: str): + with open(fail_file_path, 'w') as f: + f.write(message) + +def read_fail_message(): + with open(fail_file_path, 'r') as f: + fail_message = f.read() + return fail_message + +def reset_ongoing(): + return os.path.exists(lock_file_path) + +def initiate_reset(): + + # Attempt to acquire lock (create lock file atomically) + try: + fd = os.open(lock_file_path, os.O_CREAT | os.O_EXCL | os.O_WRONLY) + with os.fdopen(fd, 'w') as file: + file.write('') # empty file + except FileExistsError: + return False + + # Execute reset (and then release lock) in a separate thread + def reset_fun(): + try: + # Execute the reset script + subprocess.run(['bash', 'reset.sh'], check=True) + logger.info("Reset successful!") + write_fail_message("") + except subprocess.CalledProcessError as e: + logger.info("Reset failed :(") + write_fail_message(str(e)) + + # Release lock (remove lock file) + pathlib.Path(lock_file_path).unlink(missing_ok=True) + + thread = threading.Thread(target=reset_fun) + thread.start() + + return True + + +class CustomHandler(http.server.SimpleHTTPRequestHandler): + def do_GET(self): + parsed_path = self.path + logger.info(f"{parsed_path} request received") + match parsed_path: + case '/reset': + if initiate_reset(): + logger.info("Running reset script...") + self.send_response(200) # OK + self.send_header('Content-type', 'text/html') + self.end_headers() + self.wfile.write(f'Reset initiated, check status here'.encode()) + else: + logger.warning("Reset already running, ignoring request.") + self.send_response(418) # I'm a teapot + self.send_header('Content-type', 'text/html') + self.end_headers() + self.wfile.write(f'Reset already running, check status here'.encode()) + case "/status": + fail_message = read_fail_message() + if reset_ongoing(): + logger.info("Returning ongoing status") + self.send_response(200) # OK + self.send_header('Content-type', 'text/html') + self.end_headers() + self.wfile.write(f'Reset ongoing'.encode()) + elif fail_message: + logger.error("Returning error status") + self.send_response(500) # Internal Server Error + self.send_header('Content-type', 'text/html') + self.end_headers() + self.wfile.write(f'Error executing reset script:

{fail_message}

'.encode()) + else: + logger.info("Returning ready status") + self.send_response(200) # OK + self.send_header('Content-type', 'text/html') + self.end_headers() + self.wfile.write(f'Ready for duty!'.encode()) + case _: + logger.info("Wrong request") + self.send_response(404) # Not Found + self.send_header('Content-type', 'text/html') + self.end_headers() + self.wfile.write(f'Endpoint not found'.encode()) + + +# Parse command-line arguments +parser = argparse.ArgumentParser(description='Start a simple HTTP server to execute a reset script.') +parser.add_argument('--port', type=int, help='Port number the server will listen to') +args = parser.parse_args() + +# Clear fail and lock files +write_fail_message("") +if reset_ongoing(): + os.remove(lock_file_path) + +# Run the server +with http.server.ThreadingHTTPServer(('', args.port), CustomHandler) as httpd: + logger.info(f'Serving on port {args.port}...') + try: + httpd.serve_forever() + except KeyboardInterrupt: + httpd.server_close() diff --git a/serve_homepage.log b/serve_homepage.log new file mode 100644 index 0000000..6eaa9f8 --- /dev/null +++ b/serve_homepage.log @@ -0,0 +1,16 @@ +Requirement already satisfied: flask in ./venv/lib/python3.11/site-packages (3.1.0) +Requirement already satisfied: Werkzeug>=3.1 in ./venv/lib/python3.11/site-packages (from flask) (3.1.3) +Requirement already satisfied: Jinja2>=3.1.2 in ./venv/lib/python3.11/site-packages (from flask) (3.1.6) +Requirement already satisfied: itsdangerous>=2.2 in ./venv/lib/python3.11/site-packages (from flask) (2.2.0) +Requirement already satisfied: click>=8.1.3 in ./venv/lib/python3.11/site-packages (from flask) (8.1.8) +Requirement already satisfied: blinker>=1.9 in ./venv/lib/python3.11/site-packages (from flask) (1.9.0) +Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.11/site-packages (from Jinja2>=3.1.2->flask) (3.0.2) + +[notice] A new release of pip is available: 24.0 -> 25.0.1 +[notice] To update, run: pip install --upgrade pip + * Debug mode: off +WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on all addresses (0.0.0.0) + * Running on http://127.0.0.1:20080 + * Running on http://192.168.16.114:20080 +Press CTRL+C to quit diff --git a/service.md b/service.md new file mode 100644 index 0000000..472fc74 --- /dev/null +++ b/service.md @@ -0,0 +1,22 @@ +# WebArena实例服务 + +## 1. 背景 + +操作智能体项目在数据采集、模型训练、模型推理评估等环节,需要频繁的与WebArena实例服务进行交互。交互过程会对WebArena实例进行状态的修改,因此需要对WebArena实例服务进行实例化。 +通过统一个管理服务实现WebArena实例的自动创建、销毁、状态查询等操作。 + +## 2. 架构 + +服务包含以下几个部分: +- 前端控制台:提供网页界面,可以实现服务器管理、WebArena实例的创建、销毁、状态查询等操作。 +- 后端服务:提供WebArena实例的创建、销毁、状态查询等操作。 + +## 3. 使用流程 + +### 3.1 创建WebArena实例 + +### 3.2 销毁WebArena实例 + +### 3.3 查询WebArena实例状态 + +### 3.4 查询WebArena实例日志 diff --git a/webarena-homepage/__pycache__/app.cpython-311.pyc b/webarena-homepage/__pycache__/app.cpython-311.pyc new file mode 100644 index 0000000..22a9bb6 Binary files /dev/null and b/webarena-homepage/__pycache__/app.cpython-311.pyc differ diff --git a/webarena-homepage/app.py b/webarena-homepage/app.py new file mode 100644 index 0000000..0b092c7 --- /dev/null +++ b/webarena-homepage/app.py @@ -0,0 +1,27 @@ +from flask import Flask, render_template + +app = Flask(__name__) + + +@app.route("/") +def index() -> str: + return render_template("index.html") + + +@app.route("/scratchpad.html") +def scratchpad() -> str: + return render_template("scratchpad.html") + + +@app.route("/calculator.html") +def calculator() -> str: + return render_template("calculator.html") + + +@app.route("/password.html") +def password() -> str: + return render_template("password.html") + + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=4399) diff --git a/webarena-homepage/static/figures/calculator.png b/webarena-homepage/static/figures/calculator.png new file mode 100644 index 0000000..53b7013 Binary files /dev/null and b/webarena-homepage/static/figures/calculator.png differ diff --git a/webarena-homepage/static/figures/cms.png b/webarena-homepage/static/figures/cms.png new file mode 100644 index 0000000..7ea5b53 Binary files /dev/null and b/webarena-homepage/static/figures/cms.png differ diff --git a/webarena-homepage/static/figures/gitlab.png b/webarena-homepage/static/figures/gitlab.png new file mode 100644 index 0000000..a9c4af3 Binary files /dev/null and b/webarena-homepage/static/figures/gitlab.png differ diff --git a/webarena-homepage/static/figures/manual1.png b/webarena-homepage/static/figures/manual1.png new file mode 100644 index 0000000..0416212 Binary files /dev/null and b/webarena-homepage/static/figures/manual1.png differ diff --git a/webarena-homepage/static/figures/manual2.png b/webarena-homepage/static/figures/manual2.png new file mode 100644 index 0000000..be6c779 Binary files /dev/null and b/webarena-homepage/static/figures/manual2.png differ diff --git a/webarena-homepage/static/figures/map.png b/webarena-homepage/static/figures/map.png new file mode 100644 index 0000000..6718f51 Binary files /dev/null and b/webarena-homepage/static/figures/map.png differ diff --git a/webarena-homepage/static/figures/onestopshop.png b/webarena-homepage/static/figures/onestopshop.png new file mode 100644 index 0000000..2669443 Binary files /dev/null and b/webarena-homepage/static/figures/onestopshop.png differ diff --git a/webarena-homepage/static/figures/password.png b/webarena-homepage/static/figures/password.png new file mode 100644 index 0000000..8916513 Binary files /dev/null and b/webarena-homepage/static/figures/password.png differ diff --git a/webarena-homepage/static/figures/reddit.png b/webarena-homepage/static/figures/reddit.png new file mode 100644 index 0000000..796b006 Binary files /dev/null and b/webarena-homepage/static/figures/reddit.png differ diff --git a/webarena-homepage/static/figures/scratchpad.png b/webarena-homepage/static/figures/scratchpad.png new file mode 100644 index 0000000..4afea7f Binary files /dev/null and b/webarena-homepage/static/figures/scratchpad.png differ diff --git a/webarena-homepage/static/figures/wikipedia.png b/webarena-homepage/static/figures/wikipedia.png new file mode 100644 index 0000000..aa46959 Binary files /dev/null and b/webarena-homepage/static/figures/wikipedia.png differ diff --git a/webarena-homepage/templates/calculator.html b/webarena-homepage/templates/calculator.html new file mode 100644 index 0000000..6445298 --- /dev/null +++ b/webarena-homepage/templates/calculator.html @@ -0,0 +1,109 @@ + + + + Calculator + + + +
+

Calculator

+

Enter the expression and get the results

+ + + +
Result:
+
+ + + + diff --git a/webarena-homepage/templates/index.backup b/webarena-homepage/templates/index.backup new file mode 100644 index 0000000..91ca7f7 --- /dev/null +++ b/webarena-homepage/templates/index.backup @@ -0,0 +1,157 @@ + + + + Homepage + + + + +
+ + +
+ Logo for OneStopShop + +

OneStopShop

+
+

An online shopping site

+
+ +
+ Logo for CMS + +

Merchant Admin Portal

+
+

An admin portal to manage E-commerce business (u: admin, p: admin1234)

+
+ +
+ Logo for Reddit + +

Reddit

+
+

A social news aggregation and discussion website

+
+ +
+ Logo for Gitlab + +

Gitlab

+
+

a DevOps software

+
+ +
+ Logo for Map + +

OpenStreetMap

+
+

North east US map

+
+ +
+ Logo for Calculator + +

Calculator

+
+

A calculator

+
+ +
+ Logo for Scratchpad + +

Scratchpad

+
+

A scratchpad for taking notes

+
+ +
+ Logo for Wikipedia + +

Wikipedia

+
+

An online encyclopedia

+
+ +
+ Logo for Gitlab Manual + +

Gitlab Documentation

+
+

Documentation for GitLab

+
+ +
+ Logo for Admin Manual + +

Admin Portal Manual

+
+

Manual on using the admin portal

+
+ + +
+ + diff --git a/webarena-homepage/templates/index.html b/webarena-homepage/templates/index.html new file mode 100644 index 0000000..7ffdcce --- /dev/null +++ b/webarena-homepage/templates/index.html @@ -0,0 +1,157 @@ + + + + Homepage + + + + +
+ + +
+ Logo for OneStopShop + +

OneStopShop

+
+

An online shopping site

+
+ +
+ Logo for CMS + +

Merchant Admin Portal

+
+

An admin portal to manage E-commerce business (u: admin, p: admin1234)

+
+ +
+ Logo for Reddit + +

Reddit

+
+

A social news aggregation and discussion website

+
+ +
+ Logo for Gitlab + +

Gitlab

+
+

a DevOps software

+
+ +
+ Logo for Map + +

OpenStreetMap

+
+

North east US map

+
+ +
+ Logo for Calculator + +

Calculator

+
+

A calculator

+
+ +
+ Logo for Scratchpad + +

Scratchpad

+
+

A scratchpad for taking notes

+
+ +
+ Logo for Wikipedia + +

Wikipedia

+
+

An online encyclopedia

+
+ +
+ Logo for Gitlab Manual + +

Gitlab Documentation

+
+

Documentation for GitLab

+
+ +
+ Logo for Admin Manual + +

Admin Portal Manual

+
+

Manual on using the admin portal

+
+ + +
+ + diff --git a/webarena-homepage/templates/scratchpad.html b/webarena-homepage/templates/scratchpad.html new file mode 100644 index 0000000..bd939d5 --- /dev/null +++ b/webarena-homepage/templates/scratchpad.html @@ -0,0 +1,122 @@ + + + + + Note Taking App + + + +
+

My Notes

+
+ +
+
+
+ + +
+
+ +

History

+ +
+ +
+
+ + + + diff --git a/wiki_patch/start.sh b/wiki_patch/start.sh new file mode 100755 index 0000000..c0503f5 --- /dev/null +++ b/wiki_patch/start.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# path: /usr/local/bin/start.sh + +# Download if necessary a file +if [ ! -z "$DOWNLOAD" ] +then + ZIM=`basename $DOWNLOAD` + wget $DOWNLOAD -O "$ZIM" + + # Set arguments + if [ "$#" -eq "0" ] + then + set -- "$@" $ZIM + fi +fi + +CMD="/usr/local/bin/kiwix-serve -v --port=$2 $1" +echo $CMD +$CMD + +# If error, print the content of /data +if [ $? -ne 0 ] +then + echo "Here is the content of /data:" + find /data -type f +fi \ No newline at end of file