The remote copy of database "%1!s!" is not recovered far enough to enable database mirroring or to join it to the availability ...

The remote copy of database "%1!s!" is not recovered far enough to enable database mirroring or to join it to the availability group. You need to apply missing log records to the remote database by restoring the current log backups from the principal/primary database.