What app is this about, and its version: GitLab v18.1.0
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: VPS bought online
Describe your issue
Hello everyone,
As the title mentions it, I cannot upgrade my gitlab instance from v18.1 to v19.1. The intermediate upgrades 18.1.0 to 18.2.8, 18.2.8 to 18.5.7, 18.5.7 to 18.8.10 and 18.8.10 to 18.11.5 are successful. It is the last upgrade from 18.11.5 to 19.1.0 that fails.
When searching the log file, during the migration to v19, I found the following error : BASH_XTRACEFD: 7: invalid value for trace file descriptor
I cannot share the full log because the file is too large (Error : Something wrong happened while trying to paste data on paste.yunohost.org: 400, {“message”:“Document exceeds maximum length.”})
I have tried twice to run the upgrade with the same result. Is there anyone able to help me ?
Is there a way to limit the upgrade to v18.11 ?
Thank you
Share relevant logs or error messages
log of upgrade process :
2026-07-02 07:30:23,806: INFO - Upgrade from 18.1.0 to 18.2.8
2026-07-02 07:30:23,807: DEBUG - + ynh_print_info 'Upgrade from 18.1.0 to 18.2.8'
2026-07-02 07:30:23,808: DEBUG - + echo 'Upgrade from 18.1.0 to 18.2.8'
2026-07-02 07:37:08,922: DEBUG - Upgrade complete! If your GitLab server is misbehaving try running
2026-07-02 07:57:30,352: INFO - Upgrade from 18.2.8 to 18.5.7
2026-07-02 07:57:30,353: DEBUG - + ynh_print_info 'Upgrade from 18.2.8 to 18.5.7'
2026-07-02 07:57:30,354: DEBUG - + echo 'Upgrade from 18.2.8 to 18.5.7'
2026-07-02 08:18:53,045: DEBUG - + proxy_set_header Upgrade $http_upgrade;
2026-07-02 08:19:17,264: DEBUG - Upgrade complete! If your GitLab server is misbehaving try running
2026-07-02 08:39:41,107: INFO - Upgrade from 18.5.7 to 18.8.10
2026-07-02 08:39:41,108: DEBUG - + ynh_print_info 'Upgrade from 18.5.7 to 18.8.10'
2026-07-02 08:39:41,108: DEBUG - + echo 'Upgrade from 18.5.7 to 18.8.10'
2026-07-02 08:47:03,358: DEBUG - Upgrade complete! If your GitLab server is misbehaving try running
2026-07-02 09:07:25,281: INFO - Upgrade from 18.8.10 to 18.11.5
2026-07-02 09:07:25,282: DEBUG - + ynh_print_info 'Upgrade from 18.8.10 to 18.11.5'
2026-07-02 09:07:25,282: DEBUG - + echo 'Upgrade from 18.8.10 to 18.11.5'
2026-07-02 09:17:53,291: DEBUG - ==== Upgrade has completed ====
2026-07-02 09:18:33,812: DEBUG - Upgrade complete! If your GitLab server is misbehaving try running
2026-07-02 09:38:58,143: INFO - Upgrade from 18.11.5 to 19.1.0
2026-07-02 09:38:58,144: DEBUG - + ynh_print_info 'Upgrade from 18.11.5 to 19.1.0'
2026-07-02 09:38:58,144: DEBUG - + echo 'Upgrade from 18.11.5 to 19.1.0'
Here is the log excerpt around the error :
2026-07-02 09:44:52,770: DEBUG - Recipe: gitlab::database_migrations
2026-07-02 09:44:52,771: DEBUG - * ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
2026-07-02 09:44:52,773: DEBUG - * rails_migration[gitlab-rails] action run[2026-07-02T09:44:52+02:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
2026-07-02 09:44:52,775: DEBUG -
2026-07-02 09:44:52,781: DEBUG - * bash_hide_env[migrate gitlab-rails database] action run
2026-07-02 09:44:52,781: DEBUG - [execute] bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2026-07-02 09:45:11,786: DEBUG - Skipping Topology Service health check due to the cell being disabled
2026-07-02 09:45:11,796: DEBUG - Running db:migrate rake task
2026-07-02 09:45:12,029: DEBUG - main: == [advisory_lock_connection] object_id: 56340, pg_backend_pid: 1421782
2026-07-02 09:45:12,092: DEBUG - main: == 20260415164820 ValidateWebHookLogsDailyShardingKeyConstraint: migrating ====
2026-07-02 09:45:12,116: DEBUG - main: -- execute("SET statement_timeout TO 0")
2026-07-02 09:45:12,116: DEBUG - main: -> 0.0003s
2026-07-02 09:45:12,117: DEBUG - main: -- execute("ALTER TABLE web_hook_logs_daily VALIDATE CONSTRAINT check_19dc80d658;")
2026-07-02 09:45:12,119: DEBUG - main: -- execute("RESET statement_timeout")
2026-07-02 09:45:12,121: DEBUG - main: == [advisory_lock_connection] object_id: 56340, pg_backend_pid: 1421782
2026-07-02 09:45:12,121: DEBUG - rake aborted!
2026-07-02 09:45:12,121: DEBUG - StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
2026-07-02 09:45:12,122: DEBUG -
2026-07-02 09:45:12,122: DEBUG - PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
and the admin output log shows :
2026-07-02 09:45:12,424: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:129:in `run_block_with_lock_timeout'
2026-07-02 09:45:12,424: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:97:in `run'
2026-07-02 09:45:12,424: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/lock_retry_mixin.rb:44:in `ddl_transaction'
2026-07-02 09:45:12,424: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/runner_backoff/active_record_mixin.rb:21:in `execute_migration_in_transaction'
2026-07-02 09:45:12,424: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/pg_backend_pid.rb:14:in `with_advisory_lock'
2026-07-02 09:45:12,425: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:226:in `configure_database'
2026-07-02 09:45:12,425: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:182:in `configure_pg_databases'
2026-07-02 09:45:12,425: DEBUG - /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:114:in `block (3 levels) in <main>'
2026-07-02 09:45:12,425: DEBUG - /opt/gitlab/embedded/bin/bundle:25:in `<main>'
2026-07-02 09:45:12,425: DEBUG - Tasks: TOP => db:migrate
2026-07-02 09:45:12,426: DEBUG - (See full trace by running task with --trace)
2026-07-02 09:45:12,426: DEBUG - STDERR: bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2026-07-02 09:45:12,426: DEBUG - ---- End output of "bash" ----
2026-07-02 09:45:12,426: DEBUG - Ran "bash" returned 1
2026-07-02 09:45:12,426: DEBUG - ===
2026-07-02 09:45:12,426: DEBUG - There was an error running gitlab-ctl reconfigure. Please check the output above for more
2026-07-02 09:45:12,427: DEBUG - details.
2026-07-02 09:45:12,427: DEBUG - ===
2026-07-02 09:45:12,427: DEBUG - dpkg: error processing package gitlab-ce (--configure):
2026-07-02 09:45:12,427: DEBUG - installed gitlab-ce package post-installation script subprocess returned error exit status 1
2026-07-02 09:45:12,588: DEBUG - Errors were encountered while processing:
2026-07-02 09:45:12,588: DEBUG - gitlab-ce
2026-07-02 09:45:12,589: DEBUG - + ynh_exit_properly
2026-07-02 09:45:12,589: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2026-07-02 09:45:13,193: ERROR - Failed to upgrade gitlab: An error occurred inside the app upgrade script