gpt4 book ai didi

Azure 辅助角色在 osFamily ="2"(服务器 2008R2)上运行,但在 osFamily ="3"(服务器 2012)上失败

转载 作者:行者123 更新时间:2023-12-04 19:12:16 26 4
gpt4 key购买 nike

我们有一个 Azure 辅助角色 - .NET 4.0 - 在部署到 osFamily="2"(Server 2008R2) 上的 Azure 时运行良好。但是,当我们使用 osFamily="3"(Server 2012) 进行部署并且没有其他代码更改时,辅助角色会不断回收,并在服务器事件日志中出现以下 2 个错误:

Faulting application name: WaWorkerHost.exe, version: 6.0.6002.18488, time stamp: 0x505cf7ca Faulting module name: KERNELBASE.dll, version: 6.2.9200.16384, time stamp: 0x5010ab2d Exception code: 0xe0434352 Fault offset: 0x00000000000189cc Faulting process id: 0xefc Faulting application start time: 0x01cdd4318f76d221 Faulting application path: E:\base\x64\WaWorkerHost.exe Faulting module path: D:\Windows\system32\KERNELBASE.dll Report Id: cf1810b0-4024-11e2-93ec-00155d4250e3 Faulting package full name: Faulting package-relative application ID:

Application: WaWorkerHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException Stack: at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()

有什么想法吗?

更新 ------------------ 发现第三个异常:

Application: WaWorkerHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Security.Cryptography.CryptographicException Stack: at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()

我们正在使用 LocalComputer/My 中的证书来解密连接字符串。证书已成功部署到 OsFamily="2"(Server 2008R2),并将工作角色用户添加到私钥中(在 RDP session 中验证)。但是,对于 OsFamily="3"(Server 2012) - 证书未部署,因此出现加密错误。跟进 Azure 支持...呃。

最佳答案

来自 Azure 支持工程师:

After digging deeper, I found the difference: In OS Family 2, WaWorkerHost is running by a temporary account (with a GUID name) generated by Role initialization process, this account has permission to access certificate private key; In OS Family 3, WaWorkerHost is running by “NETWORK SERVICE” account, this account doesn’t have private key access permission.

I’m contacting production group, we will investigate this issue deeper. I will keep you posted.

关于Azure 辅助角色在 osFamily ="2"(服务器 2008R2)上运行,但在 osFamily ="3"(服务器 2012)上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13757127/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com