EugenMayer/docker-sync · error

sync_user is no longer supported, since it ise no needed, us

Error message

sync_user is no longer supported, since it ise no needed, use sync_userid only please

What it means

Error "sync_user is no longer supported, since it ise no needed, use sync_userid only please" thrown in EugenMayer/docker-sync.

Source

Thrown at lib/docker-sync/sync_strategy/unison.rb:164

      def sync_prefer
        sync_host_port = get_host_port(get_container_name, UNISON_CONTAINER_PORT)

        case @options.fetch('sync_prefer', 'default')
        when 'default' then "-prefer '#{@options['src']}' -copyonconflict" # thats our default, if nothing is set
        when 'src' then "-prefer '#{@options['src']}'"
        when 'dest' then "-prefer 'socket://#{@options['sync_host_ip']}:#{sync_host_port}'"
        else "-prefer '#{@options['sync_prefer']}'"
        end
      end

      def start_container
        say_status 'ok', "Starting unison for sync #{@sync_name}", :white

        container_name = get_container_name
        volume_name = get_volume_name
        env = {}
        if @options.key?('sync_user')
          raise 'sync_user is no longer supported, since it ise no needed, use sync_userid only please'
        end

        env['UNISON_SRC'] = '-socket 5000'
        env['UNISON_DEST'] = '/app_sync'

        env['MONIT_ENABLE'] = 'false'
        env['MONIT_INTERVAL'] = ''
        env['MONIT_HIGH_CPU_CYCLES'] = ''

        env['UNISON_ARGS'] = ''
        ignore_strings = expand_ignore_strings
        env['UNISON_ARGS'] << ignore_strings.join(' ')
        env['UNISON_WATCH_ARGS'] = ''

        env['MAX_INOTIFY_WATCHES'] = @options['max_inotify_watches'] if @options.key?('max_inotify_watches')
        if @options['sync_userid'] == 'from_host'
          env['OWNER_UID'] = Process.uid
        else

View on GitHub (pinned to 4eab6de164)

Solutions

  1. Remove the deprecated sync_user option from docker-sync.yml
  2. Use sync_userid instead, e.g. sync_userid: 'from_host' to map to your host user id

Example fix

sync_options:
  sync_userid: 'from_host'

When it happens

Trigger: Thrown at lib/docker-sync/sync_strategy/unison.rb:164 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of EugenMayer/docker-sync@4eab6de164 (2026-08-23). Data as JSON: /api/errors/542635d7a0ca1ba2. Report an issue: GitHub.