mastodon-terraform
mastodon-terraform copied to clipboard
Rails DB:Setup fails due to malconfiguration
the manual execution of the custom ecs task to do the rails db:setup fails. It seems that the recipe wants to start a new db, but fails, as mastodon already exists...
See attached CloudWatch Log:
Creating mastodon user (UID : 991 and GID : 991)...
13:42:22
Updating permissions...
13:42:24
Executing process...
13:42:27
Database 'mastodon' already exists
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
13:42:28
Set SAFETY_ASSURED=1 to run this task in production
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/strong_migrations-0.1.9/lib/tasks/strong_migrations.rake:5:in `block (2 levels) in <top (required)>'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:252:in `block (3 levels) in <top (required)>'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/command.rb:46:in `invoke'
13:42:28
rails aborted!
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
13:42:28
/mastodon/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
13:42:28
bin/rails:4:in `<main>'
13:42:28
Tasks: TOP => db:schema:load => strong_migrations:safety_assured
13:42:28
(See full trace by running task with --trace)