Hi,
I’m running TeamCity Octopack plugin to build and pack releases to octopus. I get lots of octo.exe failures to push the package to Octopus nuget feed. The received error is not helpful either.
Here are 2 identical push requests to the server invoking octo.exe directly. In current example the delta is 0% but could be any number. So sometime it succeeds, sometime it fails with HTTP 400:
“A delta file must be provided” or “a package file must be provided” when using flag “–use-delta-compression=False” - As I understand there is something with the package POST ?
The packages do exist 100%
Powershell log below (octo.exe):
PS D:\TeamCity\buildAgent\temp\buildTmp\octo-temp\3.0> .\octo.exe push --server http://octopus.internal/ --apikey API-MyKey --package D:\TeamCity\buildAgent\work\559890277532598a\My.Package\deploy\My.Package.1.0.21.nupkg --overwrite-mode OverwriteExisting --logLevel verbose
Octopus Deploy Command Line Tool, version 6.17.0
Detected automation environment: “NoneOrUnknown”
DispatchRequest: GET http://octopus.internal/api
DispatchRequest: GET http://octopus.internal/api
DispatchRequest: GET http://octopus.internal/api
DispatchRequest: GET http://octopus.internal/api/spaces
Space name unspecified, process will run in the default space context
Handshaking with Octopus Server: http://octopus.internal/
DispatchRequest: GET http://octopus.internal/api
Handshake successful. Octopus version: 2019.13.0; API version: 3.0.0
DispatchRequest: GET http://octopus.internal/api/users/me
DispatchRequest: GET http://octopus.internal/api/users/Users-1/spaces
DispatchRequest: GET http://octopus.internal/api/Spaces-1
DispatchRequest: GET http://octopus.internal/api/users/me
Authenticated as: user@company.com user@company.com
Pushing package: D:\TeamCity\buildAgent\work\559890277532598a\My.Package\deploy\My.Package.1.0.21.nupkg…
Requesting signature for delta compression from the server for upload of a package with id ‘My.Package’ and version ‘1.0.21’
DispatchRequest: GET http://octopus.internal/api/Spaces-1/packages/My.Package/1.0.21/delta-signature
Calculating delta
The delta file (59 bytes) is 0,00% the size of the orginal file (57 992 654 bytes), uploading…
DispatchRequest: POST http://octopus.internal/api/Spaces-1/packages/My.Package/1.0.21/delta?overwriteMode=OverwriteExisting
Delta transfer completed
Push successful
PS D:\TeamCity\buildAgent\temp\buildTmp\octo-temp\3.0> .\octo.exe push --server http://octopus.internal/ --apikey API-MyKey --package D:\TeamCity\buildAgent\work\559890277532598a\My.Package\deploy\My.Package.1.0.21.nupkg --overwrite-mode OverwriteExisting --logLevel verbose
Octopus Deploy Command Line Tool, version 6.17.0
Detected automation environment: “NoneOrUnknown”
DispatchRequest: GET http://octopus.internal/api
DispatchRequest: GET http://octopus.internal/api
DispatchRequest: GET http://octopus.internal/api
DispatchRequest: GET http://octopus.internal/api/spaces
Space name unspecified, process will run in the default space context
Handshaking with Octopus Server: http://octopus.internal/
DispatchRequest: GET http://octopus.internal/api
Handshake successful. Octopus version: 2019.13.0; API version: 3.0.0
DispatchRequest: GET http://octopus.internal/api/users/me
DispatchRequest: GET http://octopus.internal/api/users/Users-1/spaces
DispatchRequest: GET http://octopus.internal/api/Spaces-1
DispatchRequest: GET http://octopus.internal/api/users/me
Authenticated as: user@company.com user@company.com
Pushing package: D:\TeamCity\buildAgent\work\559890277532598a\My.Package\deploy\My.Package.1.0.21.nupkg…
Requesting signature for delta compression from the server for upload of a package with id ‘My.Package’ and version ‘1.0.21’
DispatchRequest: GET http://octopus.internal/api/Spaces-1/packages/My.Package/1.0.21/delta-signature
Calculating delta
The delta file (59 bytes) is 0,00% the size of the orginal file (57 992 654 bytes), uploading…
DispatchRequest: POST http://octopus.internal/api/Spaces-1/packages/My.Package/1.0.21/delta?overwriteMode=OverwriteExisting
There was a problem with your request.
- A delta file must be provided
Error from Octopus Server (HTTP 400 BadRequest)
Exit code: -7