question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Garden scan fails to get kubectl

See original GitHub issue

Bug

Current Behavior

$ garden scan
 providers                 → Getting status...
   ℹ Fetching kubectl...

Failed resolving provider local-kubernetes. Here is the output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unable to connect to Kubernetes cluster. Please make sure it is running, reachable and that you have the right context configured.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Failed resolving one or more provider configurations:
- local-kubernetes: Unable to connect to Kubernetes cluster. Please make sure it is running, reachable and that you have the right context configured.

See error.log for detailed error message
$ cat error.log 

[2019-10-18T14:01:26.230Z] Error: Unable to connect to Kubernetes cluster. Please make sure it is running, reachable and that you have the right context configured.
    at Object.<anonymous> (/snapshot/dist/build/src/plugins/kubernetes/namespace.js:0)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/dist/build/src/plugins/kubernetes/namespace.js:0)
Error Details:
providerConfig:
  name: local-kubernetes
  buildMode: local-docker
  context: default
  defaultHostname: garden.dev
  deploymentStrategy: rolling
  forceSsl: false
  imagePullSecrets: []
  ingressHttpPort: 80
  ingressHttpsPort: 443
  ingressClass: nginx
  namespace: default
  resources:
    builder:
      limits:
        cpu: 4000
        memory: 8192
      requests:
        cpu: 200
        memory: 512
    registry:
      limits:
        cpu: 2000
        memory: 4096
      requests:
        cpu: 200
        memory: 512
    sync:
      limits:
        cpu: 500
        memory: 512
      requests:
        cpu: 100
        memory: 64
  storage:
    builder:
      size: 20480
      storageClass: null
    nfs:
      storageClass: null
    registry:
      size: 20480
      storageClass: null
    sync:
      size: 10240
      storageClass: null
  setupIngressController: nginx
  tlsCertificates:
    - name: garden-dev
      secretRef:
        name: tls-garden-dev
        namespace: default
message: Request failed with status code 400


[2019-10-18T14:01:26.254Z] Error: Failed resolving one or more provider configurations:
- local-kubernetes: Unable to connect to Kubernetes cluster. Please make sure it is running, reachable and that you have the right context configured.
    at Garden.<anonymous> (/snapshot/dist/build/src/garden.js:0)
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/dist/build/src/garden.js:0)
Error Details:
rawConfigs:
  - name: exec
  - name: container
  - name: local-kubernetes
    context: default
    defaultHostname: garden.dev
    tlsCertificates:
      - name: garden-dev
        secretRef:
          name: tls-garden-dev
          namespace: default
    environments:
      - default
taskResults:
  resolve-provider.exec:
    type: resolve-provider
    key: resolve-provider.exec
    name: exec
    description: resolving provider exec
    completedAt: '2019-10-18T14:01:26.052Z'
    output:
      name: exec
      dependencies: []
      moduleConfigs: []
      config:
        name: exec
        path: /home/alex/code/git/garden/examples/local-tls
      status:
        ready: true
        outputs: {}
    dependencyResults: {}
  resolve-provider.container:
    type: resolve-provider
    key: resolve-provider.container
    name: container
    description: resolving provider container
    completedAt: '2019-10-18T14:01:26.055Z'
    output:
      name: container
      dependencies: []
      moduleConfigs: []
      config:
        name: container
        path: /home/alex/code/git/garden/examples/local-tls
      status:
        ready: true
        outputs: {}
    dependencyResults: {}
  resolve-provider.local-kubernetes:
    type: resolve-provider
    description: resolving provider local-kubernetes
    key: resolve-provider.local-kubernetes
    name: local-kubernetes
    error:
      detail:
        providerConfig:
          name: local-kubernetes
          buildMode: local-docker
          context: default
          defaultHostname: garden.dev
          deploymentStrategy: rolling
          forceSsl: false
          imagePullSecrets: []
          ingressHttpPort: 80
          ingressHttpsPort: 443
          ingressClass: nginx
          namespace: default
          resources:
            builder:
              limits:
                cpu: 4000
                memory: 8192
              requests:
                cpu: 200
                memory: 512
            registry:
              limits:
                cpu: 2000
                memory: 4096
              requests:
                cpu: 200
                memory: 512
            sync:
              limits:
                cpu: 500
                memory: 512
              requests:
                cpu: 100
                memory: 64
          storage:
            builder:
              size: 20480
              storageClass: null
            nfs:
              storageClass: null
            registry:
              size: 20480
              storageClass: null
            sync:
              size: 10240
              storageClass: null
          setupIngressController: nginx
          tlsCertificates:
            - name: garden-dev
              secretRef:
                name: tls-garden-dev
                namespace: default
          _systemServices:
            - kubernetes-dashboard
            - ingress-controller
            - default-backend
        message: Request failed with status code 400
      type: deployment
    completedAt: '2019-10-18T14:01:26.216Z'
messages:
  - >-
    - local-kubernetes: Unable to connect to Kubernetes cluster. Please make
    sure it is running, reachable and that you have the right context
    configured.

Expected behavior

The expected output of garden scan

Reproducible example

I was using the local-tls example.

Workaround

n/a

Suggested solution(s)

?

Additional context

I ran strace on the command - the piece at the end seems useful. It appears to be getting 400 errors from connecting through my work proxy (16.46.41.11 below) I have configured to get kubectl. I can access the URLs in the code with wget fine…

epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 54) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("16.46.41.11")}, 16) = -1 EINPROGRESS (Operation now in progress)
⠇poll_ctl(3, EPOLL_CTL_ADD, 11, {EPOLLOUT, {u32=11, u64=11}}) = 0
epoll_wait(3, [], 1024, 5)              = 0
write(1, "\33[s\33[1G\33[2A\342\240\207\33[u", 17) = 17
epoll_wait(3, [{EPOLLOUT, {u32=11, u64=11}}], 1024, 60) = 1
getsockopt(11, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
write(11, "GET https://get.garden.io/versio"..., 298) = 298
epoll_ctl(3, EPOLL_CTL_ADD, 11, {EPOLLIN, {u32=11, u64=11}}) = -1 EEXIST (File exists)
epoll_ctl(3, EPOLL_CTL_MOD, 11, {EPOLLIN, {u32=11, u64=11}}) = 0
epoll_wait(3, [{EPOLLIN, {u32=11, u64=11}}], 1024, 57) = 1
read(11, "HTTP/1.1 400 Bad Request\r\nCache-"..., 65536) = 867
futex(0x3c378fc, FUTEX_WAKE_PRIVATE, 1) = 1
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
epoll_ctl(3, EPOLL_CTL_MOD, 11, {EPOLLIN|EPOLLOUT, {u32=11, u64=11}}) = 0
epoll_wait(3, [{EPOLLIN|EPOLLOUT, {u32=11, u64=11}}], 1024, 33) = 1
read(11, "", 65536)                     = 0
epoll_ctl(3, EPOLL_CTL_DEL, 11, 0x7ffe749ae2d0) = 0
⠙lose(11)                               = 0
epoll_wait(3, [], 1024, 31)             = 0
write(1, "\33[s\33[1G\33[2A\342\240\231\33[u", 17) = 17
epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 60) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("16.46.41.11")}, 16) = -1 EINPROGRESS (Operation now in progress)
epoll_ctl(3, EPOLL_CTL_ADD, 11, {EPOLLOUT, {u32=11, u64=11}}) = 0
epoll_wait(3, [{EPOLLOUT, {u32=11, u64=11}}], 1024, 51) = 1
getsockopt(11, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
write(11, "GET https://storage.googleapis.c"..., 224) = 224
epoll_ctl(3, EPOLL_CTL_ADD, 11, {EPOLLIN, {u32=11, u64=11}}) = -1 EEXIST (File exists)
epoll_ctl(3, EPOLL_CTL_MOD, 11, {EPOLLIN, {u32=11, u64=11}}) = 0
epoll_wait(3, [{EPOLLIN, {u32=11, u64=11}}], 1024, 42) = 1
read(11, "HTTP/1.1 400 Bad Request\r\nCache-"..., 65536) = 867
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(3, [{EPOLLIN, {u32=11, u64=11}}, {EPOLLIN, {u32=8, u64=8}}], 1024, 30) = 2
read(11, "", 65536)                     = 0
epoll_ctl(3, EPOLL_CTL_DEL, 11, 0x7ffe749ae2d0) = 0
close(11)                               = 0
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 27) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 27) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0

Failed resolving provider local-kubernetes. Here is the output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unable to connect to Kubernetes cluster. Please make sure it is running, reachab
le and that you have the right context configured.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

) = 687
access("/home/alex/code/git/garden/examples/local-tls", F_OK) = 0
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
access("/home/alex/code/git/garden/examples/local-tls/.garden/logs", F_OK) = 0
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378fc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c91020, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378f8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378a8, FUTEX_WAKE_PRIVATE, 1) = 1
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
futex(0x3c378f8, FUTEX_WAKE_PRIVATE, 1) = 1
Failed resolving one or more provider configurations:
- local-kubernetes: Unable to connect to Kubernetes cluster. Please make sure it
 is running, reachable and that you have the right context configured.
) = 213
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d704000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d984000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5da04000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d904000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d884000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d804000, 86016, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
futex(0x3c378f8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378f8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378fc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378a8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c3e3b0, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x3c3e3b0, FUTEX_WAKE_PRIVATE, 1) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
futex(0x3c378f8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378a8, FUTEX_WAKE_PRIVATE, 1) = 1
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
futex(0x3c378fc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x3c378a8, FUTEX_WAKE_PRIVATE, 1) = 1
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
futex(0x3c42fe8, FUTEX_WAKE_PRIVATE, 1) = 0

See error.log for detailed error message
) = 49
futex(0x7f6daaaa4c60, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x7f6daaaa4c60, FUTEX_WAKE_PRIVATE, 1) = 0
epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 60) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_WRITE) = 0
mprotect(0x7bb5d784000, 503808, PROT_READ|PROT_EXEC) = 0
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 59) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
⠋utex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(3, [{EPOLLIN, {u32=8, u64=8}}], 1024, 58) = 1
read(8, "\1\0\0\0\0\0\0\0", 1024)       = 8
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f42c8, FUTEX_WAKE_PRIVATE, 1) = 1
 providers                 → Getting status...
   ℹ Fetching kubectl...

Failed resolving provider local-kubernetes. Here is the output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unable to connect to Kubernetes cluster. Please make sure it is running, reachab
le and that you have the right context configured.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Failed resolving one or more provider configurations:
- local-kubernetes: Unable to connect to Kubernetes cluster. Please make sure it
 is running, reachable and that you have the right context configured.

See error.log for detailed error message
) = 1123
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f42cc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22f4260, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6da88dc9d0, FUTEX_WAIT, 6214, NULL) = 0
exit_group(1)                           = ?
+++ exited with 1 +++

Your environment

Linux myhost 5.3.5-200.fc30.x86_64 #1 SMP Tue Oct 8 12:41:15 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Fedora Workstation 30

garden version 0.10.13

kubectl version Client Version: version.Info{Major:“1”, Minor:“16”, GitVersion:“v1.16.0”, GitCommit:“2bd9643cee5b3b3a5ecbd3af49d09018f0773c77”, GitTreeState:“clean”, BuildDate:“2019-09-18T14:36:53Z”, GoVersion:“go1.12.9”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“15”, GitVersion:“v1.15.4-k3s.1”, GitCommit:“a7531b1ab3fd5ff987b074472ddfb84a2f5326bc”, GitTreeState:“clean”, BuildDate:“2019-09-19T22:36Z”, GoVersion:“go1.12.9”, Compiler:“gc”, Platform:“linux/amd64”}

docker version Client: Docker Engine - Community Version: 19.03.3 API version: 1.40 Go version: go1.12.10 Git commit: a872fc2f86 Built: Tue Oct 8 00:58:27 2019 OS/Arch: linux/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 19.03.3 API version: 1.40 (minimum version 1.12) Go version: go1.12.10 Git commit: a872fc2f86 Built: Tue Oct 8 00:57:04 2019 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.2.10 GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339 runc: Version: 1.0.0-rc8+dev GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657 docker-init: Version: 0.18.0 GitCommit: fec3683

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
alex-broadcommented, Oct 22, 2019

The proxy issue looks like it could be this one: axios/axios#2072

I’ll have a look at the k3s issue(s).

Thanks for your help!

0reactions
stale[bot]commented, Jan 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Garden documentation
To fix this, run kubectl get svc -n garden-system and look for the EXTERNAL-IP of the garden-nginx-nginx-ingress-controller service and update your DNS records ......
Read more >
How to Debug Kubernetes Pending Pods and Scheduling ...
Learn how to debug Pending pods that fail to get scheduled due to resource constraints, taints, affinity rules, and other reasons.
Read more >
Kubernetes Plugins, Tools, Extensions and Projects - Nubenetes
Kubei is a vulnerabilities scanning tool that allows users to get an accurate and immediate risk assessment of their kubernetes clusters.
Read more >
Kubetools - A Curated List of Kubernetes Tools
Join us over Slack and get chance to be a part of 7200+ DevOps enthusiasts. ... Garden: Kubernetes from source to finish -...
Read more >
Local Development on Kubernetes: Draft vs Skaffold vs Garden
However, we have conveniently left out the details on how you can use a local Kubernetes cluster as a developer to test a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found