I took a backup of my GitLab instance running on one machine. After restoring it on a different machine with the same GitLab version installed, I validated that the installation works correctly. The backup was taken without any issues, and I installed the same GitLab version on the new machine. After verifying that the installation worked, I copied the gitlab.rb and secrets.json files and followed the documentation for the reconfigure process, followed by the restore. During the restore process, I saw the following errors, but the operation was completed successfully:
ERROR: must be owner of extension pg_trgm
ERROR: must be owner of extension btree_gist
ERROR: must be owner of extension btree_gist
ERROR: must be owner of extension pg_trgm
After the restore, when I accessed the page, I noticed that images weren't loading, and only the text appeared. The browser console showed the following error:
Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
There were also several 404 errors for assets:
GET http://localhost:8080/assets/webpack/main.8ef36d88.chunk.js net::ERR_ABORTED 404 (Not Found)
GET http://localhost:8080/assets/webpack/graphql.e1f11a07.chunk.js net::ERR_ABORTED 404 (Not Found)
GET http://localhost:8080/assets/webpack/commons-pages.admin.abuse_reports.show-pages.dashboard.issues-pages.groups.boards-pages.groups.issue-8dfa5f96.e0a3e16a.chunk.js net::ERR_ABORTED 404 (Not Found)
It seems the backup was successfully restored because I can log in with my old username and password, but the application isn't working properly. How can I resolve this issue and get the application functioning correctly?