When in debug, write cause of metadata failure when synchronizing database.
Normaly it's because there is no metadata table, but can have other cause