docker-sync icon indicating copy to clipboard operation
docker-sync copied to clipboard

Max attempts not respected in 0.5.7

Open johnzzon opened this issue 8 years ago • 12 comments

Error

After upgrading to 0.5.3 the start command fails after 5 seconds even though my config is set to 30. (have tried clean as well) Failed to start unison container in time, try to increase max_attempt (currently 5) Downgrading back to 0.5.2 solves the issue.

Docker Driver

d4m

Sync strategy

unison

your docker-sync.yml

version: '2'

options:
  verbose: true
  max-attempts: 30

syncs:
  docker-sync:
    src: './src'
    sync_args: '-prefer newer'
    sync_userid: '33'
    sync_strategy: 'unison'

OS

macOS High Sierra 10.13.3

johnzzon avatar Mar 11 '18 13:03 johnzzon

must be related to the new unison image i suppose, thanks for reporting

EugenMayer avatar Mar 11 '18 16:03 EugenMayer

There is problem with ENV variables, missing UNISON_ prefix

pajon avatar Mar 12 '18 11:03 pajon

@pajon could you elaborate a little bit?

EugenMayer avatar Mar 12 '18 16:03 EugenMayer

that was the actual cause https://github.com/EugenMayer/docker-sync/pull/475 breaking unison completely..

i was bearing with the PR for so many months, taken it in finally and blew it up like my gut feeling was already telling me. I will revert it and release 0.5.4 ASAP

EugenMayer avatar Mar 12 '18 18:03 EugenMayer

released 0.5.4 , fixes this issue

EugenMayer avatar Mar 12 '18 18:03 EugenMayer

Was it working in 0.5.4?

EugenMayer avatar Mar 30 '18 12:03 EugenMayer

@EugenMayer sorry, deleted my comment because i found the issue. The update to 0.5.7 not updated my local unison correctly. It works in 0.5.7 all fine :D

thisisablock avatar Mar 30 '18 12:03 thisisablock

docker-sync.yml in the issue description has a wrong option; it says max-attempts: 30 but that should be max_attempt: 30.

cweiske avatar Jul 09 '20 08:07 cweiske

@cweiske nice catch, willing to provide a docs PR :) ?

EugenMayer avatar Jul 09 '20 08:07 EugenMayer

https://github.com/EugenMayer/docker-sync-boilerplate/pull/14

cweiske avatar Jul 09 '20 08:07 cweiske

ok i see that the docs are correct about this https://docker-sync.readthedocs.io/en/latest/getting-started/configuration.html?highlight=attempts#docker-sync-yml

EugenMayer avatar Jul 09 '20 09:07 EugenMayer

@EugenMayer The documentation missing a "t" after max_attemp, I was making the config and suddenly realize it.

I made a PR (#752 ) to fix it. ( Unless the word doc is by intent to write "max_attemp"? )

flora8984461 avatar Sep 11 '20 22:09 flora8984461