{"record":{"id":"542635d7a0ca1ba2","repo":"EugenMayer/docker-sync","slug":"sync-user-is-no-longer-supported-since-it-ise-no","errorCode":null,"errorMessage":"sync_user is no longer supported, since it ise no needed, use sync_userid only please","messagePattern":"sync_user is no longer supported, since it ise no needed, use sync_userid only please","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/docker-sync/sync_strategy/unison.rb","lineNumber":164,"sourceCode":"      def sync_prefer\n        sync_host_port = get_host_port(get_container_name, UNISON_CONTAINER_PORT)\n\n        case @options.fetch('sync_prefer', 'default')\n        when 'default' then \"-prefer '#{@options['src']}' -copyonconflict\" # thats our default, if nothing is set\n        when 'src' then \"-prefer '#{@options['src']}'\"\n        when 'dest' then \"-prefer 'socket://#{@options['sync_host_ip']}:#{sync_host_port}'\"\n        else \"-prefer '#{@options['sync_prefer']}'\"\n        end\n      end\n\n      def start_container\n        say_status 'ok', \"Starting unison for sync #{@sync_name}\", :white\n\n        container_name = get_container_name\n        volume_name = get_volume_name\n        env = {}\n        if @options.key?('sync_user')\n          raise 'sync_user is no longer supported, since it ise no needed, use sync_userid only please'\n        end\n\n        env['UNISON_SRC'] = '-socket 5000'\n        env['UNISON_DEST'] = '/app_sync'\n\n        env['MONIT_ENABLE'] = 'false'\n        env['MONIT_INTERVAL'] = ''\n        env['MONIT_HIGH_CPU_CYCLES'] = ''\n\n        env['UNISON_ARGS'] = ''\n        ignore_strings = expand_ignore_strings\n        env['UNISON_ARGS'] << ignore_strings.join(' ')\n        env['UNISON_WATCH_ARGS'] = ''\n\n        env['MAX_INOTIFY_WATCHES'] = @options['max_inotify_watches'] if @options.key?('max_inotify_watches')\n        if @options['sync_userid'] == 'from_host'\n          env['OWNER_UID'] = Process.uid\n        else","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/EugenMayer/docker-sync/blob/4eab6de164d44c724c739c17bd574efa9008aae1/lib/docker-sync/sync_strategy/unison.rb#L146-L182","documentation":"Error \"sync_user is no longer supported, since it ise no needed, use sync_userid only please\" thrown in EugenMayer/docker-sync.","triggerScenarios":"Thrown at lib/docker-sync/sync_strategy/unison.rb:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the deprecated sync_user option from docker-sync.yml","Use sync_userid instead, e.g. sync_userid: 'from_host' to map to your host user id"],"exampleFix":"sync_options:\n  sync_userid: 'from_host'","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4eab6de164d44c724c739c17bd574efa9008aae1","analyzedAt":"2026-08-23T10:20:11.101Z","schemaVersion":2},"datasetVersion":"2026-08-23T13:39:53.451Z"}