I installed a local cluster to my development machine today to have a play. However when uploading some guest exe's the fabric crashes. I even tested just loading simple old notepad.exe, but alas the same crash. As a further test I pushed the notepad.exe to the public party cluster and it ran just fine. This post gives a similar error, and as per the comments I suspect it is a Windows 7 issue.
So next idea was to install a local cluster on a new Windows server VM, and attempt to publish to that. But I've hit another wall there too. I can connect to the "remote" cluster's web management interface, and I can see all of the Fabric processes running and listening on port 19000, but VS 2015 refuses to connect during a publish. I disabled the firewall thinking that was the issue, and have "pinged" various ports to verify. Some respond (such as 19080) but not 19000.
Ideas ?
Update: Running powershell connect command on the remote machine works.
Update2: I've installed the "local cluster" onto 3 other machines and all do exactly the same thing
Update3: Created a port forward on the remote machine using the netsh command to route from 18090 to 19000. Now I can connect via powershell from my local machine to the remote machine's local cluster. (I also noticed that the username/password on the remote machine needs to be the same if they are not on the same domain) Visual Studio can also now connect, but the powershell script Errors mid way, here is the output.
*>Copying application to image store...
Copy application package succeeded
Registering application type...
Register-ServiceFabricApplicationType : The Application Manifest file
'FabricApp2Type\ApplicationManifest.xml' is not found in the store.
At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricS
DK\Publish-NewServiceFabricApplication.ps1:244 char:9
+ Register-ServiceFabricApplicationType -ApplicationPathInImageStore
$appl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : ResourceUnavailable: (Microsoft.Servi...usterCon
nection:ClusterConnection) [Register-ServiceFabricApplicationType], FileNo
tFoundException
+ FullyQualifiedErrorId : RegisterApplicationTypeErrorId,Microsoft.Service
Fabric.Powershell.RegisterApplicationType
Finished executing script 'Deploy-FabricApplication.ps1'.*
I've now resorted to installing a local copy of visual studio on the remote machine and using that to run my tests since my Windows 7 machine wont.
Whilst my efforts to now are to get around the Win 7 bug, I can see benefit in having "local clusters" on other machines for development and debugging. Is a lot easier than having to stand up a dev cluster in Azure, and more secure than pushing to the public Party cluster. I hope someone in the SF team is already working on allowing VS to remotely deploy and debug.
If anyone has suggestions as to how to remedy the issues so far, please post. I'm happy test ideas too.
ConnectionEndpoint="myserver:19000"
to the existing publish profile.If I change myserver to localhost then publishing locally works just fine. – OrdinaryOrange