From nobody Fri Nov 11 18:22:26 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N86W66qZpz4dY9R for ; Fri, 11 Nov 2022 18:22:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N86W64f2Wz3qQd for ; Fri, 11 Nov 2022 18:22:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668190946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OPH36AMyXu03e+Id8ENKWPPqs4aPI/dp18lVQjRgRCY=; b=UrKYTvCN5k61CMWcyx/KlTG6ifpuGg1//26jYlpLeOjdwI2TYLrvOUvU8F3OHOtyq8fbJI SRs1xVs77xjJ3t8SWDRJklD9ISW1c0ValbYEMLGT42EfNcM6QkObLi9AbRcOhx8Cu75wGn Fb417rtl0HB+vxlu8pKZp1nva2lt9vfclZdYneT7fhxODq4yWoOPSGhq1pSi9YTXeVh1io JBjOkVGJKey4cJMR787c6CiL+Or+tz4hknP6lRqNk0/+EtyuC3VrKSH80gb7SMJwA8CS/I 6XJkrxyx7FwbwqR1of9J/tmwSbfStl/JxzMOtCkKi7ZMN+quJa92yAIJhRn2gQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668190946; a=rsa-sha256; cv=none; b=aOg+mq4wqLlt9jCkTXvWd3r5s8Gf8+uEFxnqC/1zbiZxYCXaqe5x4hDrJCZUFP2yJCLNtb ERrEV3L/BHMxrYrsJgnPA2IKdFNxhNER8fOVFKqdSd0hMjybxv+MQ24/bwtjN3Djr2B5Lo 1Oh4dXGDmeuk84p2DW6h2ovrW2+HaSURbTCZeL+R7mYgizEdqAMsyBDpkF0Mb2vSIrHOvt ITinHYpY9rL4BAv3VH1yRdthoRzRzjJT0tmQYDaUykecofe77kiMH/LXDDUz8qZNsIpELg ioCKa1HZ+noSAaBDXlUTZmKIpr61R3MV6kjItQr2+d8EsmQRQnpKEpERn8eYGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N86W63kltzsZR for ; Fri, 11 Nov 2022 18:22:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2ABIMQRC096269 for ; Fri, 11 Nov 2022 18:22:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2ABIMQ7x096268 for ports-bugs@FreeBSD.org; Fri, 11 Nov 2022 18:22:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267715] www/gitlab-ce upgrade to 15.4.4 fails during database migration Date: Fri, 11 Nov 2022 18:22:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gwright@antiope.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mfechner@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267715 Bug ID: 267715 Summary: www/gitlab-ce upgrade to 15.4.4 fails during database migration Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mfechner@FreeBSD.org Reporter: gwright@antiope.com Flags: maintainer-feedback?(mfechner@FreeBSD.org) Assignee: mfechner@FreeBSD.org I upgraded from www/gitlab-ce 15.3.4 to 15.4.4. The upgrade failed in the database migration phase: root@gitlab:/usr/local/www/gitlab-ce # su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate RAILS_ENV=3Dproduction" WARNING: Nokogiri was built against libxml version 2.10.2, but has dynamica= lly loaded 2.10.3 main: =3D=3D 20220902204048 MoveSecurityFindingsTableToGitlabPartitionsDynamicSchema: migrating main: -- transaction_open?() main: -> 0.0000s main: -- execute("LOCK TABLE vulnerability_scanners, security_scans, security_findings IN ACCESS EXCLUSIVE MODE\n") main: -> 0.0006s main: -- execute("SELECT\n=20 pg_get_constraintdef(pg_catalog.pg_constraint.oid)\nFROM\n=20 pg_catalog.pg_constraint\nINNER JOIN pg_class ON pg_class.oid =3D pg_catalog.pg_constr aint.conrelid\nWHERE\n conname =3D 'check_partition_number' AND\n=20 pg_class.relname =3D 'security_findings'\n") main: -> 0.0100s main: -- execute("ALTER TABLE security_findings RENAME TO security_findings_1;\n") main: -> 0.0006s main: -- execute("ALTER INDEX security_findings_pkey RENAME TO security_findings_1_pkey;\n") main: -> 0.0005s main: -- execute("CREATE TABLE security_findings (\n LIKE security_finding= s_1 INCLUDING ALL\n) PARTITION BY LIST (partition_number);\n") main: -> 0.0121s main: -- execute("ALTER SEQUENCE security_findings_id_seq OWNED BY public.security_findings.id;\n") rake aborted! StandardError: An error has occurred, all later migrations canceled: PG::ObjectNotInPrerequisiteState: ERROR: sequence must have same owner as table it is linked to /usr/local/www/gitlab-ce/db/post_migrate/20220902204048_move_security_findi= ngs_table_to_gitlab_partitions_dynamic_schema.rb:80:in `block in up' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:123:in `run_block' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:134:in `b= lock in run_block_with_lock_timeout' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:129:in `run_block_with_lock_timeout' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:97:in `ru= n' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers.rb:452:in `with_lock_retries' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/v2.rb:117:in `with_lock_retries' /usr/local/www/gitlab-ce/db/post_migrate/20220902204048_move_security_findi= ngs_table_to_gitlab_partitions_dynamic_schema.rb:63:in `up' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/restrict_git= lab_schema.rb:33:in `block in exec_migration' /usr/local/www/gitlab-ce/lib/gitlab/database/query_analyzer.rb:37:in `withi= n' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/restrict_git= lab_schema.rb:30:in `exec_migration' /usr/local/www/gitlab-ce/lib/gitlab/database/migrations/lock_retry_mixin.rb= :36:in `ddl_transaction' Caused by: ActiveRecord::StatementInvalid: PG::ObjectNotInPrerequisiteState: ERROR:=20 sequence must have same owner as table it is linked to /usr/local/www/gitlab-ce/db/post_migrate/20220902204048_move_security_findi= ngs_table_to_gitlab_partitions_dynamic_schema.rb:80:in `block in up' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:123:in `run_block' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:134:in `b= lock in run_block_with_lock_timeout' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:129:in `run_block_with_lock_timeout' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:97:in `ru= n' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers.rb:452:in `with_lock_retries' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/v2.rb:117:in `with_lock_retries' /usr/local/www/gitlab-ce/db/post_migrate/20220902204048_move_security_findi= ngs_table_to_gitlab_partitions_dynamic_schema.rb:63:in `up' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/restrict_git= lab_schema.rb:33:in `block in exec_migration' /usr/local/www/gitlab-ce/lib/gitlab/database/query_analyzer.rb:37:in `withi= n' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/restrict_git= lab_schema.rb:30:in `exec_migration' /usr/local/www/gitlab-ce/lib/gitlab/database/migrations/lock_retry_mixin.rb= :36:in `ddl_transaction' Caused by: PG::ObjectNotInPrerequisiteState: ERROR: sequence must have same owner as table it is linked to /usr/local/www/gitlab-ce/db/post_migrate/20220902204048_move_security_findi= ngs_table_to_gitlab_partitions_dynamic_schema.rb:80:in `block in up' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:123:in `run_block' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:134:in `b= lock in run_block_with_lock_timeout' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:129:in `run_block_with_lock_timeout' /usr/local/www/gitlab-ce/lib/gitlab/database/with_lock_retries.rb:97:in `ru= n' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers.rb:452:in `with_lock_retries' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/v2.rb:117:in `with_lock_retries' /usr/local/www/gitlab-ce/db/post_migrate/20220902204048_move_security_findi= ngs_table_to_gitlab_partitions_dynamic_schema.rb:63:in `up' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/restrict_git= lab_schema.rb:33:in `block in exec_migration' /usr/local/www/gitlab-ce/lib/gitlab/database/query_analyzer.rb:37:in `withi= n' /usr/local/www/gitlab-ce/lib/gitlab/database/migration_helpers/restrict_git= lab_schema.rb:30:in `exec_migration' /usr/local/www/gitlab-ce/lib/gitlab/database/migrations/lock_retry_mixin.rb= :36:in `ddl_transaction' Tasks: TOP =3D> db:migrate (See full trace by running task with --trace) root@gitlab:/usr/local/www/gitlab-ce # This seems to have something to do with this recent bug report: https://forum.gitlab.com/t/error-sequence-must-have-same-owner-as-table-it-= is-linked-to/77279 A similar report from last month: https://forum.gitlab.com/t/db-migration-error-when-upgrading-to-gitlab-v15-= 4/75828 This report give more hints on what to do: https://forum.gitlab.com/t/db-migration-fails-on-latest-update/47988/4 I will try to follow the procedure described in the last to see if the prob= lem can be worked around. --=20 You are receiving this mail because: You are the assignee for the bug.=