CanineHQ/canine · error

Helm uninstall failed with exit status #{exit_status}

Error message

Helm uninstall failed with exit status #{exit_status}

What it means

Error "Helm uninstall failed with exit status #{exit_status}" thrown in CanineHQ/canine.

Source

Thrown at app/services/k8/helm/client.rb:146

          history_max: history_max,
          create_namespace: create_namespace,
          skip_tls_verify: skip_tls,
          skip_schema_validation: skip_schema_validation
        )
        exit_status = runner.(command, envs: { "KUBECONFIG" => kubeconfig_file.path })
        raise "`#{command.join(' ')}` failed with exit status #{exit_status}" unless exit_status.success?
        exit_status
      end
    end
  end

  def uninstall(name, namespace: 'default')
    return StandardError.new("Can't uninstall helm chart if not connected") unless connected?

    K8::Kubeconfig.with_kube_config(connection.kubeconfig, skip_tls_verify: connection.cluster.skip_tls_verify) do |kubeconfig_file|
      command = %w[helm uninstall] + [ name, "--namespace", namespace ]
      exit_status = runner.(command, envs: { "KUBECONFIG" => kubeconfig_file.path })
      raise "Helm uninstall failed with exit status #{exit_status}" unless exit_status.success?
      exit_status
    end
  rescue Cli::CommandFailedError => e
    # If the release doesn't exist, that's fine - the desired state is achieved
    if runner.respond_to?(:output) && runner.output.include?("not found")
      Rails.logger.info("Helm release '#{name}' not found in namespace '#{namespace}', skipping uninstall")
      return nil
    end
    raise e
  end

  def self.get_default_values_yaml(package_id, version)
    response = HTTParty.get(
      "https://artifacthub.io/api/v1/packages/#{package_id}/#{version}/values"
    )

    if response.success?
      response.parsed_response

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at app/services/k8/helm/client.rb:146 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23). Data as JSON: /api/errors/acf09a05cd6c0b8b. Report an issue: GitHub.