I’m experiencing a strange problem with the way Octopus Deploy handles deltas with Octodiff. It seems to mix up to different packages, with almost the same name,
Company.Project.Integration.nupkg & Company.Project.Integration.ServiceHub.Host.nupkg.
This only happens when Octopus is diffing two packages with almost the same name.
If I change the release-number from Company.Project.Integration.ServiceHub.Host.0.0.0-dev-20150805-r5 to eg. Company.Project.Integration.ServiceHub.Host.0.0.0-dev-20150806-r1, everything works. But it seems Octodiff isn’t used in this scenario.
Building delta for Company.Project.Integration 0.0.0-dev-20150805-r6
Using package D:\Octopus\OctopusServer\PackageCache\feeds-ourfeed\Company.Project.Integration.ServiceHub.Host.0.0.0-dev-20150805-r5_E5E892B5DD6FFE48B6DC5BE3EC8453DA.nupkg with hash 9dcfb3953be89fc430bd6ee57ca52e238255f097 for creating delta
Original package was 9 MB, delta file is 640 KB
Uploading and applying delta Company.Project.Integration.0.0.0-dev-20150805-r5_to_0.0.0-dev-20150805-r6.octodelta
Applying delta to D:\Octopus\Files\Company.Project.Integration.ServiceHub.Host.0.0.0-dev-20150805-r5.nupkg-f6d486fc-5a38-4506-adb7-1f0cef4ee81d with hash 9dcfb3953be89fc430bd6ee57ca52e238255f097 and storing as D:\Octopus\Files\Company.Project.Integration.0.0.0-dev-20150805-r6.nupkg-54b7fb80-50ca-43ea-b748-999ba187a607
Applying delta: 0%
Applying delta: 50%
Error: Verification of the patched file failed. The SHA1 hash of the patch result file, and the file that was used as input for the delta, do not match. This can happen if the basis file changed since the signatures were calculated.
The following command:D:\Octopus\Calamari\22.214.171.1244\Octodiff.exe
Failed with exit code: 4
Calamari.Integration.Processes.CommandLineException: The following command:D:\Octopus\Calamari\126.96.36.1994\Octodiff.exe
at Calamari.Commands.ApplyDeltaCommand.Execute(String commandLineArguments) in y:\work\b1fd300731d5f2fc\source\Calamari\Commands\ApplyDeltaCommand.cs:line 76
at Calamari.Program.Main(String args) in y:\work\b1fd300731d5f2fc\source\Calamari\Program.cs:line 18```
I'm using Octopus 188.8.131.527.
Any help on this is appreciated.
Thanks for gettin in touch. This was fixed in 3.0.5 https://github.com/OctopusDeploy/Issues/issues/1755
Please try to update to the latest (3.0.10) https://octopusdeploy.com/downloads
From our side, we stil have this issue :
[09:48:03][Success: Uploading and applying delta GisModule.Api.2.11.1-Integration_to_2.11.1-Integration.octodelta] Calamari.Integration.Processes.CommandLineException: The following command:T:\Octopus\Calamari\184.108.40.2066\Octodiff.exe
[09:48:03][Success: Uploading and applying delta GisModule.Api.2.11.1-Integration_to_2.11.1-Integration.octodelta] Failed with exit code: 4
[09:48:03][Success: Uploading and applying delta GisModule.Api.2.11.1-Integration_to_2.11.1-Integration.octodelta] at Calamari.Commands.ApplyDeltaCommand.Execute(String commandLineArguments) in Y:\work\b1fd300731d5f2fc\source\Calamari\Commands\ApplyDeltaCommand.cs:line 76
[09:48:03][Success: Uploading and applying delta GisModule.Api.2.11.1-Integration_to_2.11.1-Integration.octodelta] at Calamari.Program.Main(String args) in Y:\work\b1fd300731d5f2fc\source\Calamari\Program.cs:line 21
Could you please send us the full deployment log and also tell us which version of Octopus are you running?
We running the version 3.0.22. The deployment is done through Teamcity (plugin version 220.127.116.11)
ServerTasks-5728.log.txt (9 KB)
I’m gonna pass your log to our “delta compression expert” (aka Henrik) and get back to you on this one. In the meantime, you can turn off the delta compression by setting the variable
false. This should allow you to at least continue with your depoyment.
Any update on this issue because we are using version 3.1.5 and the error still appears.
This can happen if you have something on the Tentacle server that monitors files etc (i.e. security software or whatnot), easiest thing to do would be to turn delta compression off by setting the variable
false, or setup exclusion rules in the security software (if you have one running).