{"record":{"id":"afdfafa3dfd79500","repo":"fluent/fluentd","slug":"missing-symbol-argument-on-label-directive","errorCode":null,"errorMessage":"Missing symbol argument on <label> directive","messagePattern":"Missing symbol argument on <label> directive","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/root_agent.rb","lineNumber":170,"sourceCode":"              raise Fluent::ConfigError, \"<worker> section cannot have <#{elem.name}> directive\"\n            end\n            elem.set_target_worker_id(target_worker_id)\n          end\n        end\n        conf += e\n      end\n      conf.elements.delete_if{|e| e.name == 'worker'}\n\n      error_label_config = nil\n\n      # initialize <label> elements before configuring all plugins to avoid 'label not found' in input, filter and output.\n      label_configs = {}\n      conf.elements(name: 'label').each { |e|\n        if !Fluent::Engine.supervisor_mode && e.for_another_worker?\n          next\n        end\n        name = e.arg\n        raise ConfigError, \"Missing symbol argument on <label> directive\" if name.empty?\n        raise ConfigError, \"@ROOT for <label> is not permitted, reserved for getting root router\" if name == '@ROOT'\n\n        if name == ERROR_LABEL\n          error_label_config = e\n        else\n          add_label(name)\n          label_configs[name] = e\n        end\n      }\n      # Call 'configure' here to avoid 'label not found'\n      label_configs.each { |name, e| @labels[name].configure(e) }\n      setup_error_label(error_label_config) if error_label_config\n\n      super\n\n      setup_source_only_buffer_agent if @source_only_mode.enabled?\n\n      # initialize <source> elements","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/root_agent.rb#L152-L188","documentation":"Error \"Missing symbol argument on <label> directive\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/root_agent.rb:170 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"}