Docker Community Forums

Share and learn in the Docker community.

Command rails c dosen't work


(Mykonos) #1

Expected behavior

Open a rails console

Actual behavior

Nothing happend, after 3-4 minutes I stop the process with Ctrl+C and I have this output:
root@0204dfe8c465:/var/www/myproject# rails c
^C/usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require': Interrupt from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inblock in require’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire’
from /usr/local/bundle/gems/mail-2.6.4/lib/mail/fields/message_id_field.rb:32:in <top (required)>' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in block in require' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:inload_dependency’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/mail-2.6.4/lib/mail/field.rb:43:inclass:Field
from /usr/local/bundle/gems/mail-2.6.4/lib/mail/field.rb:24:in <module:Mail>' from /usr/local/bundle/gems/mail-2.6.4/lib/mail/field.rb:5:in<top (required)>'
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inblock in require’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire’
from /usr/local/bundle/gems/mail-2.6.4/lib/mail.rb:79:in <module:Mail>' from /usr/local/bundle/gems/mail-2.6.4/lib/mail.rb:3:in<top (required)>'
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inblock in require’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire’
from /usr/local/bundle/gems/actionmailer-4.2.6/lib/action_mailer/base.rb:1:in <top (required)>' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in block in require' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:inload_dependency’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/actionmailer-4.2.6/lib/action_mailer/railtie.rb:59:inblock in class:Railtie
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:36:in execute_hook' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:45:inblock in run_load_hooks’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:44:in each' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:44:inrun_load_hooks’
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/application/finisher.rb:62:in block in <module:Finisher>' from /usr/local/bundle/gems/railties-4.2.6/lib/rails/initializable.rb:30:ininstance_exec’
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/initializable.rb:30:in run' from /usr/local/bundle/gems/railties-4.2.6/lib/rails/initializable.rb:55:inblock in run_initializers’
from /usr/local/lib/ruby/2.3.0/tsort.rb:228:in block in tsort_each' from /usr/local/lib/ruby/2.3.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component’
from /usr/local/lib/ruby/2.3.0/tsort.rb:431:in each_strongly_connected_component_from' from /usr/local/lib/ruby/2.3.0/tsort.rb:349:inblock in each_strongly_connected_component’
from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in each' from /usr/local/lib/ruby/2.3.0/tsort.rb:347:incall’
from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in each_strongly_connected_component' from /usr/local/lib/ruby/2.3.0/tsort.rb:226:intsort_each’
from /usr/local/lib/ruby/2.3.0/tsort.rb:205:in tsort_each' from /usr/local/bundle/gems/railties-4.2.6/lib/rails/initializable.rb:54:inrun_initializers’
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/application.rb:352:in initialize!' from /var/www/myproject/config/environment.rb:5:in<top (required)>'
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inblock in require’
from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire’
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/application.rb:328:in require_environment!' from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:142:inrequire_application_and_environment!'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:67:in console' from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:inrun_command!‘
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:8:inrequire’
from bin/rails:8:in `’

Information

  • OSX 10.11.4 with Dockers beta : Version 1.11.1-beta10 (build: 6662)