Digest mismatch (VERR_NOT_EQUAL) with correct file (#17357)

This is for discussing general topics about how to use VirtualBox.

Digest mismatch (VERR_NOT_EQUAL) with correct file (#17357)

Postby SergeyBelov » 6. Sep 2016, 21:40


[ModEdit; related ticket: #17357: Import OVF fails with Digest mismatch (VERR_NOT_EQUAL): Attribute 'SHA1']

I get an error when importing OVA (Kaspersky Secure Mail Gateway):
Code: Select all   Expand viewCollapse view
Digest mismatch (VERR_NOT_EQUAL): Attribute 'SHA1' on 'ksmg-1.0.0-557.x86_64.ovf' does not match ('FFAF6942EEBEBF68C991F53363B071038E874656' vs. 'ffaf6942eebebf68c991f53363b071038e874656').

Result Code:
VBOX_E_FILE_ERROR (0x80BB0004)
Component:
ApplianceWrap
Interface:
IAppliance {8398f026-4add-4474-5bc3-2f9f2140b23e}


Hashes equal except capital letters.

Is this a bug?

I try VirtualBox 5.1.4 at Windows 7 SP1 x86.
Last edited by socratis on 8. Dec 2017, 00:23, edited 2 times in total.
Reason: Added ticket related information.
SergeyBelov
 
Posts: 3
Joined: 6. Sep 2016, 21:15

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

Postby scottgus1 » 7. Sep 2016, 18:00

I haven't imported an appliance in a long while. Do you have to provide one of those hashes? If so, just go through the hash value you provide and replace every letter with the opposite case and try again. If you don't provide the hash, maybe it's in the files describing the appliance and you could change the hash in some sort of configuration file.

The hash values appear to be in the hexadecimal range, 0-9, A-F. Case isn't supposed to matter, but the two hashes in your error message do in fact not technically match because, for example, F is not f in computer codes. Higher-level programming languages have commands to automatically switch case on the letters to handle such case issues. Maybe someone forgot to throw in a "Ucase()"?
running version 5.1.6 & 5.0.24
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
 
Posts: 3455
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: XP SBS2003 Win7

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

Postby SergeyBelov » 8. Sep 2016, 18:08

Thanks for your reply.

I can't change OVA because it's signeg. All hashes in OVA (in ksmg-1.0.0-557.x86_64.mf) are correct but written capital.
Code: Select all   Expand viewCollapse view
SHA1(ksmg-1.0.0-557.x86_64.ovf)= FFAF6942EEBEBF68C991F53363B071038E874656
SHA1(ksmg-1.0.0-557.x86_64-disk1.vmdk)= B34834ADFFEEE4FA43479026ABDC6AD0E6EC31C6
SHA1(ksmg-1.0.0-557.x86_64-disk2.vmdk)= E16BA1F6DCA824B84B6A01E94A05F3DB76DCEFC7
SHA1(ksmg-1.0.0-557.x86_64-disk3.vmdk)= 5251A1E9A679371C0BFBF70178F5321BB91E613E
SHA1(ksmg-1.0.0-557.x86_64-disk4.vmdk)= C915EF32279F42747765952FDB21BFB26F7F86A5
SHA1(ksmg-1.0.0-557.x86_64-disk5.vmdk)= 7EC5C11137CC02F4BCCCAAD35BD7E7226B34E23D


scottgus1 wrote:Maybe someone forgot to throw in a "Ucase()"?

I think so.
SergeyBelov
 
Posts: 3
Joined: 6. Sep 2016, 21:15

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

Postby SergeyBelov » 8. Sep 2016, 18:10

Should I write bug report?
SergeyBelov
 
Posts: 3
Joined: 6. Sep 2016, 21:15

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

Postby scottgus1 » 8. Sep 2016, 18:55

Sounds like a good idea. See Bugtracker

Meanwhile, you might look into how to extract all the info within the appliance - the virtual disk file and settings information - and try to set up a Virtualbox guest maually.
running version 5.1.6 & 5.0.24
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
 
Posts: 3455
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: XP SBS2003 Win7

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

Postby MarcT » 7. Dec 2017, 21:52

I ran into the same issue and have just opened ticket 17357

Kind Regards,

Marc
Last edited by socratis on 8. Dec 2017, 00:21, edited 1 time in total.
Reason: Added missing URL.
MarcT
 
Posts: 1
Joined: 7. Dec 2017, 21:50

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

Postby socratis » 8. Dec 2017, 00:22

Thank you for including the ticket number. I added the ticket information in the first post.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12684
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to Using VirtualBox

Who is online

Users browsing this forum: No registered users and 14 guests