Calamari.exe deploy-package error

I have a PowerShell script used to manually deploy a Nuget package onto client PCs. The following error is being thrown, although the install works perfectly well via the Octopus GUI.

Octopus version: v2018.10.2 LTS
Tentacle version on the client 3.3.4

Any ideas?

Value cannot be null.
Parameter name: path
System.ArgumentNullException
at Alphaleonis.Win32.Filesystem.Path.GetLongPathCore(String path, GetFullPath
Options options)
at Alphaleonis.Win32.Filesystem.Path.GetFullPathCore(KernelTransaction transa
ction, String path, GetFullPathOptions options)
at Alphaleonis.Win32.Filesystem.Path.GetExtendedLengthPathCore(KernelTransact
ion transaction, String sourcePath, PathFormat pathFormat, GetFullPathOptions op
tions)
at Alphaleonis.Win32.Filesystem.Directory.CreateDirectoryCore(KernelTransacti
on transaction, String path, String templatePath, ObjectSecurity directorySecuri
ty, Boolean compress, PathFormat pathFormat)
at Calamari.Integration.FileSystem.LongPathsDirectory.CreateDirectory(String
path)
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.EnsureDirectory
Exists(String directoryPath)
at Calamari.Deployment.Journal.DeploymentJournal.Write(IEnumerable`1 elements
)
at Calamari.Deployment.Journal.DeploymentJournal.AddJournalEntry(JournalEntry
entry)
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArgumen
ts)
at Calamari.Program.Execute(String[] args)

Hi Paul,
Could you please confirm what you mean when you say you are performing a manual deployment, and that it works file using the Octopus GUI. Are you using offline drop targets to generate scripts that you then invoke? It sounds like it is failing to invoke because a TentacleJournal environment variable is missing. This is something that we always set during deployments.
Rob

Hi Rob,

Yes, we are working with offline drop targets. The script we have written invoke the generated scripts. I am looking at the possibility of mismatches in Calamari and tentacle versions, but was interested in any pointers you could provide.

Paul

Paul, are you running the .cmd files tat are generated as part of the offline drop or trying to run each step individually? Could you send through an example of how this is done.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.