question

KoserLuke-4415 avatar image
0 Votes"
KoserLuke-4415 asked Monalla-MSFT edited

Unable to push repository to Azure (Error 413)

I'm trying to push a git repository to MS Azure, but it keeps giving the following error.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

"The HTTP 413 Payload Too Large response status code indicates that the request entity is larger than limits defined by server."
The pack file is almost 1GB, so I copied the repo and split it into separate max-100MB files.
git repack --max-pack-size=100m -a
The Azure repo is empty and does not have a file size limit set.

I can push the repo to GitHub without issue (works with both the 1GB pack file and the 100MB pack files), but I'd like to use MS Azure.
I successfully pushed another repository to Azure that was larger (but the pack file was smaller).

Also here's the whole output of the unsuccessful push (the master branch is called "Production").
$ git push --set-upstream origin Production
Enumerating objects: 165849, done.
Counting objects: 100% (165849/165849), done.
Delta compression using up to 12 threads
Compressing objects: 100% (64006/64006), done.
Writing objects: 100% (165849/165849), 878.37 MiB | 94.38 MiB/s, done.
Total 165849 (delta 115879), reused 149929 (delta 100420), pack-reused 0
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

Here's the successful GitHub push output
$ git push --set-upstream origin Production
Enumerating objects: 165849, done.
Counting objects: 100% (165849/165849), done.
Delta compression using up to 12 threads
Compressing objects: 100% (64006/64006), done.
Writing objects: 100% (165849/165849), 876.39 MiB | 94.63 MiB/s, done.
Total 165849 (delta 115882), reused 149926 (delta 100420), pack-reused 0
remote: Resolving deltas: 100% (115882/115882), done.
To (GitHub link)
* [new branch] Production -> Production
Branch 'Production' set up to track remote branch 'Production' from 'origin'.

Do the pack files somehow count as one large file? There's nothing in this repo that exceeds 100 MB after it's been repacked.


Btw, I couldn't find a good tag to list here.

not-supported-azure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered

@KoserLuke-4415 -Welcome to Microsoft Q&A and thanks for reaching out.

Devops is not currently supported here on Microsoft QnA.
The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum:
https://developercommunity.visualstudio.com/spaces/21/index.html
https://azure.microsoft.com/en-in/support/devops/

Hope this helps. and please feel free to reach out if you have any further questions.



If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.