Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Skaffold doesn't deliver the error messages #9434

Closed
CsYang1248 opened this issue Jun 5, 2024 · 1 comment · Fixed by #9437
Closed

Skaffold doesn't deliver the error messages #9434

CsYang1248 opened this issue Jun 5, 2024 · 1 comment · Fixed by #9437

Comments

@CsYang1248
Copy link

CsYang1248 commented Jun 5, 2024

After some modifications on my codebase, I ran skaffold delete only to receive a simple 'exit status 1' without any informative message.
I escalated the verbosity to INFO and then to DEBUG but found no error message.

INFO[0000] Tags generated in 24.25042ms                  subtask=-1 task=Build
INFO[0000] Starting render...                            subtask=-1 task=DevLoop
exit status 1

I noticed that the error occurs after Starting render so I tried skaffold render and it finally displays the full error message (like below)
I think skaffold should give me the full error message.

The same happens when I run skaffold deploy. I get no error message until I try skaffold run, which fails for the same reason but provides the full error message.
According to my memory, the cause of the error was identical. So, maybe, skaffold just fails to deliver the error messages from the render for some commands?

Expected behavior

display full error message like below, which skaffold render provided

running [kubectl --context xxx kustomize overlays/yyy]
 - stdout: ""
 - stderr: "error: loading KV pairs: env source files: [zzz.env]: evalsymlink failure on 'zzz.env' : lstat zzz.env: no such file or directory\n"
 - cause: exit status 1

Actual behavior

displays only the status code

exit status 1

Information

  • Skaffold version: v2.9.0
  • Operating system:
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
  • Installed via:
  curl -Lo /tmp/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
  sudo install /tmp/skaffold /usr/local/bin/
  • Contents of skaffold.yaml:
    I think it's unnecessary

Steps to reproduce the behavior

I think it's unnecessary

The -vdebug didn't provide any useful information.

DEBU[0000] Running command: [kubectl --context xxx kustomize yyy]  subtask=0 task=Render
DEBU[0000] Running command: [tput colors]                subtask=-1 task=DevLoop
DEBU[0000] Command output: [256
]                        subtask=-1 task=DevLoop
exit status 1
@idsulik
Copy link
Contributor

idsulik commented Jun 6, 2024

Hi @CsYang1248
Thank you for the issue, fixed it here #9437

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants