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

No output to last start file with -o json passed to minikube start #13925

Closed
spowelljr opened this issue Apr 7, 2022 · 0 comments · Fixed by #13955
Closed

No output to last start file with -o json passed to minikube start #13925

spowelljr opened this issue Apr 7, 2022 · 0 comments · Fixed by #13955
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Milestone

Comments

@spowelljr
Copy link
Member

Without -o json passed

$ minikube start --driver docker
...
$ cat ~/.minikube/logs/lastStart.txt
Log file created at: 2022/04/07 13:42:34
Running on machine: powellsteven-macbookpro
Binary: Built with gc go1.18 for darwin/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0407 13:42:34.643511   69035 out.go:297] Setting OutFile to fd 1 ...
I0407 13:42:34.643742   69035 out.go:349] isatty.IsTerminal(1) = true
I0407 13:42:34.643745   69035 out.go:310] Setting ErrFile to fd 2...
I0407 13:42:34.643751   69035 out.go:349] isatty.IsTerminal(2) = true
I0407 13:42:34.643847   69035 root.go:315] Updating PATH: /Users/powellsteven/.minikube/bin
I0407 13:42:34.644245   69035 out.go:304] Setting JSON to false
I0407 13:42:34.694965   69035 start.go:114] hostinfo: {"hostname":"","uptime":267142,"bootTime":1649097012,"procs":544,"os":"darwin","platform":"darwin","platformFamily":"Standalone Workstation","platformVersion":"12.3.1","kernelVersion":"21.4.0","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"","hostId":"2617b539-b948-5b0b-a8d8-43f2e62b1b0c"}
W0407 13:42:34.695153   69035 start.go:122] gopshost.Virtualization returned error: not implemented yet
I0407 13:42:34.715869   69035 out.go:176] 😄  minikube v1.25.2 on Darwin 12.3.1
I0407 13:42:34.715992   69035 notify.go:193] Checking for updates...
I0407 13:42:34.716380   69035 driver.go:346] Setting default libvirt URI to qemu:///system
W0407 13:42:34.812319   69035 docker.go:113] docker version returned error: exit status 1
I0407 13:42:34.832185   69035 out.go:176] ✨  Using the docker driver based on user configuration
I0407 13:42:34.832236   69035 start.go:283] selected driver: docker
I0407 13:42:34.832249   69035 start.go:800] validating driver "docker" against <nil>
I0407 13:42:34.832265   69035 start.go:811] status for docker: {Installed:true Healthy:false Running:false NeedsImprovement:false Error:"docker version --format {{.Server.Os}}-{{.Server.Version}}" exit status 1: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Reason:PROVIDER_DOCKER_NOT_RUNNING Fix:Start the Docker service Doc:https://minikube.sigs.k8s.io/docs/drivers/docker/ Version:}
I0407 13:42:34.851806   69035 out.go:176]
W0407 13:42:34.851952   69035 out.go:241] 💣  Exiting due to PROVIDER_DOCKER_NOT_RUNNING: "docker version --format -" exit status 1: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
W0407 13:42:34.852030   69035 out.go:241] 💡  Suggestion: Start the Docker service
W0407 13:42:34.852113   69035 out.go:241] 📘  Documentation: https://minikube.sigs.k8s.io/docs/drivers/docker/

With -o json passed

$ minikube start --driver docker -o json
...
$ cat ~/.minikube/logs/lastStart.txt
Log file created at: 2022/04/07 13:45:00
Running on machine: powellsteven-macbookpro
Binary: Built with gc go1.18 for darwin/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg

We should be logging to the lastStart.txt file regardless of what output is selected.

@spowelljr spowelljr added kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Apr 7, 2022
@spowelljr spowelljr self-assigned this Apr 11, 2022
@spowelljr spowelljr added this to the 1.26.0 milestone Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant