Tentacle Upgrade folder continues to grow

Hi

On our deployment targets, we’ve noticed that the C:\Octopus\Upgrade folder is growing quite significantly. Each day a few folders are added which are each just under 500MB.

There is an install log in each folder where it appears that the upgrade was attempted but failed:

Octopus.Tentacle.Upgrader 6.1.670 started…
Octopus upgrader version 6.1.670.0
Current directory: C:\Octopus\Upgrade\20210621231938-54M8H
Arguments:
[0] = “OctopusDeploy Tentacle”
[1] = “C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle.msi”
[2] = “C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle-x64.msi”
Upgrade mutex acquired
Stopping Tentacle services
Stopping service: OctopusDeploy Tentacle
Stopping service…
Waiting for service to stop. Current status: StopPending
Waiting for service to stop. Current status: Stopped
Service stopped
Starting MSI installer
Running MSIEXEC on MSI: C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle-x64.msi, output will go to: UpgradeLog-MsiExec-0c45447a-3bab-4d90-a6ff-c361ae3a62c5.txt
MSIEXEC exit code was: 1603
Tentacle upgrade attempt #1 faulted, retrying in 00:00:01
Running MSIEXEC on MSI: C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle-x64.msi, output will go to: UpgradeLog-MsiExec-0c45447a-3bab-4d90-a6ff-c361ae3a62c5-1.txt
MSIEXEC exit code was: 1603
Tentacle upgrade attempt #2 faulted, retrying in 00:00:01
Running MSIEXEC on MSI: C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle-x64.msi, output will go to: UpgradeLog-MsiExec-0c45447a-3bab-4d90-a6ff-c361ae3a62c5-2.txt
MSIEXEC exit code was: 1603
Tentacle upgrade attempt #3 faulted, retrying in 00:00:01
Running MSIEXEC on MSI: C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle-x64.msi, output will go to: UpgradeLog-MsiExec-0c45447a-3bab-4d90-a6ff-c361ae3a62c5-3.txt
MSIEXEC exit code was: 1603
Tentacle upgrade attempt #4 faulted, retrying in 00:00:01
Running MSIEXEC on MSI: C:\Octopus\Upgrade\20210621231938-54M8H\Octopus.Tentacle-x64.msi, output will go to: UpgradeLog-MsiExec-0c45447a-3bab-4d90-a6ff-c361ae3a62c5-4.txt
MSIEXEC exit code was: 1603
Tentacle upgrade attempt #5 faulted, retrying in 00:00:01
Tentacle upgrade failed. This may be due to a pending reboot of this server.
Starting: OctopusDeploy Tentacle
Waiting for service to start. Current status: StartPending
Waiting for service to start. Current status: Running
Service started

The corresponding MSI logs had this:

MSI (s) (78:24) [01:21:20:938]: Product: Octopus Deploy Tentacle – Error 1714. The older version of Octopus Deploy Tentacle cannot be removed. Contact your technical support group. System Error 1612.

On one server this grew so much it consumed nearly all available hard disk space.

How do we stop this from happening? Should a failed tentacle upgrade not clean up all files (possibly excluding the log files)?

Thanks

Guy

Hi @guy

Thanks for getting in touch, and sorry to hear that you’ve run into this issue with a tentacle upgrade.

It looks like the previous MSI installation source may have been removed from your machine, which is likely causing the uninstall to fail and giving the 1612 error code. You can read more about how that works here

Could you try manually removing the old tentacle by following our guide here and then attempt to install the new MSI again, please?

I’ll look into how failed upgrades are handled and check if this is expected behaviour or not.

Please let me know if manually uninstalling the tentacle gets you in a good state.

Regards,

Hi

I was able to use the Microsoft Fixit to remove the Tentacle despite the missing MSI file as you suspected.
After doing that, I reinstalled the tentacle with the latest version, and the problem hasn’t re-appeared, so it looks like the missing MSI was indeed the cause on both servers we saw this on.

Thank you for the help

Guy

Hi @guy

Great to hear that you’re in a good state now! Thank you for letting me know.

Regards,

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