MsDeploy synchronization completed in XX pass(es)

2019-09-10 11:59发布

问题:

What is the sequence of executing the providers list within a Manifest. I have seen at times our builds take 5 passes to sync, while some times we get errors that the sync did not complete due to sync limit reached. Is there a documentation around how and what gets executed within each sync phase and is there a way to influence it.

Thanks, Yatin

回答1:

The providers are executed in the order in which they appear in the manifest.

We've seen this error when we had internal network/firewall issues. All cleared after network operations fixed the problem.

EDIT

You should also check that none of the files on the target server are marked readonly. This can cause the sync to fail and retry multiple times. You can try deleting all the target files and deploying them fresh.

Third party tools can also cause this to happen. Dropbox, OneDrive or a virus scanner may be editing files after they are synched then WebDeploy has to resync again.

SUMMARY

Something is changing the website files or adding files to the folder between each pass. Based on your other question it looks like you are adding DacPacs to the website folder which is causing this.

MsDeploy Sync not working