[Mono-dev] Data protection failed exception

Brandon Perry bperry.volatile at gmail.com
Thu Jan 21 22:59:20 UTC 2016


> On Jan 21, 2016, at 4:56 PM, Neale Ferguson <neale at sinenomine.net> wrote:
> 
> 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.:::::

Can you disable SELinux and test? That’s not a solution, but can help whittle down suspects. Data protection sounds like memory is being marked funny and SELinux might be getting in the way.


> 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
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160121/b6019097/attachment.pgp>


More information about the Mono-devel-list mailing list