All data deleted when upgrading & can't restore

Does it get deleted if you simply restart the stack?

You should always upgrade the frontend when you upgrade the api. The frontend tries to fetch all namespaces but namespaces were removed in 0.21.0.