fluent/fluentd · error · ArgumentError

#{name}: both of deprecated and obsoleted cannot be specifie

Error message

#{name}: both of deprecated and obsoleted cannot be specified at once

What it means

Error "#{name}: both of deprecated and obsoleted cannot be specified at once" thrown in fluent/fluentd.

Source

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

        if type == :enum
          if !opts.has_key?(:list) || !opts[:list].is_a?(Array) || opts[:list].empty? || !opts[:list].all?(Symbol)
            raise ArgumentError, "#{name}: enum parameter requires :list of Symbols"
          end
        end
        option_value_type!(name, opts, :symbolize_keys, type: :boolean)
        option_value_type!(name, opts, :value_type, Symbol) # hash, array
        option_value_type!(name, opts, :skip_accessor, type: :boolean)

        if opts.has_key?(:default)
          config_set_default(name, opts[:default])
        end

        if opts.has_key?(:desc)
          config_set_desc(name, opts[:desc])
        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)

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/config/configure_proxy.rb:294 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/76ffa87d3dd08faa. Report an issue: GitHub.