{"record":{"id":"31dbbfadf66a6e1b","repo":"fluent/fluentd","slug":"section-label-name-appears-twice-31dbbf","errorCode":null,"errorMessage":"Section <label #{name}> appears twice","messagePattern":"Section <label #(.+?)> appears twice","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/static_config_analysis.rb","lineNumber":146,"sourceCode":"      end\n\n      if l > r\n        raise Fluent::ConfigError, \"greater first_worker_id<#{l}> than last_worker_id<#{r}> specified by <worker> directive is not allowed. Available multi worker assign syntax is <smaller_worker_id>-<greater_worker_id>\"\n      end\n\n      [l, r]\n    end\n\n    def static_label_analyse(conf)\n      ret = []\n      conf.elements(name: 'label').each do |e|\n        name = e.arg\n        if name.empty?\n          raise ConfigError, 'Missing symbol argument on <label> directive'\n        end\n\n        if @labels[name]\n          raise ConfigError, \"Section <label #{name}> appears twice\"\n        end\n\n        l = Elem::Label.new(name, e, static_filter_and_output_analyse(e))\n        ret << l\n        @labels[name] = l\n      end\n\n      ret\n    end\n\n    def static_filter_and_output_analyse(conf)\n      ret = []\n      conf.elements('filter', 'match').each do |e|\n        type = e['@type']\n        if type.nil? || type.empty?\n          raise Fluent::ConfigError, \"Missing '@type' parameter on <#{e.name}> directive\"\n        end\n","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/static_config_analysis.rb#L128-L164","documentation":"Error \"Section <label #{name}> appears twice\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/static_config_analysis.rb:146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd45c6e18dc7be33b5e5a0f0767bf46307ff5626","analyzedAt":"2026-08-21T16:22:07.332Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}