Catalog_version_table_in_perdb_mode is not set in shared memory

sqlsh: FATAL: Failed to find out pg_yb_catalog_version mode: Operation ‘catalog_version_table_in_perdb_mode is not set in shared memory’ didn’t complete within 10000ms

Cluster is running using yb-ctl, with Node Count: 1 | Replication Factor: 1.

But the yugabyte_data directory is one I stored earlier as backup and now I want to use that directory to restore that database again.

I am able to see the name and count of the table on UI on port: 7000

any solution how can I restore data only from the yugabyte_data directory?

Hi @kamleshkumar

What version are you using? Is it the same version as the one you took the backup?

Hello @dorian_yugabyte,
Yes, the database version is exactly the same.
Earlier I had three nodes in the yugabyte_data folder but I had to delete node_2 and node_3 for some reason.
Can that be the reason for this?

Which version is it?

Yes. Can’t simply delete (the majority of) folders & nodes and expect the cluster to be fine.
An example of steps when this happens in production Manual remote bootstrap of failed peer | YugabyteDB Docs

In your case I’d suggest to start a new cluster.