Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,864
Community Members
 
Community Events
168
Community Groups

VSTS Build - BitBucket Cloud Git fetch failed exit code 128 / HTTP 405 Method Not Allowed

Our VSTS builds are intermittently failing when trying to fetch from our BitBucket Cloud repo. A VSTS agent issue on GitHub seems to point to an issue with BitBucket Cloud.

https://github.com/Microsoft/vsts-agent/issues/1778

Here is the output from our build with the errors:

2018-08-27T20:54:44.0215119Z ##[section]Starting: Get sources
2018-08-27T20:54:44.0497993Z ==============================================================================
2018-08-27T20:54:44.0498260Z Task : Get sources
2018-08-27T20:54:44.0498494Z Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2018-08-27T20:54:44.0498741Z Version : 1.0.0
2018-08-27T20:54:44.0498905Z Author : Microsoft
2018-08-27T20:54:44.0499103Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2018-08-27T20:54:44.0499343Z ==============================================================================
2018-08-27T20:54:45.7458347Z Syncing repository: *****/***** (Bitbucket)
2018-08-27T20:54:45.7499117Z Prepending Path environment variable with directory containing 'git.exe'.
2018-08-27T20:54:45.7510409Z ##[command]git version
2018-08-27T20:54:46.8931560Z git version 2.17.1.windows.2
2018-08-27T20:54:47.0251610Z ##[command]git lfs version
2018-08-27T20:54:53.3192743Z git-lfs/2.4.2 (GitHub; windows amd64; go 1.8.3; git 6f4b2e98)
2018-08-27T20:54:53.3483848Z ##[command]git init "D:\a\1\s"
2018-08-27T20:54:54.1422315Z Initialized empty Git repository in D:/a/1/s/.git/
2018-08-27T20:54:54.1508939Z ##[command]git remote add origin https://bitbucket.org//*****/*****
2018-08-27T20:54:54.2751756Z ##[command]git config gc.auto 0
2018-08-27T20:54:54.3579641Z ##[command]git config --get-all http.https://bitbucket.org//*****/*****.extraheader
2018-08-27T20:54:54.3963838Z ##[command]git config --get-all http.proxy
2018-08-27T20:54:54.4401582Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin
2018-08-27T20:55:00.9599977Z fatal: The remote end hung up unexpectedly
2018-08-27T20:55:00.9612560Z error: RPC failed; HTTP 405 curl 22 The requested URL returned error: 405 Method Not Allowed
2018-08-27T20:55:00.9763359Z ##[warning]Git fetch failed with exit code 128, back off 2.852 seconds before retry.
2018-08-27T20:55:03.8311241Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin
2018-08-27T20:55:04.2220663Z remote: Repository /***** not found
2018-08-27T20:55:04.2221774Z fatal: repository 'https://bitbucket.org//*****/*****/' not found
2018-08-27T20:55:04.2285734Z ##[warning]Git fetch failed with exit code 128, back off 7.452 seconds before retry.
2018-08-27T20:55:11.6814357Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin
2018-08-27T20:55:12.2713071Z fatal: The remote end hung up unexpectedly
2018-08-27T20:55:12.2723505Z error: RPC failed; HTTP 405 curl 22 The requested URL returned error: 405 Method Not Allowed
2018-08-27T20:55:14.5677603Z ##[error]System.InvalidOperationException: Git fetch failed with exit code: 128
at Agent.Plugins.Repository.GitSourceProvider.<GetSourceAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Agent.Plugins.Repository.CheckoutTask.<RunAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Agent.PluginHost.Program.Main(String[] args)
2018-08-27T20:55:14.6227004Z ##[section]Finishing: Get sources

 

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,452 views 3 10
Read article

Atlassian Community Events