Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
83 stars 10 forks source link

Partition is below target replica, node is stuck #368

Closed mtalhaoui closed 5 years ago

mtalhaoui commented 5 years ago

I'm trying to run a service fabric mesh applicaton locally in vs 2017, but as soon as the application is build I get some errors and warnings in the service fabric explorer. I am not able to run a hello world application.

Has anybody run into the same issue?

'System.FM' reported Error for property 'State'. Partition is below target replica or instance count. fabric:/Application2/Console1 1 1 d4f26725-aac7-4d82-a803-d442f78101f6 N/P InBuild _Node_0 132042979063713078

'System.RAP' reported Warning for property 'IStatefulServiceReplica.ChangeRole(P)Duration'. The api IStatefulServiceReplica.ChangeRole(P) on node _Node_0 is stuck. Start Time (UTC): 2019-06-06 12:31:51.604.

aloneguid commented 5 years ago

Does the issue persist when you remove the application?

mtalhaoui commented 5 years ago

As soon as the application is closed, it goes away.

aloneguid commented 5 years ago

Can you see it running in local Docker without issues?

mtalhaoui commented 5 years ago

I have tried: docker ps/docker container ls and and they don't display anything.

aloneguid commented 5 years ago

I had this sometimes, which is understandable in preview. Usually it goes away if I right-click and "remove mesh resources" image. Also try to drop all SF related docker containers.

mtalhaoui commented 5 years ago

I have removed the Mesh App Resources. I have removed all the docker containers with the following command: docker system prune.

Now it seems I have an extra error message:

'System.Hosting' reported Error for property 'CodePackageActivation:Console1:EntryPoint:132042976053925389'. There was an error during CodePackage activation.System.Fabric.FabricException (-2147017731) Failed to start Container. ContainerName=sf-5-48102e82-f9dd-419b-81f9-09f9cba20f15_8b3651e9-6139-4287-a5b3-1bba66d9a1d1, ApplicationId=SingleInstance_3_App5, ApplicationName=fabric:/Application2. DockerRequest returned StatusCode=NotFound with ResponseBody={"message":"network servicefabric_nat not found"}

aloneguid commented 5 years ago

I think you might need to re-create Mesh cluster as it adds docker networking component which is gone after prune.

mtalhaoui commented 5 years ago

I have removed the Local Cluster and created a new Mesh 1 node.

I still have the same issue.

mtalhaoui commented 5 years ago

I have tried to use 'reset local cluster' and this seems to have solved the issue caused by the 'docker system prune' command. I now have the original issue again: partition is below target replica.

It appears the issue was not solved by this.

mtalhaoui commented 5 years ago

I've managed to solve this issue.

The problem was in my installation of vs 2017. The installation was seperated over 2 hdd's.