Hi everyone!
We have an offline-drop setup for a couple of deployments where we manually copy packages and deploy them using powershell on the servers. For the deploys we run the .CMD file that is autogenerated with no additional commands.
However we recently started getting errors everytime we try to deploy new packages.
##octopus[setVariable name=“T2N0b3B1cy5BY3Rpb24uU2NyaXB0LkV4aXRDb2Rl” value=“MA==”]
Exception calling “Protect” with “3” argument(s): "The requested operation cannot be completed. The computer must be tr
usted for delegation and the current user account must be configured to allow delegation.
"
At C:\Applications\Deploy packages\PROJECT\2.1.231.21\Resources\Encrypt-WithMachineKey.ps1:9 char:9
$SecureStr = [Security.Cryptography.ProtectedData]::Protect($ ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (
, MethodInvocationException
- FullyQualifiedErrorId : CryptographicException
Exception calling “ToBase64String” with “1” argument(s): “Value cannot be null.
Parameter name: inArray”
At C:\Applications\Deploy packages\PROJECT\2.1.231.21\Resources\Encrypt-WithMachineKey.ps1:10 char:9
$SecureStrBase64 = [System.Convert]::ToBase64String($SecureSt ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (
, MethodInvocationException
- FullyQualifiedErrorId : ArgumentNullException
Unhandled Exception: Calamari.Commands.Support.CommandException: Cannot decrypt output variables.
at Calamari.Integration.Processes.CalamariVariableDictionary.DecryptWithMachineKey(String base64EncodedEncryptedVariables, String password)
at Calamari.Integration.Processes.CalamariVariableDictionary…ctor(String storageFilePath, String sensitiveFilePath, String sensitiveFilePassword, String outputVariablesFilePath, String outputVariablesFilePassword)
at Calamari.Modules.CommonModule.Load(ContainerBuilder builder)
at Autofac.Module.Configure(IComponentRegistry componentRegistry)
at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules)
at Autofac.ContainerBuilder.Build(ContainerBuildOptions options)
at Calamari.Program.Main(String args)
We tried what was suggested in this thread, changing in the registry, on all servers involved. Still no luck.
We do not have any secret / hidden variables for this project in the setup in Octopus.
Another thing to point out is that older versions in thie project can be released, but the last package built was made on 7 February 2018 (More than a year ago), since then we have not made any changes on the server or in Octopus for this project.
My best guess is that this started happening after some Octopus update. Unfortunately since it’s such a long time in between releases for this project it’s impossible for me to pin down which version this changed.
All ideas and help would be greatly appreciated!
Best Regards,
Sebastian