Two Gitlab CE instances sharing external postgresql database

I have two Gitlab CE instances sharing an external Postgresql (v. 12.4) database. On the first gitlab instance I have restored the backup with gitlab-backup restore command by placing the backup tar in the backups folder. The restoration was successful and I was able to browse projects and it’s content from the first gitlab instance.

But when I browse the same project from second gitlab instance it is missing some contents. Is there any specific configuration when running multiple gitlab instances sharing external Postgresql database? I have tried with gitlab_rails[‘auto_migrate’] = false as well but still the second gitlab instance fails to render some projects.