简体   繁体   English

使用中的文件错误服务结构

[英]File in use Error service Fabric

I have a really annoying issue with service fabric where I am now getting a file in use error 我在使用服务结构时遇到一个非常烦人的问题,现在我收到一个文件使用错误

This makes no sense because I have reset the cluster, rebooted, etc and nothing works 这没有任何意义,因为我已重置集群,重新启动等,但没有任何效果

The problem is that the message is useless 问题是消息无用

    12>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command ". 'PATH\Scripts\Deploy-FabricApplication.ps1' -ApplicationPackagePath 'PATH\pkg\Debug' -PublishProfileFile 'PATH\PublishProfiles\Local.5Node.xml' -DeployOnly:$true -ApplicationParameter:@{} -UnregisterUnusedApplicationVersionsAfterUpgrade $false -OverrideUpgradeBehavior 'None' -OverwriteBehavior 'Always' -SkipPackageValidation:$true -ErrorAction Stop"
12>Copying application to image store...
12>Upload to Image Store succeeded
12>Registering application type...
12>Register-ServiceFabricApplicationType : One or more errors occurred. --> AggregateException: One or more errors 
12>occurred. --> FileLoadException: The process cannot access the file because it is being used by another process. 
12>(Exception from HRESULT: 0x80070020)
12>At C:\Program Files\Microsoft SDKs\Service 
12>Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:251 char:9
12>+         Register-ServiceFabricApplicationType -ApplicationPathInImage ...
12>+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12>    + CategoryInfo          : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [Register-Servic 
12>   eFabricApplicationType], FabricException
12>    + FullyQualifiedErrorId : RegisterApplicationTypeErrorId,Microsoft.ServiceFabric.Powershell.RegisterApplicationTyp 
12>   e
12> 
12>Finished executing script 'Deploy-FabricApplication.ps1'.
12>Time elapsed: 00:00:45.6667428
12>The PowerShell script failed to execute.

How can I get more information about the exact file that is in use? 如何获得有关正在使用的确切文件的更多信息?

I am trying to deploy into a dev cluster 我正在尝试部署到开发集群中

Cheers 干杯

Paul 保罗

这似乎是由趋势实时扫描仪引起的!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM