kURL icon indicating copy to clipboard operation
kURL copied to clipboard

etcdserver: mvcc: database space exceeded

Open Snazzie opened this issue 2 years ago • 5 comments

Ive setup kubernetes on ubuntu using curl https://kurl.sh/latest | sudo bash after a day of mucking around and provisioning my cluster, I now get this error when trying to run kubectl commands. basicly unable to make any kubernetes changes, cant delete or add anything, cant purge node.

i tried using etcdctl to see if i could maybe find a solution, but it fails to connect to the etcdserver.

Any idea how i can resolve this?

Snazzie avatar Jan 08 '23 08:01 Snazzie

Hi @Snazzie can you provide the steps to reproduce from a fresh server this so we can get a better understanding of the issue you are experiencing? Also any relevant log messages.

kyleprice avatar Jan 10 '23 20:01 kyleprice

Ive made a new cluster since and havent hit this error but, im still unable to talk with etcd-server.

  1. Ubuntu 20.04.5 VM
  2. run curl https://kurl.sh/latest | sudo bash
  3. run curl -o tasks.sh https://kurl.sh/latest/tasks.sh
  4. run sudo bash tasks.sh generate-admin-user
  5. connect to cluster with admin context
  6. shell into etcd pod
  7. run etcdctl alarm list
sh-5.1# etcdctl alarm list
{"level":"warn","ts":"2023-01-11T20:27:40.371Z","logger":"etcd-client","caller":"[email protected]/retry_intercepto
r.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000430a80/127.0.0.1:2379","
attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error:
 connection closed before server preface received"}
Error: context deadline exceeded

Snazzie avatar Jan 11 '23 20:01 Snazzie

i browsed the etcd repo for issue relating to database space exceeded, the solution is to defrag/increase database etc. but cant do so if i cant interface with it.

Snazzie avatar Jan 11 '23 20:01 Snazzie

Hi @Snazzie,

It is open for while. Could you please let us know if it still a problem? Could you please let us know if you still needing helping with or if it is sorted out already?

camilamacedo86 avatar Apr 25 '23 11:04 camilamacedo86

Not exactly this error. but am still getting similar outcome where kubernetes cluster actions become deadlocked

Snazzie avatar Apr 28 '23 12:04 Snazzie

havent encountered this error for some time now. closing ticket

Snazzie avatar Aug 02 '24 00:08 Snazzie