The octopus upgrade to from 3.3.x to 2018.4.4 has been failed.
with the following message
2018-04-23 10:21:27.3196 3668 1 ERROR Upgrade failed due to an unexpected exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object , Type )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at Octopus.Core.UpgradeScripts.Script0045AddDefaultMachinePolicyToExistingTentacles.ApplyDefaultMachinePoliciesIfRequired(IDataRecord record, Func
1 commandFactory, String tentacleMachinePolicyId) at Octopus.Core.UpgradeScripts.Script0045AddDefaultMachinePolicyToExistingTentacles.ProvideScript(Func1 commandFactory)
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
2018-04-23 10:21:27.3766 3668 1 FATAL Failed to upgrade the database ‘Octopus’ on SQL Server at ‘xxxxxxx’ to the expected schema running as ‘xxx\IGinzburg’: The reason should be logged above.
All changes have been rolled back to the last known good state. If you know what the problem is and how to fix it, please fix the problem and then run the same command to try the upgrade again. Otherwise you should reinstall the version of Octopus Server you just upgraded from, and then contact our support team for help resolving this problem.