-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping deploy due to sync error: copying files: didn't sync any files #3685
Comments
extra notes:
|
Got the same with Skaffold 1.4.0 |
Used the latest build.
The issue is still there.
|
Same problem over here. Downgrading skaffold to 1.2.0 helps for the time being. |
I have been experiencing problems with Skaffold Sync (v1.4.0). I found out the namespace in $KUBECONFIG affects Skaffold's ability to sync files. Skaffold sync will only work when the Kubernetes namespace in $KUBECONFIG, at the time of starting Skaffold, matches the namespace of the artifact (application) being deployed. See #1668 (comment) for details |
@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. |
@nkubala there is a sample project mentioned in my very first comment on this issue. |
@alexgalkin I ran your sample and saw those warnings:
Can you try to fix them and tell us if that fixes the sync? |
Closing because we haven't heard back. Please comment when you get a chance to update this. |
@tstromberg the issue still exists. Here’s instructions for reproducing it: #1668 (comment) That other issue was closed earlier for some reason but the problem is the same. I can open a new issue if that’s needed but i think all the required info is in #1668 (comment) |
Console WARN[2162] Skipping deploy due to sync error: copying files: running [kubectl --context gke_ticketing-dev-283015_europe-west2-a_ticketing-dev exec auth-depl-58cf6875b5-qb95n --namespace default -c auth -i -- tar xmf - -C / --no-same-owner]
- stdout: ""
- stderr: "Error from server: error dialing backend: ssh: rejected: connect failed (Connection refused)\n"
- cause: exit status 1 Config apiVersion: skaffold/v2alpha3
kind: Config
deploy:
kubectl:
manifests:
- ./infra/k8s/*
build:
# local:
# push: false
googleCloudBuild:
projectId: ticketing-dev-283015
artifacts:
- image: eu.gcr.io/ticketing-dev-283015/auth
context: auth
docker:
dockerfile: Dockerfile
sync:
manual:
- src: 'src/**/*.ts'
dest: .
|
This was resolved with: $ skaffold delete
$ skaffold dev |
From the error logs mentioned by @joekendal looks like this is possible dupe of #4966. I am going to close this issue since we tracking it there. |
I've having the same issue...
|
Exact same issue here, was on 1.35, downgraded to 1.20 and it's working now. Not sure which version "broke" it, but for me at least I can confirm it's worth trying out 1.20 to see if it fixes it for you. |
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
Steps to reproduce the behavior
skaffold dev --port-forward -v debug
Note: I have also switched context to "minikube"
What I actually see in the console:
The text was updated successfully, but these errors were encountered: