Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

エラーが出てpushできないようになった

Kei Fukuda August 23, 2024

sourcetreeを使用しています。

突然、pushした時にエラーが出るようになりました。

.phpや.cssなどのファイルは問題なくpushできるのですが、画像ファイルをcommitすると、エラーが出ます。1ファイルずつ分けてpushすると、pushできる場合もありますが、ほとんどできません。ファイルサイズの大きさは関係ないようです。

原因・対処法を教えていただきたいです。

エラーの内容↓

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/master Pushing to (URL) POST git-receive-pack (chunked) error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date Completed with errors, see above

1 answer

1 accepted

0 votes
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2024

Hi Kei,

We have noticed increased reports of users encountering this issue when trying to push, and the issue appears to be with the version of GIT - most commonly version “2.41.0”.  

Please update to the latest version of GIT using the link below and let me know if you still encounter issues:

Cheers!

- Ben (Bitbucket Cloud Support)

Kei Fukuda August 28, 2024

ご回答いただきありがとうございます。

昨日バージョンを2.46.0に更新しました。しかし、いまだに同じエラーが出てしまいます。

他に解決方法はありますか?

教えていただけると嬉しいです。お願いいたします。

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2024

Hi Kei,

Would you be able to try perform a git push outside of sourcetree and let me know how this goes? 

Cheers!

- Ben (Bitbucket Cloud Support)

Kei Fukuda August 29, 2024

返信ありがとうございます。

pushを実行してみましたが、下記エラーがでました。

remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/xxxxxx/'

そこで、こちらを試してみましたが、解決しませんでした。↓

https://confluence.atlassian.com/bbkb/authentication-error-remote-invalid-username-or-password-942864127.html

認証タイプ:OAuth

プロトコル:HTTPS

でアカウントを追加していますが、問題ありますか?

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2024

Hi Kei, 

Just to clarify as I forgot to mention this before - the reason we are testing outside of sourcetree is to determine if this is a connection problem, or an application problem with sourcetree.

I'd recommend attempting to make use of an AppPassword for communicating to GIT via HTTPS.
We have documentation for usage of app passwords at the following link:
https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/#Create-an-app-password
Essentially, when connecting via *HTTPS* you will use your AppPassword alongside your username seperated with a ":" character.

Therefore if you are authenticating to *GIT over HTTPS* to push/pull you will need to update your remote URL's to include the *AppPassword*:


git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

The same applies when performing git clone:

git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

NOTE: You'll need to replace the above placeholder values USERNAME, APP_PASSWORD, workspaceID, reposlug with actual values.

I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).

If you are able to connect over HTTPS locally, Sourcetree may be the culprit.

Cheers!

- Ben (Bitbucket Cloud Support)

Kei Fukuda September 1, 2024

ありがとうございます。

アプリパスワードを設定しました。

urlにパスワードを追加しようとすると、下記のように注意書きが表示されました。

危険性があるとのことですが、大丈夫でしょうか。

Warning: embedding passwords in URLs is extremely insecure. You are advised to remove the password; Sourcetree will prompt you when a password is needed and you will have the option to use your Keychain to store them. 

It is highly recommended to press 'Cancel' and remove the password(s) from your remote settings before proceeding. Click 'OK' if you want to embed the password anyway (not recommended).

 

そして、一度パスワードを埋め込んだ状態で実行してみましたが、またエラーが出ました。(アクセスキーチェーンからパスワードは削除しました)

状況は最初と変わりません。

何度もすみません。他に解決方法があれば教えていただきたいです。

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2024

Hi @Kei Fukuda,

Please allow me to step in as Ben is out of office.

You can try increasing the size of the buffer used to POST data with the command:

git config --global http.postBuffer 157286400

Then, attempt to push again. This will increase the size of the buffer to 150 MB.


With regards to the embedded password in the URL, it is indeed not secure to leave the app password in the URL. The suggestion was to do it temporarily because you were getting an authentication issue, in order to check if the 500 error occurs when pushing outside SourceTree.


If you execute the command I provided above and then try to push, is your push successful?

If you still see errors, is it the original HTTP 500 error or an authentication error?

Kind regards,
Theodora

Kei Fukuda September 3, 2024

返信ありがとうございます。

git config --global http.postBuffer 157286400

こちらを実行したら、エラーが解消されました!ありがとうございます。

今まではpushできていたサイズでもエラーが起きていたので、サイズは関係ないと思っていました。

ご丁寧に対応していただき、ありがとうございました。 

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events