[Mono-dev] Data protection failed exception

Neale Ferguson neale at sinenomine.net
Thu Jan 21 22:56:26 UTC 2016


Does this problem description ring any bells before I go too much further
problem shooting (done a couple of hours already, so should have sent this
first!):

1. Application Version: Mono 4.3
2. redhat 5.1-5.3
3. intel x86
4. Priority: 20 
5. Description: Data protection failed.::::: at
System.Security.Cryptography.ProtectedData.Protect

Details of our issue:
When trying to do an Process.Start() to start a process I will get this
error:

Data protection failed.::::: at
System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy, DataProtectionScope scope)
<0x41723770  0x00127> in <filename unknown>:0
at Drms.Shared.Common.Core.CryptoCore.ProtectLocal (System.Byte[] data,
System.Byte[] extraEntropy, ProtectionScope scope) <0x41723470  0x0023b>
in <filename unknown>:0
at Drms.Shared.Common.Core.CryptoCore.ProtectLocal (System.String data,
System.Byte[] extraEntropy, ProtectionScope scope) <0x41722e80  0x0004f>
in <filename unknown>:0
at Drms.Server.Shared.Scheduling.JobProcess.Execute (Guid jobId, Guid
repositoryId, ProcessPriorityClass priorityClass, Int32 numberOfProcesses,
System.String username, System.String password) <0x417228a0  0x0027f> in
<filename unknown>:0
at Drms.Server.Service.Manager.ServiceManager.RunJob (Guid jobId, Guid
repositoryId, ProcessPriorityClass priorityClass, Int32 numberOfProcesses)
<0x41720c50  0x00547> in <filename unknown>:0 :::::False
[06:08:10] Info Message: Error Launching!!! Data protection failed.:::::
at System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy, DataProtectionScope scope)
<0x41723770  0x00127> in <filename unknown>:0
at Drms.Shared.Common.Core.CryptoCore.ProtectLocal (System.Byte[] data,
System.Byte[] extraEntropy, ProtectionScope scope) <0x41723470  0x0023b>
in <filename unknown>:0
at Drms.Shared.Common.Core.CryptoCore.ProtectLocal (System.String data,
System.Byte[] extraEntropy, ProtectionScope scope) <0x41722e80  0x0004f>
in <filename unknown>:0
at Drms.Server.Shared.Scheduling.JobProcess.Execute (Guid jobId, Guid
repositoryId, ProcessPriorityClass priorityClass, Int32 numberOfProcesses,
System.String username, System.String password) <0x417228a0  0x0027f> in
<filename unknown>:0
at Drms.Server.Service.Manager.ServiceManager.RunJob (Guid jobId, Guid
repositoryId, ProcessPriorityClass priorityClass, Int32 numberOfProcesses)
<0x41720c50  0x00547> in <filename unknown>:0 :::::False
[06:08:10] Info Message: Error Launching!!! Data protection failed.:::::
at System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy, DataProtectionScope scope)
<0x41723770  0x00127> in <filename unknown>:0
at Drms.Shared.Common.Core.CryptoCore.ProtectLocal (System.Byte[] data,
System.Byte[] extraEntropy, ProtectionScope scope) <0x41723470  0x0023b>
in <filename unknown>:0
at Drms.Shared.Common.Core.CryptoCore.ProtectLocal (System.String data,
System.Byte[] extraEntropy, ProtectionScope scope) <0x41722e80  0x0004f>
in <filename unknown>:0
at Drms.Server.Shared.Scheduling.JobProcess.Execute (Guid jobId, Guid
repositoryId, ProcessPriorityClass priorityClass, Int32 numberOfProcesses,
System.String username, System.String password) <0x417228a0  0x0027f> in
<filename unknown>:0
at Drms.Server.Service.Manager.ServiceManager.RunJob (Guid jobId, Guid
repositoryId, Proc


This doesn't happen all the time and is random and it always works as root
but as a standard user I would get this error. Is there any way to turn
off whatever security check this is trying to do since we really don't
care?


Neale



More information about the Mono-devel-list mailing list