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 start --driver=docker | Template parsing error: template: :1: unexpected "=" in operand #10036

Closed
AbhishekPrathi opened this issue Dec 23, 2020 · 1 comment

Comments

@AbhishekPrathi
Copy link

1.minikube start --driver=docker

Full output of minikube start command used, if not already included:
minikube v1.16.0 on Centos 7.9.2009 (xen/amd64)

  • Using the docker driver based on user configuration
  • Starting control plane node minikube in cluster minikube
  • Pulling base image ...
  • Downloading Kubernetes v1.20.0 preload ...

    preloaded-images-k8s-v8-v1....: 491.00 MiB / 491.00 MiB 100.00% 54.33 Mi

  • Creating docker container (CPUs=2, Memory=2200MB) ...
  • Preparing Kubernetes v1.20.0 on Docker 20.10.0 ...| E1223 20:26:36.031325 3270 start.go:99] Unable to get host IP: network inspect: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{(index .Options "com.docker.network.driver.mtu")}},{{$first := true}} "ContainerIPs": [{{range $k,$v := .Containers }}{{if $first}}{{$first = false}}{{else}}, {{end}}"{{$v.IPv4Address}}"{{end}}]}": exit status 64
    stdout:

stderr:
Template parsing error: template: :1: unexpected "=" in operand
E1223 20:26:36.034203 3270 out.go:322] unable to execute Failed to setup kubeconfig: network inspect: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{(index .Options "com.docker.network.driver.mtu")}},{{$first := true}} "ContainerIPs": [{{range $k,$v := .Containers }}{{if $first}}{{$first = false}}{{else}}, {{end}}"{{$v.IPv4Address}}"{{end}}]}": exit status 64
stdout:

stderr:
Template parsing error: template: :1: unexpected "=" in operand
: template: Failed to setup kubeconfig: network inspect: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{(index .Options "com.docker.network.driver.mtu")}},{{$first := true}} "ContainerIPs": [{{range $k,$v := .Containers }}{{if $first}}{{$first = false}}{{else}}, {{end}}"{{$v.IPv4Address}}"{{end}}]}": exit status 64
stdout:

stderr:
Template parsing error: template: :1: unexpected "=" in operand
:1:250: executing "Failed to setup kubeconfig: network inspect: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{(index .Options "com.docker.network.driver.mtu")}},{{$first := true}} "ContainerIPs": [{{range $k,$v := .Containers }}{{if $first}}{{$first = false}}{{else}}, {{end}}"{{$v.IPv4Address}}"{{end}}]}": exit status 64\nstdout:\n\nstderr:\nTemplate parsing error: template: :1: unexpected "=" in operand\n" at <index .Options "com.docker.network.driver.mtu">: error calling index: index of untyped nil - returning raw string.

X Exiting due to GUEST_START: Failed to setup kubeconfig: network inspect: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{(index .Options "com.docker.network.driver.mtu")}},{{$first := true}} "ContainerIPs": [{{range $k,$v := .Containers }}{{if $first}}{{$first = false}}{{else}}, {{end}}"{{$v.IPv4Address}}"{{end}}]}": exit status 64
stdout:

stderr:
Template parsing error: template: :1: unexpected "=" in operand

Optional: Full output of minikube logs command:

* ==> Docker <== * -- Logs begin at Wed 2020-12-23 20:46:33 UTC, end at Wed 2020-12-23 20:55:14 UTC. -- * Dec 23 20:46:59 minikube systemd[1]: Starting Docker Application Container Engine... * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.740609235Z" level=info msg="Starting up" * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.741886009Z" level=info msg="parsed scheme: \"unix\"" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.741912249Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.741939184Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.741956527Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.743831727Z" level=info msg="parsed scheme: \"unix\"" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.743853035Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.743868903Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.743880472Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.750570463Z" level=info msg="[graphdriver] using prior storage driver: overlay2" * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.773925520Z" level=info msg="Loading containers: start." * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.837442678Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address" * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.874675158Z" level=info msg="Loading containers: done." * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.894470183Z" level=info msg="Docker daemon" commit=eeddea2 graphdriver(s)=overlay2 version=20.10.0 * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.894578539Z" level=info msg="Daemon has completed initialization" * Dec 23 20:46:59 minikube dockerd[249]: time="2020-12-23T20:46:59.916729026Z" level=info msg="API listen on /run/docker.sock" * Dec 23 20:47:01 minikube systemd[1]: Started Docker Application Container Engine. * Dec 23 20:47:02 minikube systemd[1]: /lib/systemd/system/docker.service:13: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. * Dec 23 20:47:02 minikube systemd[1]: docker.service: Current command vanished from the unit file, execution of the command list won't be resumed. * Dec 23 20:47:03 minikube systemd[1]: /lib/systemd/system/docker.service:13: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. * Dec 23 20:47:04 minikube systemd[1]: /lib/systemd/system/docker.service:13: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. * Dec 23 20:47:04 minikube systemd[1]: /lib/systemd/system/docker.service:13: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. * Dec 23 20:47:04 minikube systemd[1]: Stopping Docker Application Container Engine... * Dec 23 20:47:04 minikube dockerd[249]: time="2020-12-23T20:47:04.179881446Z" level=info msg="Processing signal 'terminated'" * Dec 23 20:47:04 minikube dockerd[249]: time="2020-12-23T20:47:04.181055981Z" level=info msg="stopping event stream following graceful shutdown" error="" module=libcontainerd namespace=moby * Dec 23 20:47:04 minikube dockerd[249]: time="2020-12-23T20:47:04.181556488Z" level=info msg="Daemon shutdown complete" * Dec 23 20:47:04 minikube systemd[1]: docker.service: Succeeded. * Dec 23 20:47:04 minikube systemd[1]: Stopped Docker Application Container Engine. * Dec 23 20:47:04 minikube systemd[1]: Starting Docker Application Container Engine... * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.250451959Z" level=info msg="Starting up" * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.252327130Z" level=info msg="parsed scheme: \"unix\"" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.252371393Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.252402356Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.252424577Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.255501354Z" level=info msg="parsed scheme: \"unix\"" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.255530390Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.255550312Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.255569593Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.267526692Z" level=info msg="[graphdriver] using prior storage driver: overlay2" * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.274372445Z" level=info msg="Loading containers: start." * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.361867553Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address" * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.399091623Z" level=info msg="Loading containers: done." * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.417562625Z" level=info msg="Docker daemon" commit=eeddea2 graphdriver(s)=overlay2 version=20.10.0 * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.417632815Z" level=info msg="Daemon has completed initialization" * Dec 23 20:47:04 minikube systemd[1]: Started Docker Application Container Engine. * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.440379501Z" level=info msg="API listen on [::]:2376" * Dec 23 20:47:04 minikube dockerd[407]: time="2020-12-23T20:47:04.446159408Z" level=info msg="API listen on /var/run/docker.sock" * Dec 23 20:47:05 minikube systemd[1]: /lib/systemd/system/docker.service:13: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. * * ==> container status <== * CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES * time="2020-12-23T20:55:16Z" level=fatal msg="failed to connect: failed to connect, make sure you are running as root and the runtime has been started: context deadline exceeded" * * ==> describe nodes <== E1223 20:55:16.909676 16892 logs.go:181] command /bin/bash -c "sudo /var/lib/minikube/binaries/v1.20.0/kubectl describe nodes --kubeconfig=/var/lib/minikube/kubeconfig" failed with error: /bin/bash -c "sudo /var/lib/minikube/binaries/v1.20.0/kubectl describe nodes --kubeconfig=/var/lib/minikube/kubeconfig": Process exited with status 1 stdout:

stderr:
error: stat /var/lib/minikube/kubeconfig: no such file or directory
output: "\n** stderr ** \nerror: stat /var/lib/minikube/kubeconfig: no such file or directory\n\n** /stderr **"
*

  • ==> dmesg <==
  • [Dec23 20:18] ACPI: RSDP 00000000000ea020 00024 (v02 Xen)
  • [ +0.000000] ACPI: XSDT 00000000fc00e2a0 00054 (v01 Xen HVM 00000000 HVML 00000000)
  • [ +0.000000] ACPI: FACP 00000000fc00df60 000F4 (v04 Xen HVM 00000000 HVML 00000000)
  • [ +0.000000] ACPI: DSDT 00000000fc0021c0 0BD19 (v02 Xen HVM 00000000 INTL 20090123)
  • [ +0.000000] ACPI: FACS 00000000fc002180 00040
  • [ +0.000000] ACPI: APIC 00000000fc00e060 000D8 (v02 Xen HVM 00000000 HVML 00000000)
  • [ +0.000000] ACPI: HPET 00000000fc00e1b0 00038 (v01 Xen HVM 00000000 HVML 00000000)
  • [ +0.000000] ACPI: WAET 00000000fc00e1f0 00028 (v01 Xen HVM 00000000 HVML 00000000)
  • [ +0.000000] ACPI: SSDT 00000000fc00e220 00031 (v02 Xen HVM 00000000 INTL 20090123)
  • [ +0.000000] ACPI: SSDT 00000000fc00e260 00033 (v02 Xen HVM 00000000 INTL 20090123)
  • [ +0.000000] Zone ranges:
  • [ +0.000000] DMA [mem 0x00001000-0x00ffffff]
  • [ +0.000000] DMA32 [mem 0x01000000-0xffffffff]
  • [ +0.000000] Normal [mem 0x100000000-0x10fffffff]
  • [ +0.000000] Movable zone start for each node
  • [ +0.000000] Early memory node ranges
  • [ +0.000000] node 0: [mem 0x00001000-0x0009dfff]
  • [ +0.000000] node 0: [mem 0x00100000-0xefffffff]
  • [ +0.000000] node 0: [mem 0x100000000-0x10fffffff]
  • [ +0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1032072
  • [ +0.000000] Policy zone: Normal
  • [ +0.000000] Cannot get hvm parameter CONSOLE_EVTCHN (18): -22!
  • [ +0.000000] 4789.01 BogoMIPS (lpj=2394506)
  • [ +0.173338] ACPI: All ACPI Tables successfully acquired
  • [ +0.103760] cpu 0 spinlock event irq 53
  • [ +0.005140] NMI watchdog: disabled (cpu0): hardware events not enabled
  • [ +0.058067] ACPI: Enabled 2 GPEs in block 00 to 0F
  • [ +0.084710] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
  • [ +0.052954] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
  •           * this clock source is slow. Consider trying other clock sources
    
  • [ +0.933453] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
  • [ +0.144643] Grant table initialized
  • [ +0.005044] Cannot get hvm parameter CONSOLE_EVTCHN (18): -22!
  • [ +2.861878] piix4_smbus 0000:00:01.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
  • [ +9.016741] TECH PREVIEW: Overlay filesystem may not be fully supported.
  •           Please review provided documentation for limitations.
    
  • ==> kernel <==
  • 20:55:16 up 36 min, 0 users, load average: 0.00, 0.05, 0.10
  • Linux minikube 3.10.0-1160.6.1.el7.x86_64 Need a reliable and low latency local cluster setup for Kubernetes  #1 SMP Tue Nov 17 13:59:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • PRETTY_NAME="Ubuntu 20.04.1 LTS"
  • ==> kubelet <==
  • -- Logs begin at Wed 2020-12-23 20:46:33 UTC, end at Wed 2020-12-23 20:55:16 UTC. --
  • -- No entries --

! unable to fetch logs for: describe nodes

@AbhishekPrathi
Copy link
Author

The issue got resolved with a simple command
docker network rm [NETWORK] and then minikube start --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