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

DevLoop unexpected EOF error #7919

Open
ArthurName opened this issue Oct 6, 2022 · 4 comments
Open

DevLoop unexpected EOF error #7919

ArthurName opened this issue Oct 6, 2022 · 4 comments
Labels
area/deploy kind/bug Something isn't working priority/p2 May take a couple of releases

Comments

@ArthurName
Copy link

Expected behavior

No EOF error.

Actual behavior

I get this error when running Skaffold:

[foo-backend] error: unexpected EOF
WARN[0659] exit status 1                                 subtask=-1 task=DevLoop

It happens exactly when the last pod reaches AGE 600 seconds, as reported by K9s, i.e. exactly 600 seconds after the environment is 100 % up and running.

This is regardless of Skaffold mode dev or run (which is a bit confusing, since I thought DevLoop was related to dev mode only; correct me if I'm wrong).

Furthermore, also in both cases, after the error, the output tail stops presenting.

The same error message is mentioned by user Mrhoho in issue 6072 but I'm not too sure it's about open files or file watchers; again this error is reported even in run mode, where as I understand file watching is not enabled.

  1. Why EOF?
  2. Why after 600 seconds?
  3. Which file has reached EOF? What can I do to reveal which file it is?
  4. Which process exits with status 1 here?
  5. How is DevLoop involved when executing skaffold run?

Information

apiVersion: skaffold/v2beta21
kind: Config
metadata:
  name: foo-namespaces
profiles:
- name: dev
  deploy:
    kubeContext: foo-dev
    statusCheckDeadlineSeconds: 600
    kubectl:
      manifests:
        - kubernetes/base/foo/foo-namespaces.yaml

---

apiVersion: skaffold/v2beta21
kind: Config
requires:
  - configs: 
      - "foo-namespaces"
    activeProfiles: 
      - name: dev
        activatedBy:
          - "dev"
  - configs:
      - multus-cni 
    path: skaffold-multus-cni.yaml
    activeProfiles: 
    - name: dev-all-services
      activatedBy:
      - "dev"
  - configs:
      - argo
    path: skaffold-argo.yaml
    activeProfiles: 
    - name: dev-all-services
      activatedBy:
      - "dev"
  - configs:
      - metallb 
    path: skaffold-metallb.yaml
    activeProfiles: 
    - name: dev-all-services
      activatedBy:
      - "dev"
  - configs:
      - foo
    path: skaffold-foo.yaml
metadata:
  name: foo-api-dev

Steps to reproduce the behavior

  1. Either of these commands:
    a) skaffold dev -p dev -m foo-api-dev --trigger=manual --cleanup=true
    b) skaffold run -p dev -m foo-api-dev --tail
  2. Wait 600 seconds.
@rstoermer
Copy link

Same error here!

@ArthurName
Copy link
Author

Same error here!

@rstoermer Are you using k3d?

@aaron-prindle aaron-prindle added kind/bug Something isn't working area/deploy priority/p1 High impact feature/bug. priority/p2 May take a couple of releases and removed priority/p1 High impact feature/bug. labels Nov 19, 2022
@aaron-prindle aaron-prindle modified the milestone: v2.1.0 Nov 19, 2022
@aaron-prindle
Copy link
Contributor

aaron-prindle commented Dec 5, 2022

@rstoermer are you also using k3d here?

I haven't had a chance to investigate this more deeply (setup the repro) but the 600s is likely related to Skaffold's statusCheckDeadlineSeconds, see the docs on this value here:
https://skaffold.dev/docs/pipeline-stages/status-check/#configuring-timeout-for-status-check

Related code where the default value is set:
https://github.com/GoogleContainerTools/skaffold/blob/main/pkg/skaffold/kubernetes/status/status_check.go#L54-L55
https://github.com/GoogleContainerTools/skaffold/blob/main/pkg/skaffold/kubernetes/status/status_check.go#L66

@aaron-prindle aaron-prindle modified the milestones: v2.1.0, v2.2.0 Dec 13, 2022
@aaron-prindle aaron-prindle removed this from the v2.2.0 milestone Jan 23, 2023
@dregin
Copy link

dregin commented Jul 17, 2024

I see the same behavior using Skaffold with EKS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy kind/bug Something isn't working priority/p2 May take a couple of releases
Projects
None yet
Development

No branches or pull requests

4 participants