I have Confluence 6.15.2 installed on a server with Postgres. I have a backup of a Confluence Cloud instance that I am trying to restore into the server instance. During the restore (less than five minutes in) I get an error message:
Then if I try to do anything in Confluence I am just brought to an error screen:

In the database if I run the query
SELECT * FROM cwd_app_dir_mapping
I get 0 rows returned.