Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase git post buffer size #80

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Increase git post buffer size #80

merged 1 commit into from
Apr 3, 2024

Conversation

ambersun1234
Copy link
Contributor

@ambersun1234 ambersun1234 commented Mar 29, 2024

Description

I've run into the following error in the build

error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

According to git config documentation

Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.


You can check the error at https://github.com/ambersun1234/ambersun1234.github.io/actions/runs/8483339855/job/23244517355

Fix

This PR adjust the git post buffer size to 524288000

@Tahanima
Copy link

@jeffreytse, can you please look into this? I've experienced the same issue this PR is trying to address.

@Qumatah
Copy link

Qumatah commented Mar 31, 2024

I ran into this issue too! Can confirm that this fixes it!

@TimothyWeng
Copy link

Running into the same issue, is there any way to fix it before merging?

@ambersun1234
Copy link
Contributor Author

@TimothyWeng You can use my fork ambersun1234/jekyll-deploy-action@52f40044bb2a2b5d7365472ed640bfd412689d41

@jeffreytse jeffreytse force-pushed the master branch 7 times, most recently from f121fd9 to 92e8664 Compare April 2, 2024 08:25
@luz-ojeda
Copy link

Is anyone still having similar problems? I'm getting

error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

But I'm not sure if it is related to OP's problem

@jeffreytse jeffreytse force-pushed the master branch 2 times, most recently from cbd1d80 to 9831d7d Compare April 2, 2024 14:31
@jeffreytse
Copy link
Owner

jeffreytse commented Apr 2, 2024

Hi, I recommend to use the ssh approach instead of http approach to avoid the issue, please refer to FAQ.

@ambersun1234
Copy link
Contributor Author

Hi @jeffreytse

Thanks for sharing the ssh approach, it indeed resolve the issue I'm facing right now

However I personally would prefer using http approach instead of ssh, because it simplfy the configuration that ssh needed
Increase git post buffer size can ensure both ssh and http works without issue

@jeffreytse jeffreytse added the enhancement New feature or request label Apr 3, 2024
Copy link
Owner

@jeffreytse jeffreytse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ambersun1234

I'd love to merge your PR. Could you please solve the conflicts firstly?

Thanks & Regards

@jeffreytse jeffreytse self-assigned this Apr 3, 2024
Copy link
Owner

@jeffreytse jeffreytse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@jeffreytse jeffreytse merged commit af39f51 into jeffreytse:master Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants