{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1854","repository_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent","labels_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1854/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1854/comments","events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1854/events","html_url":"https://github.com/Microsoft/azure-pipelines-agent/issues/1854","id":364716339,"node_id":"MDU6SXNzdWUzNjQ3MTYzMzk=","number":1854,"title":"Publish artifact fails on last chunk","user":{"login":"laurre","id":4069572,"node_id":"MDQ6VXNlcjQwNjk1NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4069572?v=4","gravatar_id":"","url":"https://api.github.com/users/laurre","html_url":"https://github.com/laurre","followers_url":"https://api.github.com/users/laurre/followers","following_url":"https://api.github.com/users/laurre/following{/other_user}","gists_url":"https://api.github.com/users/laurre/gists{/gist_id}","starred_url":"https://api.github.com/users/laurre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurre/subscriptions","organizations_url":"https://api.github.com/users/laurre/orgs","repos_url":"https://api.github.com/users/laurre/repos","events_url":"https://api.github.com/users/laurre/events{/privacy}","received_events_url":"https://api.github.com/users/laurre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-28T02:17:19Z","updated_at":"2018-10-09T14:18:42Z","closed_at":null,"author_association":"NONE","body":"Not sure it's the right project to report this one...\r\n\r\n## Have you tried trouble shooting?\r\nActivated System.Debug, but I don't get more traces than I already have. \r\nI can't access my build agent right now to extract the diag logs, I will add the traces as soon as I can.\r\n\r\n## Agent Version and Platform\r\nvsts-agent-linux-x64-2.140.0\r\n\r\nUbuntu 16.04\r\n\r\n## VSTS Type and Version\r\ndev.azure.com\r\n\r\n## What's not working?\r\nMy artifact won't upload. It always fails on the last chunk to upload with an internal error. See traces:\r\n\r\n> 2018-09-27T23:45:22.6334079Z Start uploading file 'my_file.tar.gz' to server, chunk '369'.\r\n> 2018-09-27T23:45:22.6354101Z Chunk '369' attempt '1' of file 'my_file.tar.gz' fail to send request to server. Error: Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: TF400898: An Internal Error Occurred. Activity Id: 12c64c76-cb45-445f-aa8d-fcb5ddccbee6. ---> System.IO.InvalidDataException: TF400898: An Internal Error Occurred. Activity Id: 12c64c76-cb45-445f-aa8d-fcb5ddccbee6.\r\n>    --- End of inner exception stack trace ---\r\n>    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__53.MoveNext()\r\n> --- End of stack trace from previous location where exception was thrown ---\r\n>    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n>    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n>    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__51.MoveNext()\r\n> --- End of stack trace from previous location where exception was thrown ---\r\n>    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n>    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n>    at Microsoft.VisualStudio.Services.FileContainer.Client.FileContainerHttpClient.<UploadFileAsync>d__16.MoveNext().\r\n> 2018-09-27T23:45:22.6374007Z Backoff 9.76 seconds before attempt '2' chunk '369' of file 'my_file.tar.gz'.\r\n> 2018-09-27T23:45:22.6389557Z Attempt '2' for uploading chunk '369' of file 'my_file.tar.gz'.\r\n> 2018-09-27T23:45:22.6405163Z Generate new HttpRequest for uploading file 'my_file.tar.gz', chunk '369' of '369'.\r\n> 2018-09-27T23:45:22.6420605Z Start uploading file 'my_file.tar.gz' to server, chunk '369'.\r\n> 2018-09-27T23:45:22.6440247Z Chunk '369' attempt '2' of file 'my_file.tar.gz' fail to send request to server. Error: Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: TF400898: An Internal Error Occurred. Activity Id: 9ff7537a-5b52-46a7-b6cc-8728634230c6. ---> System.IO.InvalidDataException: TF400898: An Internal Error Occurred. Activity Id: 9ff7537a-5b52-46a7-b6cc-8728634230c6.\r\n>    --- End of inner exception stack trace ---\r\n>    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__53.MoveNext()\r\n> --- End of stack trace from previous location where exception was thrown ---\r\n>    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n>    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n>    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__51.MoveNext()\r\n> --- End of stack trace from previous location where exception was thrown ---\r\n>    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n>    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n>    at Microsoft.VisualStudio.Services.FileContainer.Client.FileContainerHttpClient.<UploadFileAsync>d__16.MoveNext().\r\n> 2018-09-27T23:45:22.6460411Z Backoff 8.523 seconds before attempt '3' chunk '369' of file 'my_file.tar.gz'.\r\n> 2018-09-27T23:45:22.6475990Z Attempt '3' for uploading chunk '369' of file 'my_file.tar.gz'.\r\n> 2018-09-27T23:45:22.6491513Z Generate new HttpRequest for uploading file 'my_file.tar.gz', chunk '369' of '369'.\r\n> 2018-09-27T23:45:22.6507248Z Start uploading file 'my_file.tar.gz' to server, chunk '369'.\r\n> 2018-09-27T23:45:22.6522710Z 1 files failed to upload, retry these files after a minute.\r\n\r\n## Agent and Worker's Diagnostic Logs\r\nCan't access this at the moment, will provide the details soon\r\n\r\nI think the internal error tells that something unexpected happened\r\n\r\nAny thoughts on this ?"},"comment":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/comments/428210395","html_url":"https://github.com/Microsoft/azure-pipelines-agent/issues/1854#issuecomment-428210395","issue_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1854","id":428210395,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODIxMDM5NQ==","user":{"login":"laurre","id":4069572,"node_id":"MDQ6VXNlcjQwNjk1NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4069572?v=4","gravatar_id":"","url":"https://api.github.com/users/laurre","html_url":"https://github.com/laurre","followers_url":"https://api.github.com/users/laurre/followers","following_url":"https://api.github.com/users/laurre/following{/other_user}","gists_url":"https://api.github.com/users/laurre/gists{/gist_id}","starred_url":"https://api.github.com/users/laurre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurre/subscriptions","organizations_url":"https://api.github.com/users/laurre/orgs","repos_url":"https://api.github.com/users/laurre/repos","events_url":"https://api.github.com/users/laurre/events{/privacy}","received_events_url":"https://api.github.com/users/laurre/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T14:18:42Z","updated_at":"2018-10-09T14:18:42Z","author_association":"NONE","body":"When reading the logs, I can see:\r\n\r\nBegin chunking upload file 'galaxy-update/axiom2-update-1.0.34-SNAPSHOT.tar.gz', chunk size '4194304 Bytes', total chunks '370'. \r\n\r\n4194304 * 370 => 1551892480\r\n\r\nWhen I check the size of my tar.gz file, I get 1564851948.\r\n\r\nSo the number of chunks seem too few, it should be 374 chunks...\r\n\r\nHow can that happen ?"}}
{"actor":{"display_login":"laurre"}}