The etcd backup script fails to generate a backup

Solution Verified - Updated -


When attempting to create a backup snapshot of the etcd database, the /usr/local/bin/ script finishes after only a few lines of output without showing any error:

sudo -E /usr/local/bin/ ./assets/backup/snapshot.db
Creating asset directory ./assets
Downloading etcdctl binary..

Furthermore, the generated ./assets/backup directory is empty.

$ ls
assets  root-supporting-mandiri.crt
$ ls -ltr assets/backup/
total 0

The expected output of the script should be longer (example below):

sh-4.4# sudo -E /usr/local/bin/ ./assets/backup/snapshot.db
Creating asset directory ./assets
Downloading etcdctl binary..
etcdctl version: 3.3.10
API version: 3.3
Trying to backup etcd client certs..
etcd client certs found in /etc/kubernetes/static-pod-resources/kube-apiserver-pod-2 backing up to ./assets/backup/
Backing up /etc/kubernetes/manifests/etcd-member.yaml to ./assets/backup/
Snapshot saved at ./assets/backup/snapshot.db


  • OpenShift 4.x
  • Disconnected cluster
  • Cluster with restricted networking

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In