devspace icon indicating copy to clipboard operation
devspace copied to clipboard

The server has asked for the client to provide credentials

Open afreyermuth98 opened this issue 2 years ago • 4 comments

What happened? When I do a devspace deploy I got the follow error :

error: You must be logged in to the server (the server has asked for the client to provide credentials)

I tried to deploy my charts using helm AND kubectl and I get the same error even if I have no problem with another equivalent project (almost a copy paste)

What did you expect to happen instead? This is my second devspace project so I expect to get the same behaviour which is just working and deploying my app.

How can we reproduce the bug? (as minimally and precisely as possible)

My devspace.yaml:

version: v2beta1
name: docker-compose

localRegistry:
  enabled: false

deployments:
  app:
    kubectl:
      manifests:
        - .devspace/deployment.yaml

my .devspace/deployment.yaml :

apiVersion: apps/v1
kind: Deployment
metadata:
  name: ubuntu
spec:
  selector:
    matchLabels:
      app: ubuntu
  replicas: 1
  template:
    metadata:
      labels:
        app: ubuntu
    spec:
      containers:
      - name: ubuntu
        image: ubuntu
        imagePullPolicy: Always

Local Environment:

  • DevSpace Version: 6.3.2
  • Operating System: mac
  • ARCH of the OS: ARM64 Kubernetes Cluster:
  • Cloud Provider: aws
  • Kubernetes Version: 1.25.7

Anything else we need to know?

afreyermuth98 avatar Jul 25 '23 14:07 afreyermuth98

@afreyermuth98 thanks for the issue! Looks like you are not authenticated to the kubernetes api server, does something like kubectl get pods work?

FabianKramm avatar Aug 03 '23 07:08 FabianKramm

@FabianKramm Yes of course, I can reproduce the exact kubectl / helm command and it deploys without issue. Moreover on a parallel devspace project everything works perfectly :/

afreyermuth98 avatar Aug 03 '23 07:08 afreyermuth98

@afreyermuth98 what if you change the directory from .devspace to something else?

FabianKramm avatar Aug 03 '23 07:08 FabianKramm

@FabianKramm What do you mean ? Inside my .devspace folder I only have a cache.yml file

afreyermuth98 avatar Aug 03 '23 07:08 afreyermuth98