etcd container exiting with error "please delete the contents of data directory before restoring, running the restore script will do this for you" after the execution of script "cluster-restore.sh"

Solution Verified - Updated -

Issue

  • After the execution of the script cluster-restore.sh as part of the etcd restore procedure, the etcd restore container on the recovery host is exiting with error please delete the contents of data directory before restoring, running the restore script will do this for you
  • After the execution of the script cluster-restore.sh, any oc command (for example, oc get nodes) is exiting the error Unable to connect to the server: EOF

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content