roos-fs tasks #326
openCI step fails (setup database)
0%
Description
Log:
`Run echo "Creating databases..."
Creating databases...
Created database 'roos_fs_web_test'
Created database 'roos_fs_web_test_queue'
Created database 'roos_fs_web_test_cache'
Created database 'roos_fs_web_test_cable'
Running migrations...
== 20250817153415 CreateProjects: migrating ===================================
-- create_table(:projects)
bin/rails aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
PG::DuplicateTable: ERROR: relation "projects" already exists
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'PG::Connection#exec'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements#perform_query'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:556:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:1015:in 'block in ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:984:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:555:in 'block in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:1135:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#log'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:554:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:591:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#internal_execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:137:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:27:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:40:in 'ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements#execute'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:309:in 'ActiveRecord::ConnectionAdapters::SchemaStatements#create_table'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/migration/default_strategy.rb:10:in 'ActiveRecord::Migration::DefaultStrategy#method_missing'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/migration.rb:1056:in 'block in ActiveRecord::Migration#method_missing'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/migration.rb:1022:in 'block in ActiveRecord::Migration#say_with_time'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/benchmark.rb:17:in 'ActiveSupport::Benchmark.realtime'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/migration.rb:1022:in 'ActiveRecord::Migration#say_with_time'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/migration.rb:1045:in 'ActiveRecord::Migration#method_missing'
/home/runner/work/roos_fs_web/roos_fs_web/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/migration.rb:582:in 'ActiveRecord::Migration::Current#create_table'
/home/runner/work/roos_fs_web/roos_fs_web/db/migrate/20250817153415_create_projects.rb:3:in 'CreateProjects#change'`
Updated by Albert Katasonov 5 days ago
- Project changed from 8 to Roos-fs-ZIP
- Category deleted (
Bug)