I am trying to publish a new repository to github. It was previously a repository with a commit and some files, but I ran into this issue during a commit and reset the repo in an attempt to solve the problem.
When I push in github desktop I get:
"error: RPC failed; curl 56 Send failure: Connection was reset
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date"
I have tried resetting the http.postBuffer
to a large value in git bash (although none of the files are especially large) without success. I have created and pushed a new, empty repo since this problem arose and didn’t have any problems.
I found a similar issue, #6485, and per a suggestion there ran Go to Repository > Open in command prompt in GitHub Desktop and run the following commands:
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
git push origin <branch>
The results were:
Host: github.com
Authorization: Basic UGVyc29uYWxBY2Nlc3NUb2tlbjozYTE4Yzk1NzI5YTljOTEzODkxYTYyMmViY2UwNDE1MmJlZWIwOTAy
User-Agent: git/2.26.2.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: GitHub Babel 2.0
< Content-Type: application/x-git-receive-pack-advertisement
< Transfer-Encoding: chunked
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< Vary: Accept-Encoding
< X-GitHub-Request-Id: C56E:7765:925EC0:DBF9BE:5EA3800E
< X-Frame-Options: DENY
* Connection #0 to host github.com left intact
18:11:00.387719 run-command.c:663 trace: run_command: 'git credential-manager store'
18:11:00.434529 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
18:11:00.434529 git.c:703 trace: exec: git-credential-manager store
18:11:00.434529 run-command.c:663 trace: run_command: git-credential-manager store
18:11:00.606390 run-command.c:663 trace: run_command: git send-pack --stateless-rpc --helper-status --thin --progress https://github.com/shaunstarbuck/Basic-NLP-.git/ --stdin
18:11:00.606390 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
18:11:00.606390 git.c:439 trace: built-in: git send-pack --stateless-rpc --helper-status --thin --progress https://github.com/shaunstarbuck/Basic-NLP-.git/ --stdin
18:11:00.606390 run-command.c:663 trace: run_command: git pack-objects --all-progress-implied --revs --stdout --thin --delta-base-offset --progress
18:11:00.621984 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
18:11:00.621984 git.c:439 trace: built-in: git pack-objects --all-progress-implied --revs --stdout --thin --delta-base-offset --progress
Enumerating objects: 12, done.
Counting objects: 100% (12/12), done.
Delta compression using up to 8 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (12/12), 69.88 MiB | 344.04 MiB/s, done.
Total 12 (delta 1), reused 12 (delta 1), pack-reused 0
* Found bundle for host github.com: 0x3766eb0 [serially]
* Can not multiplex, even if we wanted to!
* Re-using existing connection! (#0) with host github.com
* Connected to github.com (140.82.113.3) port 443 (#0)
* Server auth using Basic with user 'PersonalAccessToken'
> POST /shaunstarbuck/Basic-NLP-.git/git-receive-pack HTTP/1.1
Host: github.com
Authorization: Basic UGVyc29uYWxBY2Nlc3NUb2tlbjozYTE4Yzk1NzI5YTljOTEzODkxYTYyMmViY2UwNDE1MmJlZWIwOTAy
User-Agent: git/2.26.2.windows.1
Accept-Encoding: deflate, gzip
Content-Type: application/x-git-receive-pack-request
Accept: application/x-git-receive-pack-result
Content-Length: 73277320
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: GitHub Babel 2.0
< Content-Type: application/x-git-receive-pack-result
< Transfer-Encoding: chunked
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< Vary: Accept-Encoding
< X-GitHub-Request-Id: C56E:7765:925F38:DBFB9C:5EA38013
< X-Frame-Options: DENY
* OpenSSL SSL_read: Connection was reset, errno 10054
* Closing connection 0
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
Any help would be appreciated.
My code:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'http://site/index.php?1c.upload&filename=' . $filename);
curl_setopt($curl, CURLOPT_COOKIE, $cookie);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $files); //Array CURLFile
echo $out = curl_exec($curl);
When I try send file 10Mb — all correctly.
When I try send file ~200Mb — I get error
55, Send failure: Connection was reset
or
56, Recv failure: Connection was reset
I’m try write curl_setopt($curl, CURLOPT_HTTPHEADER, ['Expect:']);
Not result…
And trycurl_setopt($curl, CURLOPT_TIMEOUT, 3600);
— same…
In php.ini:
max_execution_time = 3600
max_input_time = 3600
upload_max_filesize = 500M
post_max_size = 500M
Same try set_time_limit(3600);
in php file… but not result…
Return array:
[url] => myurl
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 306
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 29.328
[namelookup_time] => 0.016
[connect_time] => 0.031
[pretransfer_time] => 0.031
[size_upload] => 116490450
[size_download] => 0
[speed_download] => 0
[speed_upload] => 3971987
[download_content_length] => -1
[upload_content_length] => 175979724
[starttransfer_time] => 1.045
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => serverIP
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 192.168.0.45
[local_port] => 1854
I’m New Here
I’m New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 23, 2023
Hi, recently I tried to import my cucumber test result to jira Xray but getting the error
curl -u USERNAME:PASSWORD -F info=@jiraInfo.json -F result=@cucumber_report.json https://myCompanyJiraServer/rest/raven/1.0/import/execution/cucumber/multipart
but return below:
curl: (55) Send failure: Connection was reset
or
curl: (56) Send failure: Connection was reset
I have tested another curl command:
curl -u USERNAME:PASSWORD -k -v https://myCompanyJiraServer/jira/rest/api/2/issue/TICKET-1
and it works
1 answer
Suggest an answer
Still have a question?
Get fast answers from people who know.
Was this helpful?
Thanks!
Problem reproduction
I want to install IRKERNEL through the following command
devtools::install_github('IRkernel/IRkernel')
But get the error message:
Failed to install 'IRkernel' from GitHub: Send failure: Connection was reset
or
Failed to install 'unknown package' from GitHub
solve
First, this problem is that the network is not allowed to use Github, which is not connected to the site. Therefore, you can be installed offline.
- First go to the official websitehttps://github.com/IRkernel/IRkernel Download the ZIP file and decompressed.
- Open CMD. After the CD is reached, then the R enters the R environment (if the R command is not found, then the BIN is dropped to the system PATH).
- First build (), then install (), final
IRkernel::installspec()
activation. - When using Jupyter, you can use the R environment.
reference:
https://zhuanlan.zhihu.com/p/46799561
https://kbroman.org/pkg_primer/pages/build.html
Я использую curl в Windows для загрузки больших файлов. Однако сетевое соединение иногда сбрасывается, поэтому я хочу перезапустить загрузку, но не уверен, какие параметры мне следует использовать.
В настоящее время делает:
curl.exe —connect-timeout 240 —keepalive-time 240 —verbose —retry 50 —retry-max-time 0 —compressed -o «c: largefile.bin» -C — https://example.org/largefile.bin
Когда соединение по какой-то причине сбрасывается, --verbose
показывает следующее:
* ...
* Closing connection 0
* schannel: shutting down SSL/TLS connection with example.org port 443
* Send failure: Connection was reset
* schannel: failed to send close msg: Failed sending data to the peer (bytes written: -1)
curl: (56) Send failure: Connection was reset
Как мне оправиться от curl: (56) Send failure: Connection was reset
?