{"record":{"id":"acf09a05cd6c0b8b","repo":"CanineHQ/canine","slug":"helm-uninstall-failed-with-exit-status-exit-stat","errorCode":null,"errorMessage":"Helm uninstall failed with exit status #{exit_status}","messagePattern":"Helm uninstall failed with exit status #(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/services/k8/helm/client.rb","lineNumber":146,"sourceCode":"          history_max: history_max,\n          create_namespace: create_namespace,\n          skip_tls_verify: skip_tls,\n          skip_schema_validation: skip_schema_validation\n        )\n        exit_status = runner.(command, envs: { \"KUBECONFIG\" => kubeconfig_file.path })\n        raise \"`#{command.join(' ')}` failed with exit status #{exit_status}\" unless exit_status.success?\n        exit_status\n      end\n    end\n  end\n\n  def uninstall(name, namespace: 'default')\n    return StandardError.new(\"Can't uninstall helm chart if not connected\") unless connected?\n\n    K8::Kubeconfig.with_kube_config(connection.kubeconfig, skip_tls_verify: connection.cluster.skip_tls_verify) do |kubeconfig_file|\n      command = %w[helm uninstall] + [ name, \"--namespace\", namespace ]\n      exit_status = runner.(command, envs: { \"KUBECONFIG\" => kubeconfig_file.path })\n      raise \"Helm uninstall failed with exit status #{exit_status}\" unless exit_status.success?\n      exit_status\n    end\n  rescue Cli::CommandFailedError => e\n    # If the release doesn't exist, that's fine - the desired state is achieved\n    if runner.respond_to?(:output) && runner.output.include?(\"not found\")\n      Rails.logger.info(\"Helm release '#{name}' not found in namespace '#{namespace}', skipping uninstall\")\n      return nil\n    end\n    raise e\n  end\n\n  def self.get_default_values_yaml(package_id, version)\n    response = HTTParty.get(\n      \"https://artifacthub.io/api/v1/packages/#{package_id}/#{version}/values\"\n    )\n\n    if response.success?\n      response.parsed_response","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/CanineHQ/canine/blob/ba4ee3968d8513ee27d8583fbd3e854a8dd053f3/app/services/k8/helm/client.rb#L128-L164","documentation":"Error \"Helm uninstall failed with exit status #{exit_status}\" thrown in CanineHQ/canine.","triggerScenarios":"Thrown at app/services/k8/helm/client.rb:146 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":"ba4ee3968d8513ee27d8583fbd3e854a8dd053f3","analyzedAt":"2026-08-23T17:49:27.834Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}