I am new to Octopus. We upload packages from TeamCity to Octopus. The upload of small nupkg is working fine.
Now we have a big (700 MB) file to upload and we get this exception:
System.Threading.Tasks.TaskCanceledException: A task was canceled.
Here is the log:
Octopus Deploy Command Line Tool, version 4.0.1+Branch.develop.Sha.56eb507e555e18c19368a50a40655ec753728997
[22:50:32]Handshaking with Octopus server: http://[myhostname]:7001
[22:50:32]Handshake successful. Octopus version: 3.5.1; API version: 3.0.0
[22:50:32]Authenticated as: myuser
[22:50:32]Pushing package: MyBigFilezip…
[22:52:12]System.Threading.Tasks.TaskCanceledException: A task was canceled.
Does anybody know, what is going wrong here? Thanks!
Thanks for getting in touch. Unfortunately it looks like you are running into a bug with version 4 of our command line tool. We recently changed some of its internals, and it looks like we are no longer overriding the default timeout settings on HTTP requests. The default timeout is 1m:40s and you can seed in your logs that’s exactly when it is failing. I’ve created a bug in our tracker that you can follow here: https://github.com/OctopusDeploy/Issues/issues/2909. In the meantime you can download the last pre-4 version of the tool here: https://download.octopusdeploy.com/octopus-tools/3.5.4/OctopusTools.3.5.4.zip. It shouldn’t have this issue.
I hope that helps.
Just letting you know I’ve published Octo.exe 4.0.4, which contains a fix which extends the timeout to 10 minutes.