Skip to content

gdk reset-data --fast fails with 'relation "feature_gates" does not exist'

gdk reset-data --fast left my database in an Interesting™ state, after failing with the following error in a loop:

ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass

It also failed to report this error at the very end:

❌️ ERROR: 'mise exec -- bundle exec rake db:create' failed.
/Volumes/g/gdk/lib/gdk/command/reset_data.rb:60:in `reset_data_fast!': undefined method `stderr_str' for an instance of GDK::Execute::Rake (NoMethodError)

          GDK::Output.error('Failed to create databases.', rake.stderr_str)
                                                               ^^^^^^^^^^^
        from /Volumes/g/gdk/lib/gdk/command/reset_data.rb:20:in `run'
        from /Volumes/g/gdk/lib/gdk/command.rb:80:in `block in run'
        from /Volumes/g/gdk/lib/gdk/telemetry.rb:38:in `with_telemetry'

Possibly related: !208238 (comment 2823697731)

Output of the command in its entirety:

> gdk reset-data --fast
⚠️  WARNING: We're about to remove _all_ (GitLab and praefect) PostgreSQL data, Rails uploads and git repository data.
⚠️  WARNING: Backups will be made in '/Volumes/g/gdk/.backups', just in case!
Are you sure? [y/N]: y
=> Retrying stop (1/3)
=> Moving PostgreSQL data from '/Volumes/g/gdk/postgresql/data' to '/Volumes/g/gdk/.backups/postgresql/data.2025-10-30_12.46.27/'
=> Moving redis dump.rdb from '/Volumes/g/gdk/redis/dump.rdb' to '/Volumes/g/gdk/.backups/redis/dump.rdb.2025-10-30_12.46.27/'
=> Moving Rails uploads from '/Volumes/g/gdk/gitlab/public/uploads' to '/Volumes/g/gdk/.backups/gitlab/public/uploads.2025-10-30_12.46.27/'
=> Moving git repository data from '/Volumes/g/gdk/repositories' to '/Volumes/g/gdk/.backups/repositories.2025-10-30_12.46.27/'
ok: down: /Volumes/g/gdk/services/gitlab-http-router: 0s
ok: down: /Volumes/g/gdk/services/gitlab-topology-service: 0s
ok: down: /Volumes/g/gdk/services/gitlab-workhorse: 0s
ok: down: /Volumes/g/gdk/services/jaeger: 0s
ok: down: /Volumes/g/gdk/services/rails-background-jobs: 0s
ok: down: /Volumes/g/gdk/services/rails-web: 0s
ok: down: /Volumes/g/gdk/services/sshd: 0s
ok: down: /Volumes/g/gdk/services/vite: 0s
ok: down: /Volumes/g/gdk/services/praefect: 0s
ok: down: /Volumes/g/gdk/services/praefect-gitaly-0: 0s
ok: down: /Volumes/g/gdk/services/redis: 1s
ok: down: /Volumes/g/gdk/services/postgresql: 1s
The files belonging to this database system will be owned by user "kivikakk".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /Volumes/g/gdk/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Australia/Melbourne
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
ok


Success. You can now start the database server using:

    /Users/kivikakk/.local/share/mise/installs/postgres/16.10/bin/pg_ctl -D /Volumes/g/gdk/postgresql/data -l logfile start


--------------------------------------------------------------------------------
Ensuring necessary data services are running
--------------------------------------------------------------------------------
ok: run: /Volumes/g/gdk/services/postgresql: (pid 45929) 0s, normally down
ok: run: /Volumes/g/gdk/services/praefect-gitaly-0: (pid 45931) 0s, normally down
ok: run: /Volumes/g/gdk/services/redis: (pid 45932) 0s, normally down
ok: run: /Volumes/g/gdk/services/praefect: (pid 46021) 0s, normally down
Created database 'gitlabhq_development'
Created database 'gitlabhq_development_ci'
Created database 'gitlabhq_test'
Created database 'gitlabhq_test_ci'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `exec': PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist (ActiveRecord::StatementInvalid)
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^

        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `block (2 levels) in query'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:1027:in `block in with_raw_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:999:in `with_raw_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:18:in `block in query'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:1142:in `log'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:17:in `query'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql_adapter.rb:1074:in `column_definitions'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:109:in `columns'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:346:in `block in columns'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:345:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:345:in `columns'
        from /Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:354:in `block in columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:353:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:353:in `columns_hash'
        from /Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:58:in `columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:188:in `columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:622:in `load_schema!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/attributes.rb:264:in `load_schema!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/encryption/encryptable_record.rb:127:in `load_schema!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:567:in `block in load_schema'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:564:in `synchronize'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:564:in `load_schema'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:445:in `attribute_types'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:471:in `type_for_attribute'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/type_caster/map.rb:16:in `type_for_attribute'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/arel/table.rb:111:in `type_for_attribute'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/table_metadata.rb:18:in `type'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:59:in `build'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:54:in `[]'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:132:in `block in expand_from_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:79:in `each'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:79:in `flat_map'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:79:in `expand_from_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:25:in `build_from_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/query_methods.rb:1526:in `build_where_clause'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/query_methods.rb:943:in `where!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/query_methods.rb:938:in `where'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/querying.rb:23:in `where'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_record-0.28.3/lib/flipper/adapters/active_record.rb:98:in `block in get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:227:in `with_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_record-0.28.3/lib/flipper/adapters/active_record.rb:259:in `with_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_record-0.28.3/lib/flipper/adapters/active_record.rb:98:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:74:in `block in get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1060:in `block in save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1030:in `block in _instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/notifications.rb:208:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1029:in `_instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1006:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1059:in `save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:481:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:73:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:74:in `block in get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1060:in `block in save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1030:in `block in _instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/notifications.rb:208:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1029:in `_instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1006:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1059:in `save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:481:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:73:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/adapters/memoizable.rb:68:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:236:in `gate_values'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:110:in `block in enabled?'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:381:in `block in instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/instrumenters/noop.rb:5:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:378:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:107:in `enabled?'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:128:in `emitter_class'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:118:in `emitter'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:110:in `tracker'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:23:in `block in initialize'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `exec': ERROR:  relation "feature_gates" does not exist (PG::UndefinedTable)
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^

        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `block (2 levels) in query'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:1027:in `block in with_raw_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:999:in `with_raw_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:18:in `block in query'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:1142:in `log'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:17:in `query'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/postgresql_adapter.rb:1074:in `column_definitions'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:109:in `columns'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:346:in `block in columns'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:345:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:345:in `columns'
        from /Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:354:in `block in columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:353:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:353:in `columns_hash'
        from /Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:58:in `columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/schema_cache.rb:188:in `columns_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:622:in `load_schema!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/attributes.rb:264:in `load_schema!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/encryption/encryptable_record.rb:127:in `load_schema!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:567:in `block in load_schema'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:564:in `synchronize'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:564:in `load_schema'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:445:in `attribute_types'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/model_schema.rb:471:in `type_for_attribute'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/type_caster/map.rb:16:in `type_for_attribute'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/arel/table.rb:111:in `type_for_attribute'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/table_metadata.rb:18:in `type'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:59:in `build'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:54:in `[]'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:132:in `block in expand_from_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:79:in `each'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:79:in `flat_map'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:79:in `expand_from_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/predicate_builder.rb:25:in `build_from_hash'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/query_methods.rb:1526:in `build_where_clause'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/query_methods.rb:943:in `where!'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/relation/query_methods.rb:938:in `where'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/querying.rb:23:in `where'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_record-0.28.3/lib/flipper/adapters/active_record.rb:98:in `block in get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activerecord-7.1.5.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:227:in `with_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_record-0.28.3/lib/flipper/adapters/active_record.rb:259:in `with_connection'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_record-0.28.3/lib/flipper/adapters/active_record.rb:98:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:74:in `block in get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1060:in `block in save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1030:in `block in _instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/notifications.rb:208:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1029:in `_instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1006:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1059:in `save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:481:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:73:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:74:in `block in get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1060:in `block in save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1030:in `block in _instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/notifications.rb:208:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1029:in `_instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1006:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:1059:in `save_block_result_to_cache'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/activesupport-7.1.5.2/lib/active_support/cache.rb:481:in `fetch'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-active_support_cache_store-0.28.3/lib/flipper/adapters/active_support_cache_store.rb:73:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/adapters/memoizable.rb:68:in `get'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:236:in `gate_values'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:110:in `block in enabled?'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:381:in `block in instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/instrumenters/noop.rb:5:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:378:in `instrument'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/flipper-0.28.3/lib/flipper/feature.rb:107:in `enabled?'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
        from /Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:128:in `emitter_class'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:118:in `emitter'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:110:in `tracker'
        from /Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:23:in `block in initialize'
[sentry] `config.logger` is deprecated. Please use `config.sdk_logger` instead.
❌️ ERROR: 'mise exec -- bundle exec rake db:create' failed. Retrying in 2 secs..
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
/Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
/Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:154:in `batching_disabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:21:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow_micro.rb:16:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `new'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `allow_snowplow_micro'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:64:in `allow_development_tooling'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:23:in `default_directives'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:206:in `initialize'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `new'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `block in <main>'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:11:in `<main>'
/Volumes/g/gdk/gitlab/config/environment.rb:7:in `<main>'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/bundle:25:in `<main>'

Caused by:
PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
/Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
/Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:154:in `batching_disabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:21:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow_micro.rb:16:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `new'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `allow_snowplow_micro'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:64:in `allow_development_tooling'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:23:in `default_directives'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:206:in `initialize'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `new'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `block in <main>'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:11:in `<main>'
/Volumes/g/gdk/gitlab/config/environment.rb:7:in `<main>'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/bundle:25:in `<main>'
Tasks: TOP => db:create => db:load_config => environment
(See full trace by running task with --trace)
❌️ ERROR: 'mise exec -- bundle exec rake db:create' failed. Retrying in 2 secs..
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
/Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
/Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:154:in `batching_disabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:21:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow_micro.rb:16:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `new'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `allow_snowplow_micro'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:64:in `allow_development_tooling'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:23:in `default_directives'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:206:in `initialize'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `new'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `block in <main>'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:11:in `<main>'
/Volumes/g/gdk/gitlab/config/environment.rb:7:in `<main>'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/bundle:25:in `<main>'

Caused by:
PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
/Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
/Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:154:in `batching_disabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:21:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow_micro.rb:16:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `new'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `allow_snowplow_micro'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:64:in `allow_development_tooling'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:23:in `default_directives'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:206:in `initialize'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `new'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `block in <main>'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:11:in `<main>'
/Volumes/g/gdk/gitlab/config/environment.rb:7:in `<main>'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/bundle:25:in `<main>'
Tasks: TOP => db:create => db:load_config => environment
(See full trace by running task with --trace)
❌️ ERROR: 'mise exec -- bundle exec rake db:create' failed. Retrying in 2 secs..
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
/Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
/Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:154:in `batching_disabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:21:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow_micro.rb:16:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `new'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `allow_snowplow_micro'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:64:in `allow_development_tooling'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:23:in `default_directives'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:206:in `initialize'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `new'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `block in <main>'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:11:in `<main>'
/Volumes/g/gdk/gitlab/config/environment.rb:7:in `<main>'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/bundle:25:in `<main>'

Caused by:
PG::UndefinedTable: ERROR:  relation "feature_gates" does not exist
LINE 10:  WHERE a.attrelid = '"feature_gates"'::regclass
                             ^
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:26:in `columns'
/Volumes/g/gdk/gitlab/lib/gitlab/database/schema_cache_with_renamed_table_71.rb:30:in `columns_hash'
/Volumes/g/gdk/gitlab/lib/feature.rb:337:in `block in current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:352:in `with_feature'
/Volumes/g/gdk/gitlab/lib/feature.rb:333:in `current_feature_value'
/Volumes/g/gdk/gitlab/lib/feature.rb:134:in `enabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:154:in `batching_disabled?'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow.rb:21:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/tracking/destinations/snowplow_micro.rb:16:in `initialize'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `new'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:102:in `allow_snowplow_micro'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:64:in `allow_development_tooling'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:23:in `default_directives'
/Volumes/g/gdk/gitlab/lib/gitlab/content_security_policy/config_loader.rb:206:in `initialize'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `new'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:12:in `block in <main>'
/Volumes/g/gdk/gitlab/config/initializers/content_security_policy.rb:11:in `<main>'
/Volumes/g/gdk/gitlab/config/environment.rb:7:in `<main>'
/Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/bundle:25:in `<main>'
Tasks: TOP => db:create => db:load_config => environment
(See full trace by running task with --trace)
❌️ ERROR: 'mise exec -- bundle exec rake db:create' failed.
/Volumes/g/gdk/lib/gdk/command/reset_data.rb:60:in `reset_data_fast!': undefined method `stderr_str' for an instance of GDK::Execute::Rake (NoMethodError)

          GDK::Output.error('Failed to create databases.', rake.stderr_str)
                                                               ^^^^^^^^^^^
        from /Volumes/g/gdk/lib/gdk/command/reset_data.rb:20:in `run'
        from /Volumes/g/gdk/lib/gdk/command.rb:80:in `block in run'
        from /Volumes/g/gdk/lib/gdk/telemetry.rb:38:in `with_telemetry'
        from /Volumes/g/gdk/lib/gdk/command.rb:81:in `run'
        from /Volumes/g/gdk/lib/gdk.rb:65:in `block in main'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.1/lib/bundler.rb:409:in `block in with_unbundled_env'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.1/lib/bundler.rb:698:in `with_env'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.1/lib/bundler.rb:409:in `with_unbundled_env'
        from /Volumes/g/gdk/lib/gdk.rb:59:in `main'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/gitlab-development-kit-0.2.19/bin/gdk:30:in `run'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/gitlab-development-kit-0.2.19/bin/gdk:85:in `<top (required)>'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/site_ruby/3.3.0/rubygems.rb:319:in `load'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/lib/ruby/site_ruby/3.3.0/rubygems.rb:319:in `activate_and_load_bin_path'
        from /Users/kivikakk/.local/share/mise/installs/ruby/3.3.9/bin/gdk:25:in `<main>'
>

I have no idea what labels are appropriate here!

cc @tkuah

Edited by 🤖 GitLab Bot 🤖