Docker-sync: Regression in check_unison_image call for 0.5.9

Created on 16 Oct 2018  路  7Comments  路  Source: EugenMayer/docker-sync

Error/Feature Requestion/Docs

It appears that when the check_unison_image method was removed in 0.5.9, the call to it was left in within the upgrade_check.rb file.

.../docker-sync-0.5.9/lib/docker-sync/upgrade_check.rb:129:in check_and_warn': undefined methodcheck_unison_image' for # (NoMethodError)

See:
https://github.com/EugenMayer/docker-sync/commit/9ffd23b5a30c63cfe3f057d14a4e433ced6d420c

Docker Driver

Docker Community Edition - v18.06.1-ce-mac73 (26764)

Sync strategy

I'm using the default strategy from the docker-sync-boilerplate project, but it appears in the rsync strategy also.

your docker-sync.yml

version: "2"

options:
  verbose: true
syncs:
  appcode-native-osx-sync: # tip: add -sync and you keep consistent names as a convention
    src: './app'
    # sync_strategy: 'native_osx' # not needed, this is the default now
    sync_excludes: ['ignored_folder', '.ignored_dot_folder']

OS

macOS High Sierra v10.13.6

OSX bug

Most helpful comment

Perhaps as a workaround for end users :

docker pull docker pull eugenmayer/unison:2.51.2.1

export DOCKER_SYNC_SKIP_UPGRADE=True
docker-sync start

All 7 comments

Perhaps as a workaround for end users :

docker pull docker pull eugenmayer/unison:2.51.2.1

export DOCKER_SYNC_SKIP_UPGRADE=True
docker-sync start

fixed with 0.5.10, thank you for the patience

@EugenMayer when will 0.5.10 be released?

@phillipsnick i was aiming to fix https://github.com/EugenMayer/docker-sync/issues/609 first but i had no progress yet

If anyone still have the issue and forgot to read the environment variable spec above you can also go with:

$ mv ~/.docker-sync-global.yml ~/.docker-sync-global.yml.bak
$ docker-sync start

Note: All our data was harmed in the process 馃榾(we recreate quite volumes often)

@EugenMayer thanks for all the hard work!

Any chance 0.5.10 can go out with this fix before #609?

@EugenMayer looks like this is still an issue in 0.5.10:

/Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.10/lib/docker-sync/upgrade_check.rb:59:in `check_and_warn': undefined method `check_unison_image' for #<UpdateChecker:0x00007fcf5897d860> (NoMethodError)
Did you mean?  check_rsync_image
    from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.10/lib/docker-sync/upgrade_check.rb:18:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.10/tasks/sync/sync.thor:33:in `start'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
    from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.10/bin/docker-sync:14:in `<top (required)>'
    from /usr/local/bin/docker-sync:22:in `load'
    from /usr/local/bin/docker-sync:22:in `<main>'
Was this page helpful?
0 / 5 - 0 ratings

Related issues

YouriT picture YouriT  路  4Comments

radmiraal picture radmiraal  路  4Comments

barat picture barat  路  8Comments

EugenMayer picture EugenMayer  路  9Comments

brucemead picture brucemead  路  3Comments