Azure Service Fabric: Errors on node when using RunAs User policy & non local admin
See original GitHub issueHi,
When using EventFlow on an on premise cluster and the <RunAsPolicy CodePackageRef="Code" UserRef="SqlUser" />
construct in the ApplicationManifest.xml; I get the following error.
The object is closed. at System.Fabric.Interop.Utility.WrapNativeSyncInvoke[TResult](Func
1 func, String functionTag, String functionArgs) at System.Fabric.Interop.Utility.WrapNativeSyncInvoke(Action action, String functionTag, String functionArgs) at System.Fabric.Interop.Utility.RunInMTA(Action action) at System.Fabric.FabricClient.HealthClient.ReportHealth(HealthReport healthReport) at Microsoft.Diagnostics.EventFlow.ServiceFabric.ServiceFabricHealthReporter.ReportMessage(HealthState healthState, String description) at Microsoft.Diagnostics.EventFlow.DiagnosticPipelineFactory.ReportItemCreationFailedAndThrow(IHealthReporter healthReporter, String itemType, Exception e) at Microsoft.Diagnostics.EventFlow.DiagnosticPipelineFactory.ProcessSection[PipelineItemType,PipelineItemChildType](IConfigurationSection configurationSection, IHealthReporter healthReporter, IDictionary
2 itemFactories, IDictionary`2 childFactories, String childSectionName) at Microsoft.Diagnostics.EventFlow.DiagnosticPipelineFactory.CreatePipeline(IConfiguration configuration, IHealthReporter healthReporter) at Program.Main() in C:\dev\Service\Program.cs:line 21
This translates to an error on the line:
using (diagnosticsPipeline = ServiceFabricDiagnosticPipelineFactory.CreatePipeline("AcmeService"))
This error does not appear if the account named in the RunAs policy is a member of the LocalAdministrators group on the node. This is not an ideal security group for our user though.
Can anyone help?
Thanks in advance.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8
Top GitHub Comments
Cool, thx. @knowhoper fix is on the way, will let you know when it is available on nuget.org
I assume this has been fixed. Feel free to complain if it is still not working for you.