Hi,
Thanks for this but ...
Lukas <reportbug@???> writes:
> Package: gitlab-ce
> Version: 18.9.1-ce.0
> Severity: critical
... gitlab-ce is neither a Devuan package nor a Debian package.
I think you should report this at GitLab.com, assuming that's where the
package comes from.
That said, there have been a few reports about upgrading from versions
before 18.8.5 to 18.9.1 stumbling on database migrations.
See
https://forum.gitlab.com/t/problems-upgrading-to-18-9-1/132967.
I ran into this as well myself using GitLab.com's Docker container
image. I was able to revert back to my previous version, 18.8.4,
without issue. I worked around the problem myself before 18.8.5 was
released and did the upgrade from 18.8.4 after that.
Try downgrading to your original version and upgrade to 18.8.5 first
before upgrading to 18.9.1. Make sure that all background migrations on
18.8.5 have finished before upgrading to 18.9.1.
> Dear Maintainer,
>
> * What led up to the situation?
>
> apt-get upgrade
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
>
> running apt-get upgrade
>
> * What was the outcome of this action?
>
> gitlab-ce is not working anymore, need to downgrade back
>
> Error message:
>
> [2026-03-07T13:54:21+01:00] ERROR: Running exception handlers
> There was an error running gitlab-ctl reconfigure:
>
> rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
> ---- Begin output of "bash" ----
> STDOUT: Skipping Topology Service health check due to the cell being disabled
> Running db:migrate rake task
> main: == [advisory_lock_connection] object_id: 67320, pg_backend_pid: 6242
> main: == 20260114160300 ValidateNotNullConstraintOnGpgKeySubkeysUserId: migrating ===
> main: -- execute("SET statement_timeout TO 0")
> main: -> 0.0005s
> main: -- execute("ALTER TABLE gpg_key_subkeys VALIDATE CONSTRAINT check_f6590fe2c1;")
> main: -- execute("RESET statement_timeout")
> main: == [advisory_lock_connection] object_id: 67320, pg_backend_pid: 6242
> rake aborted!
> StandardError: An error has occurred, this and all later migrations canceled:
>
> PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/timeout_helpers.rb:33:in `ensure in disable_statement_timeout'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/timeout_helpers.rb:33:in `disable_statement_timeout'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/constraints_helpers.rb:119:in `validate_check_constraint'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migrations/constraints_helpers.rb:235:in `validate_not_null_constraint'
> /opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20260114160300_validate_not_null_constraint_on_gpg_key_subkeys_user_id.rb:9:in `up'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers/restrict_gitlab_schema.rb:33:in `block in exec_migration'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/query_analyzer.rb:94:in `within'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers/restrict_gitlab_schema.rb:30:in `exec_migration'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers/automatic_lock_writes_on_tables.rb:21:in `exec_migration'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers/require_disable_ddl_transaction_for_multiple_locks.rb:71:in `exec_migration'
> /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:123:in `run_block'
>
>
> * What outcome did you expect instead?
>
> -- System Information:
> Distributor ID: Devuan
> Description: Devuan GNU/Linux 5 (daedalus)
> Release: 5
> Codename: daedalus
> Architecture: x86_64
>
> Kernel: Linux 6.1.0-13-amd64 (SMP w/12 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1), LANGUAGE=en_US:en
> Init: sysvinit (via /sbin/init)
> LSM: AppArmor: enabled
>
> Versions of packages gitlab-ce depends on:
> ii openssh-server 1:9.2p1-2+deb12u7
> ii perl 5.36.0-7+deb12u3
>
> gitlab-ce recommends no packages.
>
> gitlab-ce suggests no packages.
>
> -- no debconf information
> _______________________________________________
> devuan-dev internal mailing list
> devuan-dev@???
> Manage your subscription: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-dev
> Archive: https://lists.dyne.org/lurker/list/devuan-dev.en.html
--
Olaf Meeuwissen