This for CLOUD, NOT SERVER (despite the tag on this question)
I've moved to a macbook M3 Pro. and installed the latest mac version of Sourcetree. But am unable to push from sourcetree to bitbucket.
First tried to connect via SSH, generated a new key. Unable to push.
Then saw the help page video showing how easy OAuth is. Did that, seems to show I'm connected just fine. But despite closing and reopening Sourcetree, still get push errors.
The (greek to me) entire verbose auth log is below. I do recognize one issue:
"Failed to set working directory to /Users/{myusername}/Sites/septl/TL "
That is the path on the OLD computer. The new path should point to a folder in my xampp...htdocs folder ---- which Sourcetree’s History panel displays properly since I used it when configuring the local repository after installing sourcetree on the new mac.
Where is the OLD path coming from, and is that the whole story here? I don’t care that SSH logins fail, but why is the OAuth attempt failing???
Log : (sorry it’s so long, just don’t know where you’ll find a clue. I've used placenolders for my username and bitbucket name):
2023-12-23 17:49:11 +0000 (e) Task '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 status --porcelain --untracked-files=all --ignore-submodules=dirty ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:11 +0000 (e) [GIT] Git summary failed: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:11 +0000 (e) Task '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 remote -v ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:11 +0000 (e) Task '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 branch -vv ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:11 +0000 (e) Task '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 branch ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:14 +0000 (e) Task '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 status --porcelain --untracked-files=all --ignore-submodules=dirty ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:14 +0000 (e) [GIT] Git summary failed: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:15 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
2023-12-23 17:49:44 +0000 (e) Task '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 remote -v ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:49:44 +0000 (e) Task '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 remote -v ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:51:29 +0000 (e) Task '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 remote -v ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:51:29 +0000 (e) Task '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 remote -v ' threw exception: Failed to set working directory to /Users/{myusername}/Sites/septl/TL with error 20
2023-12-23 17:51:55 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
2023-12-23 18:01:37 +0000 (e) [AUTH] Failed to SSH Add: spawn ssh-add -K /Users/{myusername}/.ssh/{BBname}-Bitbucket
WARNING: The -K and -A flags are deprecated and have been replaced
by the --apple-use-keychain and --apple-load-keychain
flags, respectively. To suppress this warning, set the
environment variable APPLE_SSH_ADD_BEHAVIOR as described in
the ssh-add(1) manual page.
Enter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket:
Identity added: /Users/{myusername}/.ssh/{BBname}-Bitbucket (Generated by Sourcetree on macOS for {BBname}-Bitbucket)
/Users/{myusername}/.ssh/{BBname}-Bitbucket was not added successfully, only these keys present:
4096 SHA256:mDigXvh5wg34uiRm2lWH8JzPDaqRTsW9x89LfLCysd4 Generated by Sourcetree on macOS for {BBname}-Bitbucket (RSA)
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {56882}
expect: does "" (spawn_id exp6) match glob pattern "Identity added:"? no
"Enter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket:"? no
expect: does "WARNING: The -K and -A flags are deprecated and have been replaced\r\n by the --apple-use-keychain and --apple-load-keychain\r\n flags, respectively. To suppress this warning, set the\r\n environment variable APPLE_SSH_ADD_BEHAVIOR as described in\r\n the ssh-add(1) manual page.\r\n" (spawn_id exp6) match glob pattern "Identity added:"? no
"Enter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket:"? no
expect: does "WARNING: The -K and -A flags are deprecated and have been replaced\r\n by the --apple-use-keychain and --apple-load-keychain\r\n flags, respectively. To suppress this warning, set the\r\n environment variable APPLE_SSH_ADD_BEHAVIOR as described in\r\n the ssh-add(1) manual page.\r\nEnter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket: " (spawn_id exp6) match glob pattern "Identity added:"? no
"Enter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket:"? yes
expect: set expect_out(0,string) "Enter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket:"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "WARNING: The -K and -A flags are deprecated and have been replaced\r\n by the --apple-use-keychain and --apple-load-keychain\r\n flags, respectively. To suppress this warning, set the\r\n environment variable APPLE_SSH_ADD_BEHAVIOR as described in\r\n the ssh-add(1) manual page.\r\nEnter passphrase for /Users/{myusername}/.ssh/{BBname}-Bitbucket:"
send: sending "grammynoho\r" to { exp6 }
expect: does " " (spawn_id exp6) match glob pattern "Bad passphrase"? no
"Identity added:"? no
expect: does " \r\n" (spawn_id exp6) match glob pattern "Bad passphrase"? no
"Identity added:"? no
expect: does " \r\nIdentity added: /Users/{myusername}/.ssh/{BBname}-Bitbucket (Generated by Sourcetree on macOS for {BBname}-Bitbucket)\r\n" (spawn_id exp6) match glob pattern "Bad passphrase"? no
"Identity added:"? yes
expect: set expect_out(0,string) "Identity added:"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\nIdentity added:"
2023-12-23 18:02:52 +0000 (e) Host returned 401 error.
2023-12-23 18:03:53 +0000 (e) Host returned 401 error.
2023-12-23 18:23:24 +0000 (e) [AUTH] sign-in failed with error: The operation couldn’t be completed. (com.google.GTMOAuth2 error -1001.)
2023-12-23 18:23:24 +0000 (e) [AUTH] no response data, sign-in failed with error: invalid_scope
2023-12-23 18:25:14 +0000 (e) [AUTH] sign-in failed with error: The operation couldn’t be completed. (com.google.GTMOAuth2 error -1001.)
2023-12-23 18:25:14 +0000 (e) [AUTH] no response data, sign-in failed with error: invalid_scope
2023-12-23 18:25:58 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
2023-12-23 18:36:33 +0000 (e) [AUTH] sign-in failed with error: The operation couldn’t be completed. (com.google.GTMOAuth2 error -1001.)
2023-12-23 18:36:33 +0000 (e) [AUTH] no response data, sign-in failed with error: invalid_scope
2023-12-23 18:37:13 +0000 (e) [AUTH] sign-in failed with error: The operation couldn’t be completed. (com.google.GTMOAuth2 error -1001.)
2023-12-23 18:37:13 +0000 (e) [AUTH] no response data, sign-in failed with error: invalid_scope
2023-12-23 18:37:22 +0000 (e) [AUTH] sign-in failed with error: The operation couldn’t be completed. (com.google.GTMOAuth2 error -1001.)
2023-12-23 18:37:22 +0000 (e) [AUTH] no response data, sign-in failed with error: invalid_scope
2023-12-23 18:38:07 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
2023-12-23 18:48:43 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
2023-12-23 18:49:29 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
2023-12-23 19:15:26 +0000 (e) recordGASEvent={
code = 0;
message = "<null>";
success = 1;
validationErrors = "<null>";
}
I'm completely stumped. Does anyone know what I should do to fix this?
Thanks