GitLab not starting.
-
Latest version of the GitLab container (but also previous version tested) does not start anymore. Logs see logs at the end. I assume the lines
/home/git/start.sh: line 216: / 1073741824 : syntax error: operand expected (error token is "/ 1073741824 ") Jul 09 13:12:59 /home/git/start.sh: line 217: mem_gb: unbound variablein the container log might be the root cause.
Can anyone help getting GitLab running again?
2026-07-09T11:08:17.080Z box:apptask startApp: starting container 2026-07-09T11:08:17.443Z box:tasks updating task 17001 with: {"percent":90,"message":"Configuring reverse proxy"} 2026-07-09T11:08:17.447Z box:tasks updating task 17001 with: {"percent":100,"message":"Done"} 2026-07-09T11:08:17.457Z box:tasks setCompleted - 17001: {"result":null,"error":null,"percent":100} 2026-07-09T11:08:17.457Z box:tasks updating task 17001 with: {"completed":true,"result":null,"error":null,"percent":100} 2026-07-09T11:08:17.462Z Exiting with code 0 2026-07-09T11:08:17.462Z box:taskworker Task took 210.669 seconds 2026-07-09T11:08:17Z ==> Copying schema file 2026-07-09T11:08:17Z ==> Fixing secrets 2026-07-09T11:08:17Z ==> Initializing gitlab shell 2026-07-09T11:08:17Z ==> Reusing existing host keys 2026-07-09T11:08:17Z ==> Setting up tmp 2026-07-09T11:08:18Z ==> Fixing permissions 2026-07-09T11:08:19Z ==> Creating pg_trgm extension 2026-07-09T11:08:19Z ==> Upgrading existing db 2026-07-09T11:08:19Z NOTICE: extension "pg_trgm" already exists, skipping 2026-07-09T11:08:20.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:08:24Z [0m[33mBundler will use `/tmp/bundler20260709-172-26om0y172' as your home directory temporarily. 2026-07-09T11:08:24Z [33m`/home/git` is not writable. 2026-07-09T11:08:30.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:08:40.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:08:42Z 2026-07-09T11:08:42Z 2026-07-09T11:08:42Z 2026-07-09T11:08:42Z 2026-07-09T11:08:42Z [0m 2026-07-09T11:08:42Z [0m 2026-07-09T11:08:42Z [0m[31m 2026-07-09T11:08:42Z [31m 2026-07-09T11:08:42Z ****************************************************************************** 2026-07-09T11:08:42Z ****************************************************************************** 2026-07-09T11:08:42Z ****************************************************************************** 2026-07-09T11:08:42Z ****************************************************************************** 2026-07-09T11:08:42Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:08:42Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:08:42Z You are using PostgreSQL 16.11 for the ci database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:08:42Z You are using PostgreSQL 16.11 for the main database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:08:42Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:08:42Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:08:42Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:08:42Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:08:42Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:08:42Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:08:42Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:08:42Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:08:42Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:08:42Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:08:42Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:08:42Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:08:50.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:00.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:01Z main: == [advisory_lock_connection] object_id: 56440, pg_backend_pid: 419 2026-07-09T11:09:02Z main: == [advisory_lock_connection] object_id: 56440, pg_backend_pid: 419 2026-07-09T11:09:07Z ==> Installing gitlab shell 2026-07-09T11:09:07Z ==> Synchronizing ssh keys 2026-07-09T11:09:07Z chmod 700 /home/git/.ssh: OK 2026-07-09T11:09:07Z mkdir -p /home/git/.ssh: OK 2026-07-09T11:09:10.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:12Z [0m[33mBundler will use `/tmp/bundler20260709-277-4fesnx277' as your home directory temporarily. 2026-07-09T11:09:12Z [33m`/home/git` is not writable. 2026-07-09T11:09:20.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:30.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:31Z 2026-07-09T11:09:31Z 2026-07-09T11:09:31Z 2026-07-09T11:09:31Z 2026-07-09T11:09:31Z [0m 2026-07-09T11:09:31Z [0m 2026-07-09T11:09:31Z [0m[31m 2026-07-09T11:09:31Z [31m 2026-07-09T11:09:31Z ****************************************************************************** 2026-07-09T11:09:31Z ****************************************************************************** 2026-07-09T11:09:31Z ****************************************************************************** 2026-07-09T11:09:31Z ****************************************************************************** 2026-07-09T11:09:31Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:09:31Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:09:31Z You are using PostgreSQL 16.11 for the ci database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:09:31Z You are using PostgreSQL 16.11 for the main database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:09:31Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:09:31Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:09:31Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:09:31Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:09:31Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:09:31Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:09:31Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:09:31Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:09:31Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:09:31Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:09:31Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:09:31Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:09:40.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:49Z [34mDo you want to continue (yes/no)? [0m 2026-07-09T11:09:49Z /home/git/start.sh: line 216: / 1073741824 : syntax error: operand expected (error token is "/ 1073741824 ") 2026-07-09T11:09:49Z /home/git/start.sh: line 217: mem_gb: unbound variable 2026-07-09T11:09:49Z This task will now rebuild the authorized_keys file. 2026-07-09T11:09:49Z You will lose any data stored in the authorized_keys file. 2026-07-09T11:09:49Z cat: /sys/fs/cgroup/memory.max: No such file or directory 2026-07-09T11:09:51.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:09:51Z ==> Copying schema file 2026-07-09T11:09:51Z ==> Fixing secrets 2026-07-09T11:09:51Z ==> Initializing gitlab shell 2026-07-09T11:09:51Z ==> Reusing existing host keys 2026-07-09T11:09:51Z ==> Setting up tmp 2026-07-09T11:09:52Z ==> Creating pg_trgm extension 2026-07-09T11:09:52Z ==> Fixing permissions 2026-07-09T11:09:52Z ==> Upgrading existing db 2026-07-09T11:09:52Z NOTICE: extension "pg_trgm" already exists, skipping 2026-07-09T11:09:57Z [0m[33mBundler will use `/tmp/bundler20260709-172-139zlf172' as your home directory temporarily. 2026-07-09T11:09:57Z [33m`/home/git` is not writable. 2026-07-09T11:10:00.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:10:10.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:10:16Z 2026-07-09T11:10:16Z 2026-07-09T11:10:16Z [0m 2026-07-09T11:10:16Z [0m[31m 2026-07-09T11:10:16Z ****************************************************************************** 2026-07-09T11:10:16Z ****************************************************************************** 26-07-09T11:10:16Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:10:16Z You are using PostgreSQL 16.11 for the main database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:10:16Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:10:16Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:10:16Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:10:16Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:10:16Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:10:16Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:10:17Z 2026-07-09T11:10:17Z 2026-07-09T11:10:17Z [0m 2026-07-09T11:10:17Z [31m 2026-07-09T11:10:17Z ****************************************************************************** 2026-07-09T11:10:17Z ****************************************************************************** 2026-07-09T11:10:17Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:10:17Z You are using PostgreSQL 16.11 for the ci database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:10:17Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:10:17Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:10:17Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:10:17Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:10:17Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:10:17Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:10:20.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:10:30.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:10:36Z main: == [advisory_lock_connection] object_id: 56440, pg_backend_pid: 448 2026-07-09T11:10:36Z main: == [advisory_lock_connection] object_id: 56440, pg_backend_pid: 448 2026-07-09T11:10:40.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:10:42Z ==> Installing gitlab shell 2026-07-09T11:10:42Z ==> Synchronizing ssh keys 2026-07-09T11:10:42Z chmod 700 /home/git/.ssh: OK 2026-07-09T11:10:42Z mkdir -p /home/git/.ssh: OK 2026-07-09T11:10:47Z [0m[33mBundler will use `/tmp/bundler20260709-278-im9yai278' as your home directory temporarily. 2026-07-09T11:10:47Z [33m`/home/git` is not writable. 2026-07-09T11:10:50.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:00.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:06Z 2026-07-09T11:11:06Z 2026-07-09T11:11:06Z 2026-07-09T11:11:06Z 2026-07-09T11:11:06Z [0m 2026-07-09T11:11:06Z [0m 2026-07-09T11:11:06Z [0m[31m 2026-07-09T11:11:06Z [31m 2026-07-09T11:11:06Z ****************************************************************************** 2026-07-09T11:11:06Z ****************************************************************************** 2026-07-09T11:11:06Z ****************************************************************************** 2026-07-09T11:11:06Z ****************************************************************************** 2026-07-09T11:11:06Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:11:06Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:11:06Z You are using PostgreSQL 16.11 for the ci database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:11:06Z You are using PostgreSQL 16.11 for the main database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:11:06Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:11:06Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:11:06Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:11:06Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:11:06Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:11:06Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:11:06Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:11:06Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:11:06Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:11:06Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:11:06Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:11:06Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:11:10.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:20.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:24Z [34mDo you want to continue (yes/no)? [0m 2026-07-09T11:11:24Z /home/git/start.sh: line 216: / 1073741824 : syntax error: operand expected (error token is "/ 1073741824 ") 2026-07-09T11:11:24Z /home/git/start.sh: line 217: mem_gb: unbound variable 2026-07-09T11:11:24Z This task will now rebuild the authorized_keys file. 2026-07-09T11:11:24Z You will lose any data stored in the authorized_keys file. 2026-07-09T11:11:24Z cat: /sys/fs/cgroup/memory.max: No such file or directory 2026-07-09T11:11:26Z ==> Copying schema file 2026-07-09T11:11:26Z ==> Fixing secrets 2026-07-09T11:11:26Z ==> Initializing gitlab shell 2026-07-09T11:11:26Z ==> Reusing existing host keys 2026-07-09T11:11:26Z ==> Setting up tmp 2026-07-09T11:11:27Z ==> Creating pg_trgm extension 2026-07-09T11:11:27Z ==> Fixing permissions 2026-07-09T11:11:27Z ==> Upgrading existing db 2026-07-09T11:11:27Z NOTICE: extension "pg_trgm" already exists, skipping 2026-07-09T11:11:30.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:32Z [0m[33mBundler will use `/tmp/bundler20260709-171-9wygvk171' as your home directory temporarily. 2026-07-09T11:11:32Z [33m`/home/git` is not writable. 2026-07-09T11:11:40.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:50.000Z => Healthcheck error: Error: connect ECONNREFUSED 172.18.16.166:80 2026-07-09T11:11:50Z 13:M 09 Jul 2026 11:11:50.092 * 10 changes in 300 seconds. Saving... 2026-07-09T11:11:50Z 13:M 09 Jul 2026 11:11:50.096 * Background saving started by pid 40 2026-07-09T11:11:50Z 13:M 09 Jul 2026 11:11:50.198 * Background saving terminated with success 2026-07-09T11:11:50Z 40:C 09 Jul 2026 11:11:50.136 * DB saved on disk 2026-07-09T11:11:50Z 40:C 09 Jul 2026 11:11:50.137 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB 2026-07-09T11:11:51Z 2026-07-09T11:11:51Z 2026-07-09T11:11:51Z 2026-07-09T11:11:51Z 2026-07-09T11:11:51Z [0m 2026-07-09T11:11:51Z [0m 2026-07-09T11:11:51Z [0m[31m 2026-07-09T11:11:51Z [31m 2026-07-09T11:11:51Z ****************************************************************************** 2026-07-09T11:11:51Z ****************************************************************************** 2026-07-09T11:11:51Z ****************************************************************************** 2026-07-09T11:11:51Z ****************************************************************************** 2026-07-09T11:11:51Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:11:51Z Please upgrade your environment to a supported PostgreSQL version. See 2026-07-09T11:11:51Z You are using PostgreSQL 16.11 for the ci database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:11:51Z You are using PostgreSQL 16.11 for the main database, but this version of GitLab requires PostgreSQL >= 17. 2026-07-09T11:11:51Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:11:51Z https://docs.gitlab.com/ee/install/requirements.html#database for details. 2026-07-09T11:11:51Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:11:51Z ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ 2026-07-09T11:11:51Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:11:51Z ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ 2026-07-09T11:11:51Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:11:51Z ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ 2026-07-09T11:11:51Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:11:51Z ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ 2026-07-09T11:11:51Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ 2026-07-09T11:11:51Z ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ -
Fixed by entering recovery mode of the app and setting
mem_gb=$(( $(cat /sys/fs/cgroup/memory.max) / 1073741824 ))to
# mem_gb=$(( $(cat /sys/fs/cgroup/memory.max) / 1073741824 )) mem_gb=10in /home/git/start.sh
and running start.sh manually (still in recovery mode).
Seems like a bug though that should be fixed in the package.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login