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

Crashes: docker-sync-stack start #34

Closed
Vasiliy-Bondarenko opened this issue Jul 14, 2016 · 9 comments
Closed

Crashes: docker-sync-stack start #34

Vasiliy-Bondarenko opened this issue Jul 14, 2016 · 9 comments
Assignees

Comments

@Vasiliy-Bondarenko
Copy link

From: EugenMayer/docker-sync#49

docker-sync start

works ok.

docker-sync-stack start 

fails.

> docker-sync-stack start
/Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:105:in `private': nil is not a symbol (TypeError)
    from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:105:in `<class:Mapper>'
    from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:5:in `<module:Compose>'
    from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:2:in `<top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose.rb:10:in `require_relative'
    from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose.rb:10:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/tasks/stack/stack.thor:5:in `<top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:22:in `load'
    from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:22:in `block in <top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:20:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:20:in `<top (required)>'
    from /usr/local/bin/docker-sync-stack:23:in `load'
    from /usr/local/bin/docker-sync-stack:23:in `<main>'
> gem list | grep docker-sync
docker-sync (0.0.13)

all yaml files are valid.

docker-compose -f docker-compose.yml -f docker-compose-dev.yml up

works without problems...

Files: #Archive.zip

@xeger
Copy link
Owner

xeger commented Jul 16, 2016

Hmm. Some things changed between Ruby 2.0 and 2.1. Try with 2.1 as a
workaround. Easy issue to fix if Eugen would be willing. I am camping this
weekend, away from computers.
On Jul 14, 2016 1:03 AM, "Vasiliy-Bondarenko" notifications@github.com
wrote:

From: EugenMayer/docker-sync#49
EugenMayer/docker-sync#49

docker-sync start

works ok.

docker-sync-stack start

fails.

docker-sync-stack start
/Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:105:in
private': nil is not a symbol (TypeError) from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:105:in class:Mapper'
from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:5:in
<module:Compose>' from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose/mapper.rb:2:in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose.rb:10:in
require_relative' from /Library/Ruby/Gems/2.0.0/gems/docker-compose-0.8.3/lib/docker/compose.rb:10:in <top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/tasks/stack/stack.thor:5:in
<top (required)>' from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:22:in load'
from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:22:in
block in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:20:in each'
from /Library/Ruby/Gems/2.0.0/gems/docker-sync-0.0.13/bin/docker-sync-stack:20:in
<top (required)>' from /usr/local/bin/docker-sync-stack:23:inload'
from /usr/local/bin/docker-sync-stack:23:in `

'

gem list | grep docker-sync
docker-sync (0.0.13)

all yaml files are valid.

docker-compose -f docker-compose.yml -f docker-compose-dev.yml up

works without problems...

Files: #Archive.zip
https://github.com/EugenMayer/docker-sync/files/363227/Archive.zip


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#34, or mute the thread
https://github.com/notifications/unsubscribe/AAEemCoQy6qMgJ9oc64mDpqpHW0nDqbqks5qVe1sgaJpZM4JMLc3
.

@Vasiliy-Bondarenko
Copy link
Author

updated ruby to latest 2.3.0p0
problem fixed for me. thank you.

@EugenMayer
Copy link
Collaborator

Must be the yaml parser, which ruby version have you been using before ?

@EugenMayer EugenMayer self-assigned this Jul 16, 2016
@Vasiliy-Bondarenko
Copy link
Author

2.0
macos default, i beleive.

@Duske
Copy link

Duske commented Jul 18, 2016

Can confirm this issue with ruby 2.0.0, after upgrading via rvm to 2.3.0p0 it does not occur anymore. But when I stop it with CTRL-C, a strange error is reported:

Stopping your-simplest-app ...
/Users/dchabrowski/.rvm/gems/ruby-2.3.0/gems/docker-compose-0.8.3/lib/docker/compose/session.rb:201: warning: conflicting chdir during another chdir block
Stopping your-simplest-app ...
Exception in thread Thread-3:
Traceback (most recent call last):
  File "threading.py", line 810, in __bootstrap_inner
  File "threading.py", line 763, in run
  File "compose/cli/log_printer.py", line 190, in watch_events
  File "compose/project.py", line 343, in events
  File "site-packages/docker/client.py", line 251, in _stream_helper
  File "json/__init__.py", line 338, in loads
  File "json/decoder.py", line 369, in decode
ValueError: Extra data: line 2 column 1 - line 3 column 1 (char 634 - 1268)
Stopping your-simplest-app ... done

But I guess this is another issue not related to the original one.

@xeger xeger closed this as completed in 5a771db Jul 18, 2016
@xeger
Copy link
Owner

xeger commented Jul 18, 2016

@Duske, that looks like an error in the actual docker-compose tool (which is written in Python); furthermore, it looks like a very weird case where its own requests to Docker's REST API are returning data that it doesn't understand. I would double-check that the version of Docker Compose you are using is compatible with the version of Docker Engine you are using.

@xeger
Copy link
Owner

xeger commented Jul 18, 2016

@Vasiliy-Bondarenko, I have published docker-compose v0.8.4 with Ruby 2.0 support.

@luikore
Copy link

luikore commented Sep 28, 2016

It can't be installed in Ruby 2.0, since it has a dependency in gemspec which requires ruby version ~> 2.1

@xeger
Copy link
Owner

xeger commented Sep 30, 2016

Thank you @luikore. Published 1.0.1 to remedy this.

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

5 participants