kubesphere / ks-devops

This is a cloud-native application that focuses on the DevOps area.
https://kubesphere.io/devops/
Apache License 2.0
158 stars 88 forks source link

devops-apiserver无法运行,Error: unable to retrieve the complete list of server APIs #1045

Open skypeas opened 1 month ago

skypeas commented 1 month ago

What is version of KubeSphere DevOps has the issue?

kubesphere/devops-apiserver:ks-v3.4.1

How did you install the Kubernetes? Or what is the Kubernetes distribution?

Kubernetes v1.23.10

What happened?

image

Relevant log output

W0521 00:56:50.352880       1 client_config.go:617] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.

 W0521 00:56:50.353565       1 options.go:143] ks-apiserver starts without redis provided, it will use in memory cache. This may cause inconsistencies when running ks-apiserver with multiple replicas.

 I0521 00:56:50.392736       1 sonarqube.go:55] Sonarqube integration is disabled

 I0521 00:56:50.393446       1 sonarqube.go:55] Sonarqube integration is disabled

 [restful] 2024/05/21 00:56:50 log.go:33: [restful/swagger] listing is available at /apidocs.json

 [restful] 2024/05/21 00:56:50 log.go:33: [restful/swagger] /apidocs/ is mapped to folder bin/swagger-ui/dist

 I0521 00:56:50.398432       1 apiserver.go:234] Start cache objects

 Error: unable to retrieve the complete list of server APIs: api.scenetech.cc/v1alpha1: the server is currently unable to handle the request

 2024/05/21 00:56:50 unable to retrieve the complete list of server APIs: api.scenetech.cc/v1alpha1: the server is currently unable to handle the request

Additional information

No response

skypeas commented 1 month ago

kubectl delete apiservices/v1alpha1.xxx.xxx.xxx

yudong2015 commented 2 weeks ago

There is no CRD named api.scenetech.cc/v1alpha1 in ks-devops, so please check if ImageID of devops-apiserver is d192e090f152 or pull it again, then restart deployment devops-apiserver ?