Skip to content
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

skaffold dev: FATA[0002] watching files for deployer: listing files: unable to stat file : stat : no such file or directory #968

Closed
jfrndz opened this issue Sep 11, 2018 · 3 comments
Labels
kind/bug Something isn't working

Comments

@jfrndz
Copy link

jfrndz commented Sep 11, 2018

This may be a duplicate of #961, but I am seeing this issue independently of basel artifacts or helm deployments so seemed like a good idea to report as a new issue.

Expected behavior

I should be able to use skaffold dev to watch my source repo directory and automatically deploy changes.

Actual behavior

skaffold dev immediately exits with an error. I am able to deploy changes manually using skaffold run. This seems to happen consistently with every project I've tried.

Here's some console output when I try this with the setup in examples/helm-deployment:

$ skaffold run
Starting build...
Found [minikube] context, using local docker daemon.
Building [gcr.io/k8s-skaffold/skaffold-helm]...
2018/09/11 10:13:11 No matching credentials found for index.docker.io, falling back on anonymous
Sending build context to Docker daemon  2.048kB
Step 1/1 : FROM nginx:stable
stable: Pulling from library/nginx
802b00ed6f79: Pulling fs layer
ed418bf9bf60: Pulling fs layer
94fedb7de3b4: Pulling fs layer
94fedb7de3b4: Verifying Checksum
94fedb7de3b4: Download complete
802b00ed6f79: Verifying Checksum
802b00ed6f79: Download complete
ed418bf9bf60: Verifying Checksum
ed418bf9bf60: Download complete
802b00ed6f79: Pull complete
ed418bf9bf60: Pull complete
94fedb7de3b4: Pull complete
Digest: sha256:2fa968a4b4013c2521115f6dde277958cf03229b95f13a0c8df831d3eca1aa61
Status: Downloaded newer image for nginx:stable
 ---> 86898218889a
Successfully built 86898218889a
Successfully tagged 7f1dc414a8d3350fda5f71e15321cb98:latest
Build complete in 9.631506389s
Starting deploy...
Error: release: "skaffold-helm" not found
Helm release skaffold-helm not installed. Installing...
No requirements found in skaffold-helm/charts.
NAME:   skaffold-helm
LAST DEPLOYED: Tue Sep 11 10:13:19 2018
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/Service
NAME                         TYPE       CLUSTER-IP     EXTERNAL-IP  PORT(S)  AGE
skaffold-helm-skaffold-helm  ClusterIP  10.103.26.183  <none>       80/TCP   1s

==> v1beta1/Deployment
NAME           DESIRED  CURRENT  UP-TO-DATE  AVAILABLE  AGE
skaffold-helm  1        1        1           0          1s

==> v1/Pod(related)
NAME                            READY  STATUS             RESTARTS  AGE
skaffold-helm-594bb494b9-69t66  0/1    ContainerCreating  0         0s


Deploy complete in 933.794901ms

$ skaffold dev
Cleaning up...
release "skaffold-helm" deleted
Cleanup complete in 1.282362725s
FATA[0002] watching files for deployer: listing files: unable to stat file : stat : no such file or directory 

Information

  • Skaffold version: v0.13.0
  • Operating system: macOS High Sierra 10.13.6
  • Contents of skaffold.yaml: examples/helm-deployment/skaffold.yml

Steps to reproduce the behavior

  1. Clone this repo and go to examples/helm-deployment
  2. skaffold run successfully builds and deploys the app
  3. skaffold dev exits with error
@jfrndz
Copy link
Author

jfrndz commented Sep 11, 2018

#930 seems to describe a similar issue, so I set up a dummy values file to use as a valuesFilePath in skaffold.yaml. Once configured, skaffold dev works as expected.

$ cat helm-skaffold-values.yaml 
# Need this to prevent a bug
statWorkaround: true

@balopat
Copy link
Contributor

balopat commented Sep 11, 2018

Yes, #930 seems to be a fix for this, please stay tuned.

@r2d4 r2d4 added the kind/bug Something isn't working label Sep 15, 2018
@dgageot
Copy link
Contributor

dgageot commented Sep 25, 2018

Fixed by #930

@dgageot dgageot closed this as completed Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants