skaffold: Skipping deploy due to sync error: copying files: didn't sync any files

Expected behavior

Files should be synced to running container

Actual behavior

Files are not updated; receiving “Skipping deploy due to sync error: copying files: didn’t sync any files” warning message

Information

  • Skaffold version: v1.3.1
  • Operating system: macOS Catalina 10.15.3 (the latest)
  • Contents of skaffold.yaml:
apiVersion: skaffold/v2alpha3
kind: Config
metadata:
  name: hello-world
build:
  artifacts:
  - image: ananthrs/hello-k8s
    context: .
    sync:
      infer:
      - '**/*.js'
  local:
    push: false
  tagPolicy:
    envTemplate:
      template: "{{.IMAGE_NAME}}:latest"
deploy:
  kubeContext: minikube
  helm:
    releases:
    - name: hello-world-release
      chartPath: helm/hello-k8s
      namespace: demo
      setValueTemplates:
        image.tag: "latest"
      recreatePods: true

Steps to reproduce the behavior

  1. https://github.com/alexgalkin/k8s-demo the whole project for testing is here
  2. skaffold dev --port-forward -v debug

Note: I have also switched context to “minikube”

What I actually see in the console:

Watching for changes...
DEBU[0043] Change detected notify.Write: "/Users/alexandergalkin/projects/ptv/alexgalkin/k8s-demo/src/server.js" 
DEBU[0044] Found dependencies for dockerfile: [{src/package-lock.json /usr/src/app true} {src/package.json /usr/src/app true} {src/server.js /usr/src/app false}] 
INFO[0044] files modified: [src/server.js]              
DEBU[0044] Found dependencies for dockerfile: [{src/package-lock.json /usr/src/app true} {src/package.json /usr/src/app true} {src/server.js /usr/src/app false}] 
Syncing 1 files for ananthrs/hello-k8s:001835f39386796c0623046c9a434a5902ff04d1cd4b02c9447d99c0a0380985
INFO[0044] Copying files: map[src/server.js:[/usr/src/app]] to ananthrs/hello-k8s:001835f39386796c0623046c9a434a5902ff04d1cd4b02c9447d99c0a0380985 
DEBU[0044] getting client config for kubeContext: `minikube` 
WARN[0044] Skipping deploy due to sync error: copying files: didn't sync any files 
Watching for changes...

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 15 (4 by maintainers)

Most upvoted comments

@pre thanks for the investigation, and sorry there hasn’t been any movement here. this does indeed look like a namespacing issue based on your repro’s, but unfortunately we haven’t had any time on the team to investigate it.

would you be able to provide a small sample project along with a kubeconfig that we can use to repro?

also as a side note, we might want to consider handling this more gracefully in skaffold, i.e. continuing with the deploy even when we hit a sync error.