Restore has failed. when i backup and restore to a new discourse

This worked for me as well. So glad I found this post. I thought I was in for a long night. Thank you for the fix.