Closed smarter-code closed 4 years ago
When the service "does not respond" it is usually the result of the FabricHost service executable failing to launch due to environment dll availability conflict. Try to launch FabricHost in console mode from its residing directory (%programfiles%\Microsoft Service Fabric\bin) in an admin console: FabricHost.exe -c
If this doesn't yield a helpful error, you can use the Dependency Walker tool to map out discoverable dlls for the exe, or Windows debugging tools gflags with loader snaps and cdb to enumerate the API call that's failing to resolve.
@maburlik I am also facing the same issue as this thread and I tried Dependency Walker tool but id it did not help much. There are lot of dependencies shows on that tool. Seems they are not relevant of this issue.
I am tried today with latest runtime and sdk, install ServiceFabricRuntime_6_5_CU5 and ServiceFabricSDK_3_4_CU5 sdk manually after tried with web installer . Web Installer getting an error which runtime is not installed. problem is the service "FabricHostSvc" is not starting with the error "Error 1053: The Service did not respond to start or control request in a timely fashion ".
My PC has windows 10 and previously it worked , but suddenly It stop working. Could not find any reason. Now I cannot install any previous versions also.
Thanks a lot @maburlik it works now. When I attempted to run Service Fabric executable it was failing due to a corrupted DLL in OS (most likely due to group policy updates from my company), I got that corrupted DLL, I also used the TestConfiguration script and it works now.
To read more on test configuration script go to (Validate environment using TestConfiguration script) in https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-standalone-deployment-preparation.
We had a similar problem with a fresh install of Windows 11. The cluster would not start properly. I had to install Visual C++ Redistributable 2012 x64 and it started working. Hopefully this will help someone else.
1We used to have Service Fabric properly working previously, however, right now we cannot start the cluster and we get an immediate error. The cluster creation itself had errors.
When I check Service Fabric logs in C:\SFDevCluster I see
When I check Service Fabric traces I see FabricDeployer-XXXXXX(longnumber).trace, which has the following content
One interesting line from the previous is:
Which made me feel there could be some firewall rules blocking me, but I could not decide exactly what is goining on.
I had a look in Windows Event Viewer I see the following Service Fabric related events from different areas:
Also when I look under (Applications & Services Log ==> Microsoft-Service Fabric ==> Admin) I see the following:
Error FileChangeMonitor failed with E_ACCESSDENIED
Warning FileChangeMonitor failed file C:\SfDevCluster \Data\FabricHostSettings.xml with ErrorCode E_ACCESSDENIED.
Error GetFileAttributesEx failed with the following error 5
Error Unable to stop FabricHostSvc service because System.InvalidOperationException: Cannot stop FabricHostSvc service on computer '.'. ---> System.ComponentModel.Win32Exception: The service has not been started --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.Stop() at System.Fabric.FabricDeployer.FabricDeployerServiceController.Stop(String serviceName, String machineName)
Error Unable to start fabric host service because System.InvalidOperationException: Cannot start service FabricHostSvc on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not respond to the start or control request in a timely fashion --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.Start(String[] args) at System.Fabric.FabricDeployer.FabricDeployerServiceController.StartHostSvc(String machineName)
Error Error occurred while cleaning up isolated network setup exception System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.Fabric.FabricDeployer.RemoveOperation.RemoveNetworks(DeploymentParameters parameters)
Warning ParseConfigSettings: ErrorCode=E_FAIL, FileName=C:\SfDevCluster\Data\FabricHostSettings.xml
Warning CreateFileW failed: file=\?\C:\SfDevCluster\Data\FabricHostSettings.xml error=32
We have tried all the following solutions but non worked:
Most of the above attempts are from this issue in Github: https://github.com/Azure/service-fabric-issues/issues/1056