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

minikube logs not outputing to file when using --last-start-only #19931

Open
mattisafur opened this issue Nov 10, 2024 · 0 comments
Open

minikube logs not outputing to file when using --last-start-only #19931

mattisafur opened this issue Nov 10, 2024 · 0 comments

Comments

@mattisafur
Copy link

What Happened?

When running minikube logs --file log.txt --last-start-only output is printer to the terminal and an empty file is created.

output of minikube logs --file log.txt --last-start-only --alsologtostderr:

I1110 17:39:34.383805   16647 out.go:345] Setting OutFile to fd 1 ...
I1110 17:39:34.383994   16647 out.go:358] Setting ErrFile to fd 2...
I1110 17:39:34.384149   16647 root.go:338] Updating PATH: /home/<username>/.minikube/bin
I1110 17:39:34.392920   16647 out.go:177]

I1110 17:39:34.400630   16647 out.go:177] ==> Last Start <==
==> Last Start <==
I1110 17:39:34.419332   16647 out.go:177] Log file created at: 2024/11/10 17:12:27
Running on machine: <hostname>
Binary: Built with gc go1.22.5 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I1110 17:12:27.286943   16010 out.go:345] Setting OutFile to fd 1 ...
I1110 17:12:27.287120   16010 out.go:358] Setting ErrFile to fd 2...
I1110 17:12:27.287271   16010 root.go:338] Updating PATH: /home/<username>/.minikube/bin

Log file created at: 2024/11/10 17:12:27
Running on machine: <hostname>
Binary: Built with gc go1.22.5 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I1110 17:12:27.286943   16010 out.go:345] Setting OutFile to fd 1 ...
I1110 17:12:27.287120   16010 out.go:358] Setting ErrFile to fd 2...
I1110 17:12:27.287271   16010 root.go:338] Updating PATH: /home/<username>/.minikube/bin

Tested on Ubuntu running on WSL with docker driver.

output of minikube version:

minikube version: v1.34.0
commit: 210b148df93a80eb872ecbeb7e35281b3c582c61

Attach the log file

Log file is not attached as the file does not contain any information about the logs command.

Operating System

Ubuntu

Driver

Docker

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

No branches or pull requests

1 participant