{"record":{"id":"0db069d2d1adcbf0","repo":"EugenMayer/docker-sync","slug":"sync-user-is-no-longer-supported-since-it-is-not","errorCode":null,"errorMessage":"sync_user is no longer supported, since it is not needed. Use sync_userid only please","messagePattern":"sync_user is no longer supported, since it is not needed\\. Use sync_userid only please","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/docker-sync/sync_strategy/native_osx.rb","lineNumber":40,"sourceCode":"        # if a custom image is set, apply it\n        @docker_image = @options.key?('image') ? @options['image'] : 'ghcr.io/eugenmayer/unison:2.52.1-4.12.0'\n\n        begin\n          Dependencies::Docker.ensure!\n        rescue StandardError => e\n          say_status 'error', \"#{@sync_name} has been configured to sync with native docker volume, but docker is not found\", :red\n          say_status 'error', e.message, :red\n          exit 1\n        end\n      end\n\n      def start_container\n        say_status 'ok', \"Starting native_osx for sync #{@sync_name}\", :white\n        container_name = get_container_name\n        host_sync_src = File.realpath(@options['src'])\n        volume_app_sync_name = @sync_name\n        env = {}\n        raise 'sync_user is no longer supported, since it is not needed. Use sync_userid only please' if @options.key?('sync_user')\n\n        env['UNISON_SRC'] = '/host_sync'\n        env['UNISON_DEST'] = '/app_sync'\n\n        env['UNISON_ARGS'] = ''\n        if @options.key?('sync_args')\n          sync_args = @options['sync_args']\n          sync_args = @options['sync_args'].join(' ') if @options['sync_args'].kind_of?(Array)\n          env['UNISON_ARGS'] = sync_args\n        end\n\n        ignore_strings = expand_ignore_strings\n        env['UNISON_ARGS'] << ' ' << ignore_strings.join(' ')\n        env['UNISON_ARGS'] << ' ' << sync_prefer\n        env['UNISON_ARGS'] << ' -numericids -auto -batch'\n        env['UNISON_WATCH_ARGS'] = '-repeat watch'\n\n        env['MAX_INOTIFY_WATCHES'] = @options['max_inotify_watches'] if @options.key?('max_inotify_watches')","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/EugenMayer/docker-sync/blob/4eab6de164d44c724c739c17bd574efa9008aae1/lib/docker-sync/sync_strategy/native_osx.rb#L22-L58","documentation":"Error \"sync_user is no longer supported, since it is not needed. Use sync_userid only please\" thrown in EugenMayer/docker-sync.","triggerScenarios":"Thrown at lib/docker-sync/sync_strategy/native_osx.rb:40 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"}