Hello all,
my scheduled tasks are not working anymore since a few hours (they all worked fine until now), this morning i tried to change my smtp settings from sendgrid to ses so i changed config.yml file… Then i ran this command
bundle exec rake sharetribe:synchronize_verified_with_ses
and since when i run a scheduled task i have this error
ubuntu@ip-172-31-4-233:~/sharetribe$ bundle exec rails runner ActiveSessionsHelper.cleanup
/home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.1/lib/active_record/connection_adapters/connection_specification.rb:246:in resolve_symbol_connection': 'development' database is not configured. Available: ["production"] (ActiveRecord::AdapterNotSpecified) from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.1/lib/active_record/connection_adapters/connection_specification.rb:227:in
resolve_connection’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.1/lib/active_record/connection_adapters/connection_specification.rb:141:in resolve' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.1/lib/active_record/connection_handling.rb:55:in
establish_connection’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.1/lib/active_record/railtie.rb:124:in block (2 levels) in <class:Railtie>' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/lazy_load_hooks.rb:45:in
instance_eval’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/lazy_load_hooks.rb:45:in execute_hook' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/lazy_load_hooks.rb:35:in
block in on_load’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/lazy_load_hooks.rb:34:in each' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/lazy_load_hooks.rb:34:in
on_load’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.1/lib/active_record/railtie.rb:120:in block in <class:Railtie>' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:30:in
instance_exec’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:30:in run' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:59:in
block in run_initializers’
from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in block in tsort_each' from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component’
from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in each_strongly_connected_component_from' from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in
block in each_strongly_connected_component’
from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in each' from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in
call’
from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in each_strongly_connected_component' from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in
tsort_each’
from /home/ubuntu/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in tsort_each' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:58:in
run_initializers’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/application.rb:353:in initialize!' from /home/ubuntu/sharetribe/config/environment.rb:18:in
<top (required)>'
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:292:in require' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:292:in
block in require’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:258:in load_dependency' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:292:in
require’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/application.rb:329:in require_environment!' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/command/actions.rb:16:in
require_application_and_environment!‘
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/commands/runner/runner_command.rb:27:in perform' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/thor-0.19.4/lib/thor/command.rb:27:in
run’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/thor-0.19.4/lib/thor/invocation.rb:126:in invoke_command' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/thor-0.19.4/lib/thor.rb:369:in
dispatch’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/command/base.rb:63:in perform' from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/command.rb:44:in
invoke’
from /home/ubuntu/.rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/commands.rb:16:in <top (required)>' from bin/rails:4:in
require’
from bin/rails:4:in `’
Does anyone have an idea how to fix this ?
Thanks in advance for your help,
Mathieu