LoginSignup
1
1

More than 5 years have passed since last update.

DockerSync起動時にundefined method エラー発生

Posted at

問題

Docker起動時に以下エラーが発生

 $docker-sync-stack start
/Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.9/lib/docker-sync/upgrade_check.rb:129:in `check_and_warn': undefined method `check_unison_image' for #<UpdateChecker:0x00007fc539918c18> (NoMethodError)
Did you mean?  check_rsync_image
    from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.9/lib/docker-sync/upgrade_check.rb:18:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.9/tasks/stack/stack.thor:33:in `start'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
    from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.9/bin/docker-sync-stack:15:in `<top (required)>'
    from /usr/local/bin/docker-sync-stack:22:in `load'
    from /usr/local/bin/docker-sync-stack:22:in `<main>'

GemのVersionが揃ってないのかな、と思いDockerSync周りのGemを入れ直して見たが変わりませんでした。

解決策

複数Versionのdocker-syncが入っていたので一つにした。
$HOME以下の.docker-sync-glocal.ymlを削除し、再度gem install docker-syncdocker-sync cleanで同じことができる?)

経緯

過去1年ほど前にDockerSyncを導入していた
今回DockerSyncを最新にupdate(gem update docker-sync)
この時$HOME以下の.docker-sync-glocal.ymlの内容が書き換わらなかった。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1