cancel
Showing results for 
Search instead for 
Did you mean: 

SAP KYMA : Error - upstream connect error or disconnect/reset before headers.

0 Kudos

Dear Team,

I have deployed my SAP CAP (Node.js) full stack application to SAP Kyma using Helm charts. But, After the successfull deployment I'm getting "upstream connect error or disconnect/reset before headers. retried and the latest reset reason: connection failure, transport failure reason: delayed connect error: 111" error when I'm access the service from UI5 application.

deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.services.srv.name }}
  labels:
    {{- include "app.labels" . | nindent 4 }}
    app: {{ .Values.services.srv.name }}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ .Values.services.srv.name }}
  template:
    metadata:
      labels:
        app: {{ .Values.services.srv.name }}
    spec:
      containers:
        - image: "{{ .Values.dockerID }}/{{ .Values.services.srv.image.repository }}:{{ .Values.services.srv.image.tag }}"
          name: {{ .Values.services.srv.name }}
          imagePullPolicy: {{ .Values.services.srv.image.pullPolicy }}
          resources:
            limits:
              memory: 512Mi
              cpu: "1"
            requests:
              memory: 256Mi
              cpu: "0.2"
          ports:
            - name: http
              containerPort: {{ .Values.services.srv.image.port }}
          env:
            - name: SERVICE_BINDING_ROOT
              value: /bindings
          envFrom:
            - configMapRef:
                name: {{ .Values.services.srv.name }}
            - secretRef:
                name: {{ .Values.services.srv.image.hdiSecret }}
          volumeMounts:
            - name: capfullstack-uaa
              mountPath: "/bindings/capfullstack-uaa"
              readOnly: true
            - name: capfullstack-dest
              mountPath: "/bindings/capfullstack-dest"
              readOnly: true
      imagePullSecrets:
        - name: {{ .Values.services.srv.image.imagePullSecretName }}
      volumes:
        - name: capfullstack-uaa
          secret:
            secretName: {{ .Values.services.uaa.bindingSecretName }}
        - name: capfullstack-dest
          secret:
            secretName: {{ .Values.services.dest.bindingSecretName }}<br>

Service.yaml:

Service.yaml:

apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.services.srv.name }}
  labels:
    {{- include "app.labels" . | nindent 4 }}
    app: {{ .Values.services.srv.name }}
spec:
  ports:
    - name: http
      port: 4004
      targetPort: 4004
      protocol: TCP
  selector:
    app: {{ .Values.services.srv.name }}<br>
gabbi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ranjith,

Could you please share how your api rule looks like (yaml file)?

Thanks,

Gaurav

View Entire Topic
jhl
Associate
Associate
0 Kudos

Hi,

Has this problem been resolved?