Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring not starting inside Docker container #479

Closed
fertapric opened this issue Apr 10, 2016 · 7 comments
Closed

Spring not starting inside Docker container #479

fertapric opened this issue Apr 10, 2016 · 7 comments

Comments

@fertapric
Copy link

Hi!

I'm using Docker and Docker Compose as my local development environment. The project is quite simple, one container based on a postgres image and another container for the Rails app (named web). To use spring inside docker, I usually created a new container (docker-compose run web bash) to run rakes, migrations and so on from there. Spring 1.6.4 has been working perfectly with that configuration.

However, Spring 1.7.0 seems to not work if I run the commands inside the Docker container. The command just freezes and I get this backtrace if I send a SIGINT to the process:

root@5b707ea798d8:/app# rake test
^C/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep'/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep': : : : : : : : : : : : : : : : : : /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep': : : /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep': : : : : /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `sleep': : InterruptInterruptInterruptInterrupt: InterruptInterrupt



Interrupt:

Interrupt   from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
Interrupt
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
InterruptInterrupt  from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
Interrupt   from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
Interrupt   from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
:   from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
Interrupt
Interrupt

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
InterruptInterrupt

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
: Interrupt
InterruptInterrupt
Interrupt
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
InterruptInterrupt

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
InterruptInterrupt

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
InterruptInterrupt



    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
:
InterruptInterrupt  from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'


    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
Interrupt
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
Interrupt   from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
Interrupt

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'


    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
Interrupt   from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'

    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:77:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:11:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:11:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from /dribbble/bin/spring:15:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `load'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from ./bin/rake:3:in `load'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/rake:3:in `<main>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from ./bin/spring:15:in `<main>'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/binstub.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./bin/spring:15:in `<main>'
/usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': Interrupt
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/request.rb:2:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/remote_fetcher.rb:3:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.11.2/lib/bundler/gem_remote_fetcher.rb:1:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.11.2/lib/bundler.rb:6:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
    from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
    from ./bin/spring:8:in `<main>'

I tried to create an exampled app based on @jonleighton Docker example but I got a different error:

root@f979c5ab2c47:/app# spring server
[2016-04-10 20:58:27 +0000] [10] [server] shutting down
/usr/local/bundle/gems/spring-1.7.0/lib/spring/server.rb:47:in `initialize': Operation not permitted - connect(2) for tmp/spring.sock (Errno::EPERM)
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/server.rb:47:in `open'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/server.rb:47:in `start_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/server.rb:43:in `boot'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/server.rb:14:in `boot'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/server.rb:10:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/bin/spring:16:in `load'
    from /usr/local/bundle/bin/spring:16:in `<main>'
root@f979c5ab2c47:/app# spring
/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:72:in `spawn': No such file or directory - docker-compose (Errno::ENOENT)
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:72:in `boot_server'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:53:in `cold_run'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:30:in `rescue in call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:27:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client/command.rb:7:in `call'
    from /usr/local/bundle/gems/spring-1.7.0/lib/spring/client.rb:30:in `run'
    from /usr/local/bundle/gems/spring-1.7.0/bin/spring:49:in `<top (required)>'
    from /usr/local/bundle/bin/spring:16:in `load'
    from /usr/local/bundle/bin/spring:16:in `<main>'

after modifying the files to make them look more similar to my app:

Dockerfile

FROM ruby:2.3
RUN apt-get update -qq && apt-get install -y nodejs

RUN mkdir /app
WORKDIR /app

ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle install

ADD . /app

docker-compose.yml

version: '2'
services:
  web:
    build: .
    volumes:
      - .:/app
    command: bundle exec rails s -p 3000 -b '0.0.0.0'
    ports:
      - "3000:3000"

I would like to be more helpful here, but I've been looking at the spring/client/run.rb for a while and I don't even know where to start. Thanks!

jonleighton added a commit that referenced this issue Apr 11, 2016
e3cd7e4 introduced the possibility of
an infinite boot loop, where we try to restart the server, but it
doesn't resolve the version mismatch (for whatever reason), so we try
again...

Related to #479
@jonleighton
Copy link
Member

Do you still have problems with version 1.7.1?

@jonleighton
Copy link
Member

Also:

/usr/local/bundle/gems/spring-1.7.0/lib/spring/server.rb:47:in `initialize': Operation not permitted - connect(2) for tmp/spring.sock (Errno::EPERM)

This error is because your host UID and container UID are different.

/usr/local/bundle/gems/spring-1.7.0/lib/spring/client/run.rb:72:in `spawn': No such file or directory - docker-compose (Errno::ENOENT)

This error is because you're not meant to run the spring client inside your container. The idea is to run the client on your host, and run the server inside your container.

@fertapric
Copy link
Author

Everything works fine. Thanks!

@fertapric
Copy link
Author

Should I close this issue?

@jonleighton
Copy link
Member

Thanks for the prompt

@mrkongo
Copy link

mrkongo commented Aug 21, 2016

@ Today if I start server with docker-compose like that and modify a controller or a model it doesn't work adn I have to launch again with docker-compose up. I'm on Windows with Docker for Windows BETA.

How to fix this?

@ethanlee16
Copy link

For anyone that runs into this issue in the future - I found out that when adding a Gemfile dependency, I was only rebuilding the web service that ran my Rails server and forgot to also rebuild the spring service. I would suggest running docker-compose run spring - this output was much more helpful to me than the Ruby stacktrace 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants