Max attempts not respected in 0.5.7
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
must be related to the new unison image i suppose, thanks for reporting
There is problem with ENV variables, missing UNISON_ prefix
@pajon could you elaborate a little bit?
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
released 0.5.4 , fixes this issue
Was it working in 0.5.4?
@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
docker-sync.yml in the issue description has a wrong option; it says max-attempts: 30 but that should be max_attempt: 30.
@cweiske nice catch, willing to provide a docs PR :) ?
https://github.com/EugenMayer/docker-sync-boilerplate/pull/14
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 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"? )