ytti/oxidized · error · ArgumentError

Exec: configuration invalid: invalid cmd value

Error message

Exec: configuration invalid: invalid cmd value

What it means

Error "Exec: configuration invalid: invalid cmd value" thrown in ytti/oxidized.

Source

Thrown at lib/oxidized/hook/exec.rb:22

  def initialize
    super
    @timeout = 60
    @async = false
  end

  def validate_cfg!
    # Syntax check
    if cfg.has_key? "timeout"
      @timeout = cfg.timeout
      raise "invalid timeout value" unless @timeout.is_a?(Integer) &&
                                           @timeout.positive?
    end

    @async = !!cfg.async if cfg.has_key? "async"

    if cfg.has_key? "cmd"
      @cmd = cfg.cmd
      raise "invalid cmd value" unless @cmd.is_a?(String) || @cmd.is_a?(Array)
    end
  rescue RuntimeError => e
    raise ArgumentError,
          "#{self.class.name}: configuration invalid: #{e.message}"
  end

  def run_hook(ctx)
    env = make_env ctx
    logger.debug "Execute: #{@cmd.inspect}"
    th = Thread.new do
      run_cmd! env
    rescue StandardError => e
      raise e unless @async
    end
    th.join unless @async
  end

  def run_cmd!(env)

View on GitHub (pinned to 687ed4262d)

When it happens

Trigger: Thrown at lib/oxidized/hook/exec.rb:22 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ytti/oxidized@687ed4262d (2026-08-23). Data as JSON: /api/errors/bdf59af0fdcad99e. Report an issue: GitHub.