fluent/fluentd · error · ArgumentError

#{self.name}: config_argument called twice

Error message

#{self.name}: config_argument called twice

What it means

Error "#{self.name}: config_argument called twice" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/config/configure_proxy.rb:309

        end

        if opts[:deprecated] && opts[:obsoleted]
          raise ArgumentError, "#{name}: both of deprecated and obsoleted cannot be specified at once"
        end

        [name, block, opts]
      end

      def configured_in(section_name)
        if @configured_in_section
          raise ArgumentError, "#{self.name}: configured_in called twice"
        end
        @configured_in_section = section_name.to_sym
      end

      def config_argument(name, type = nil, **kwargs, &block)
        if @argument
          raise ArgumentError, "#{self.name}: config_argument called twice"
        end
        name, block, opts = parameter_configuration(name, type, **kwargs, &block)

        @argument = [name, block, opts]
        name
      end

      def config_param(name, type = nil, **kwargs, &block)
        name, block, opts = parameter_configuration(name, type, **kwargs, &block)

        if @current_description
          config_set_desc(name, @current_description)
          @current_description = nil
        end

        @sections.delete(name)
        @params[name] = [block, opts]
        name

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/config/configure_proxy.rb:309 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of fluent/fluentd@dd45c6e18d (2026-08-21). Data as JSON: /api/errors/dde35438495cd672. Report an issue: GitHub.