Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 565

Sync Issues

$
0
0

Hi,

I am a web deploy newbie trying to sync 2 windows server 2012 web servers (VM's on windows azure) which has created a cloud service. All websites on iis plug into a SQL Azure Database which does not need to be included in webdeploy.

Ive run the following script

Import-AzurePublishSettingsFile '3-Month Free Trial-1-11-2013-credentials.publishsettings'

Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'

$publishingServer = (gc env:computername).toLower()

$serviceName = 'myserviceweb03'

Get-AzureVM -ServiceName $serviceName | foreach {

     if ($_.Name.toLower() -ne $publishingServer) {
           $target = $_.Name + ":8080"
           $source = $publishingServer + ":8080"
           $exe = "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
           [Array]$params = "-verb:sync", "-source:contentPath=C:\Inetpub\wwwroot,computerName=$source", "-dest:contentPath=C:\Inetpub\wwwroot,computerName=$target";& $exe $params;
              }
                }

when running this I get the following error message

PS C:\SyncScript> C:\SyncScript\sync.ps1

Info: Using ID '1e66bbb5-xxxxx-xxxxx-a9d8-xxxxxxxxxxxxxxxx' for connections to the remote server.

msdeploy.exe : Error Code: ERROR_DESTINATION_NOT_REACHABLE

At C:\SyncScript\sync.ps1:17 char:12

+            & $exe $params;

+            ~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (Error Code: ERR...N_NOT_REACHABLE:String) [], RemoteException

    + FullyQualifiedErrorId : NativeCommandError

More Information: Could not connect to the remote computer ("xxxxxweb03"). On the remote computer, make sure that

Web Deploy is installed and that the required process ("Web Deployment Agent Service") is started.  Learn more at:

http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.

Error: Unable to connect to the remote server

Error: No connection could be made because the target machine actively refused it 10.0.0.5:8080

Error count: 1.

PS C:\SyncScript> 

 

As a matter of interest 10.0.0.5 is the source server.

Ive disabled the firewall (just for test purposes) & there is also an endpoint on this server for port 8080. I checked the management service on iis & checked allow remote management & restarted the service.

Id be happy to manually enter target & source servers to make things a little easier.

Any ideas where i might be going wrong.

Thanks in advance


Viewing all articles
Browse latest Browse all 565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>