2016-05-30 26 views
5

Tôi gặp sự cố với Azure Service Fabric.Dịch vụ Azure Vải: không thể chạy Cụm vải dịch vụ cục bộ

Tôi đã cài đặt nó (trên Windows 7) như đã nói trong https://azure.microsoft.com/en-gb/documentation/articles/service-fabric-get-started/.

Sau đó, tôi đã thử chạy ứng dụng Vải dịch vụ từ Visual Studio 2015. Tôi gặp lỗi “Connect-ServiceFabricCluster: Không thể kết nối điểm cuối cụm, vui lòng kiểm tra xem có sự cố kết nối/tường lửa/DNS” hay không.

Đây là nhật ký điền của chạy rằng:

1>------ Build started: Project: Application2, Configuration: Debug x64 ------ 
2>------ Deploy started: Project: Application2, Configuration: Debug x64 ------ 
-------- Package started: Project: Application2, Configuration: Debug x64 ------ 
    Application2 -> c:\temp\Application2\Application2\pkg\Debug 
-------- Package: Project: Application2 succeeded, Time elapsed: 00:00:01.7361084 -------- 
2>Started executing script 'Set-LocalClusterReady'. 
2>Import-Module 'C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\DefaultLocalClusterSetup.psm1'; Set-LocalClusterReady 
2>-------------------------------------------- 
2>Local Service Fabric Cluster is not setup... 
2>Please wait while we setup the Local Service Fabric Cluster. This may take few minutes... 
2> 
2>Using Cluster Data Root: C:\SfDevCluster\Data 
2>Using Cluster Log Root: C:\SfDevCluster\Log 
2> 
2>Create node configuration succeeded 
2>Starting service FabricHostSvc. This may take a few minutes... 
2> 
2>Waiting for Service Fabric Cluster to be ready. This may take a few minutes... 
2>Local Cluster ready status: 4% completed. 
2>Local Cluster ready status: 8% completed. 
2>Local Cluster ready status: 12% completed. 
2>Local Cluster ready status: 17% completed. 
2>Local Cluster ready status: 21% completed. 
2>Local Cluster ready status: 25% completed. 
2>Local Cluster ready status: 29% completed. 
2>Local Cluster ready status: 33% completed. 
2>Local Cluster ready status: 38% completed. 
2>Local Cluster ready status: 42% completed. 
2>Local Cluster ready status: 46% completed. 
2>Local Cluster ready status: 50% completed. 
2>Local Cluster ready status: 54% completed. 
2>Local Cluster ready status: 58% completed. 
2>Local Cluster ready status: 62% completed. 
2>Local Cluster ready status: 67% completed. 
2>Local Cluster ready status: 71% completed. 
2>Local Cluster ready status: 75% completed. 
2>Local Cluster ready status: 79% completed. 
2>Local Cluster ready status: 83% completed. 
2>Local Cluster ready status: 88% completed. 
2>Local Cluster ready status: 92% completed. 
2>Local Cluster ready status: 96% completed. 
2>Local Cluster ready status: 100% completed. 
2>WARNING: Service Fabric Cluster is taking longer than expected to connect. 
2> 
2>Waiting for Naming Service to be ready. This may take a few minutes... 
2>Connect-ServiceFabricCluster : **No cluster endpoint is reachable, please check 
2>if there is connectivity/firewall/DNS issue.** 
2>At C:\Program Files\Microsoft SDKs\Service 
2>Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:521 char:12 
2>+  [void](Connect-ServiceFabricCluster @connParams) 
2>+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
2> + CategoryInfo   : InvalidOperation: (:) [Connect-ServiceFabricClus 
2> ter], FabricException 
2> + FullyQualifiedErrorId : TestClusterConnectionErrorId,Microsoft.ServiceFa 
2> bric.Powershell.ConnectCluster 
2> 
2>Naming Service ready status: 8% completed. 
2>Naming Service ready status: 17% completed. 
2>Naming Service ready status: 25% completed. 
2>Naming Service ready status: 33% completed. 
2>Naming Service ready status: 42% completed. 
2>Naming Service ready status: 50% completed. 
2>Naming Service ready status: 58% completed. 
2>Naming Service ready status: 67% completed. 
2>Naming Service ready status: 75% completed. 
2>Naming Service ready status: 83% completed. 
2>Naming Service ready status: 92% completed. 
2>Naming Service ready status: 100% completed. 
2>WARNING: Naming Service is taking longer than expected to be ready... 
2>Local Service Fabric Cluster created successfully. 
2>-------------------------------------------------- 
2>Launching Service Fabric Local Cluster Manager... 
2>You can use Service Fabric Local Cluster Manager (system tray application) to manage your local dev cluster. 
2>Finished executing script 'Set-LocalClusterReady'. 
2>Time elapsed: 00:07:01.8147993 
2>The PowerShell script failed to execute. 
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== 
+0

Bạn đã cố truy cập điểm cuối bằng trình duyệt chưa? – cassandrad

+0

Vâng tôi có. Tôi đã cố gắng đi đến khay Windows \ Service Fabric Local Cluster Manager và mở công cụ Explorer (đây là http: // localhost: 19080/Explorer). Tất nhiên tôi đã gặp lỗi. Nỗ lực mở http: // localhost: 19080/Explorer trong lông mày đã mang đến thông báo "Không thể truy cập trang web này". Điều này có thể xảy ra - tôi thấy rằng các chương trình như Fabric.exe hoặc FabricGateway chưa bắt đầu. Nói cách khác - cụm vải cục bộ của tôi đã được tạo (như thư mục trên C :) nhưng chương trình của nó chưa bắt đầu. –

+2

là dịch vụ FabricHostSvc đã bắt đầu chưa? – cassandrad

Trả lời

5

này đã làm việc cho tôi và tôi stumbled khi các giải pháp trên một diễn đàn MSDN.

Rất có thể thời gian chạy C++ của bạn bị hỏng và cần được cài đặt lại. Bạn sẽ phải tự thực hiện vcredist_x64.exe có thể được tìm thấy tại

C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\vcredist_x64.exe

Khi đã xong, bạn có thể chọn để khởi động lại máy tính của bạn hay không, tôi đã chọn để khởi động lại nó và sau đó chạy các lệnh sau

 C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\CleanCluster.ps1
C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1

Tôi hy vọng điều này sẽ hữu ích!

+0

Làm thế nào bạn thậm chí biết điều đó? Cảm ơn! –

+1

@ Nate-Wilkins tình cờ gặp một bài đăng trên MSDN! tôi đã không có đầu mối này có thể giải quyết nó nhưng tôi đã ở trí thông minh của tôi kết thúc, đã phải thử này ra là tốt và nó chỉ làm việc! –

+0

Bạn có liên kết đến bài đăng trong MSDN không? – konkked

0

Tôi phải ngắt kết nối VPN khỏi văn phòng của mình cũng như chỉ đường mà Varun đã hiển thị ở trên.

Cảm ơn @Varun vì đã chia sẻ điều này !!

Sau khi kết nối VPN, tôi không thể chạy lại hệ thống.

Hy vọng điều này sẽ giúp ai đó.

0

Nếu thời gian chạy C++ không giải quyết được sự cố của bạn, bạn có thể thu hẹp giải pháp xuống chỉ vấn đề về tường lửa. Mạng không cho phép Người dùng chạy dịch vụ FabricHostSvc mà bạn có thể đăng ký dịch vụ.msc, đó là do sự cố bảo mật. Nếu bạn chỉ có thể vô hiệu hóa tường lửa của bạn/thay đổi mạng mà không có giới hạn thì vấn đề sẽ tự giải quyết.

Nếu bạn có thể yêu cầu FabrciHostSvn bắt đầu, vấn đề của bạn sẽ được giải quyết.

Hy vọng điều này sẽ giúp ..

Các vấn đề liên quan