Skip to content

6.3.16/6.3.17 cause a consistent exit code 139 on sync #3001

@JacobWeyer

Description

@JacobWeyer

What happened?
Whenever my developers try to connect to our cluster using 6.3.16; they see devspace start to sync and then throw a sync error, connection lost exit code 139

What did you expect to happen instead?
We expect the standard connection

How can we reproduce the bug? (as minimally and precisely as possible)
Unsure what the specifics are causing this breakage

My devspace.yaml:

version: v2beta1
name: product-api
pipelines:
  dev:
    run: start_dev product-api
  # devspace run-pipeline temporal
  temporal: |-
    start_dev product-api-worker
  both: |-
    start_dev product-api
    start_dev product-api-worker
dev:
 product-api:
    labelSelector:
      app.kubernetes.io/name: product-api-backend
      app.kubernetes.io/instance: product-api
    container: backend
    devImage: 11111.dkr.ecr.us-east-1.amazonaws.com/product-api:latest
    env:
      - name: HUSKY
        value: '0'
      - name: NODE_ENV
        value: 'development'
      - name: APP_SECRET_KEY
        value: 'asdf'
    command:
      - npm
    args:
      - run
      - start-dev
    patches:
      - op: replace
        path: metadata.annotations['karpenter.sh/do-not-disrupt']
        value: 'true'
    terminal:
      command: ./devspace_start.sh
      disableReplace: true
    sync:
      - path: ./
        startContainer: true
        printLogs: true
        excludePaths:
          - node_modules/*
          - dist/*
        onUpload:
          exec:
            - command: npm install --include=dev
              onChange:
                - ./package.json
                - ./package-lock.json
              name: npm install
    ports:
      - port: '9230'
    # Node debug and be a memory hog so we can increase the memory
    # This may need tweaked if you keep running out of memory
    resources:
      limits:
        memory: 3Gi
      requests:
        cpu: 0.5
        memory: 3Gi

 product-api-worker:
    labelSelector:
      app.kubernetes.io/name: product-api-worker
      app.kubernetes.io/instance: product-api
    container: worker
    devImage: 1111.dkr.ecr.us-east-1.amazonaws.com-product-api:latest
    env:
      - name: HUSKY
        value: '0'
      - name: NODE_ENV
        value: 'development'
      - name: APP_SECRET_KEY
        value: 'dfasdf'
      - name: USE_ENV
        value: 'true'
    command:
      - npm
    args:
      - run
      - start-worker:k8s
    patches:
      - op: replace
        path: metadata.annotations['karpenter.sh/do-not-disrupt']
        value: 'true'
    terminal:
      command: ./devspace_start.sh
      disableReplace: true
    sync:
      - path: ./
        startContainer: true
        printLogs: true
        excludePaths:
          - node_modules/*
          - dist/*
        onUpload:
          exec:
            - command: npm install --include=dev
              onChange:
                - ./package.json
                - ./package-lock.json
              name: npm install
    ports:
      - port: '9230'
    # Node debug and be a memory hog so we can increase the memory
    # This may need tweaked if you keep running out of memory
    resources:
      limits:
        memory: 3Gi
      requests:
        cpu: 0.5
        memory: 3Gi

Local Environment:

  • DevSpace Version: 6.3.16
  • Operating System: mac
  • ARCH of the OS: ARM64

Kubernetes Cluster:

  • Cloud Provider: aws
  • Kubernetes Version: [use kubectl version]
    Client Version: v1.33.3
    Kustomize Version: v5.6.0
    Server Version: v1.31.10-eks-931bdca

Anything else we need to know?

user@JYJL7XX1K4 product-api % devspace dev
info Using namespace 'user'
info Using kube context 'workstation'
dev:product-api Waiting for pod to become ready...
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:0/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:1/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: Init:1/2
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: PodInitializing
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: PodInitializing
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: PodInitializing
dev:product-api DevSpace is waiting, because Pod product-api-backend-devspace-586cf8bbfc-p68b4 has status: PodInitializing
dev:product-api Selected pod product-api-backend-devspace-586cf8bbfc-p68b4
dev:product-api ports Port forwarding started on: 9230 -> 9230
dev:product-api sync  Inject devspacehelper...
dev:product-api sync  Start syncing
dev:product-api sync  Sync started on: ./ <-> ./
dev:product-api sync  Waiting for initial sync to complete
dev:product-api sync  Sync Error on /Users/user/Project/product-api: Sync - connection lost to pod user/product-api-backend-devspace-586cf8bbfc-p68b4:  command terminated with exit code 139
dev:product-api sync  Initial sync completed
start_dev: initial sync: Sync - connection lost to pod user/product-api-backend-devspace-586cf8bbfc-p68b4:  command terminated with exit code 139
fatal exit status 1

On 6.3.17 the error is now initial sync: Upstream Sync - connection lost to pod

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions