Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the consultup domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/portal/wp-includes/functions.php on line 6121
Failed to execute the action: exit status 1: Error: UPGRADE FAILED: “” has no deployed releases – University of Highlands and Islands

Failed to execute the action: exit status 1: Error: UPGRADE FAILED: “<app name>” has no deployed releases

You are here:
< All Topics

If you get this command its most likely that you have an issue with your Helm deployment.yaml file. It is basically saying that no value has been set for the template value app.

Location: chart//templates/deployment.yaml

Fix:

Add in a new object called selector with has your app name in.
For example for the app ‘nodehelloworld’:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: "{{  .Chart.Name }}-deployment"
  labels:
    chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
    app: "{{  .Chart.Name }}"
spec:
  replicas: {{ .Values.replicaCount }}
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 0
      maxSurge: 1
  revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
  # BEGIN PATCH
  selector:
    matchLabels:
        app: nodehelloworld
  # END PATCH
  template:
    metadata:
      labels:
        app: "{{  .Chart.Name }}"
        version: "current"
...

Leave a Reply

Table of Contents