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

Unable to read askpass response from ask-pass-trampoline.bat #2623

Closed
AlcaDesign opened this issue Sep 6, 2017 · 70 comments
Closed

Unable to read askpass response from ask-pass-trampoline.bat #2623

AlcaDesign opened this issue Sep 6, 2017 · 70 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs investigation-needed Likely bugs, but haven't been reliably reproduced by a reviewer

Comments

@AlcaDesign
Copy link

Description

Attempting to push commits to my GitHub using the Desktop client results in this message:

The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-0.8.0\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

No changes occur.

Similar issue as #1916.

Version

GitHub Desktop version: 0.8.0

OS version: Windows 7 (6.1.7601 SP1)

Steps to Reproduce

  1. Make a commit.
  2. Push the commit.
  3. Error message pops up.

image

Expected behavior: The commit should be pushed.

Actual behavior: The aforementioned error message pops up.

Reproduces how often: 100% of the time.

Logs

2017-09-06T06:15:40.333Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-0.8.0\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

Additional Information

The file at that location most definitely does exist. It has persisted through multiple versions of Desktop.

I've tried commenting out core.askpass=git-gui--askpass from my git config.

Issue created by request of Stacey Burns @staceb

@niik
Copy link
Member

niik commented Sep 6, 2017

Hey @AlcaDesign,

I don't know what could cause that error but I figure we should start by eliminating some things and take it from there.

Could you please open a command prompt and run set PATH and copy the output here?

Do you have any anti-virus software running on your machine, and if so, could you temporarily disable it and try again?

Have you ever been able to use any older versions of GitHub Desktop to push?

@niik niik added the more-info-needed The submitter needs to provide more information about the issue label Sep 6, 2017
@AlcaDesign
Copy link
Author

Path

Path=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\cURL\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Alca\AppData\Roaming\npm;C:\Program Files\nim\bin;C:\cygwin64\bin;C:\Program Files\nodejs\;C:\Users\Alca\AppData\Local\atom\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\cURL\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Python27\;C:\Program Files\7-Zip
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY

Formatted:

C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
C:\Program Files\cURL\bin
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Users\Alca\AppData\Roaming\npm
C:\Program Files\nim\bin
C:\cygwin64\bin
C:\Program Files\nodejs\
C:\Users\Alca\AppData\Local\atom\bin
C:\Program Files\Git\cmd
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
C:\Program Files\cURL\bin
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Program Files\Git\cmd
C:\Program Files\nodejs\
C:\Program Files\Common Files\Microsoft Shared\Windows Live
C:\Python27\
C:\Program Files\7-Zip

I went through and removed paths that didn't exist any longer from the path.

Anti-virus?

Nope

Old Version of GitHub Desktop?

Yes, before I switched to the "beta" pushing worked.

@jbtule
Copy link

jbtule commented Sep 12, 2017

This also started happening to me last week. I just used the command prompt to get around it, but now it's getting annoying, I've been using GitHub Desktop for months without problems, I don't know if 0.8.0 started it, since updates happen so transparently. But 0.8.0 what I was running when I noticed the problem, and I've also manually downloaded and reinstalled with 0.8.2 and still have the issue.

GitHub Desktop version: 0.8.0/0.8.2
OS version: Windows 7 (6.1.7601)

Log:

2017-09-12T19:27:06.117Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.941s)
2017-09-12T19:27:08.800Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\jayt\AppData\Local\GitHubDesktop\app-0.8.2\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled


2017-09-12T19:29:00.786Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\jayt\AppData\Local\GitHubDesktop\app-0.8.2\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

@shiftkey
Copy link
Member

shiftkey commented Oct 1, 2017

I have some fresh theories on this, mostly due to this clue from the malformed characters from a more recent report:

'C:\Users\TiagoMagalhaes' is not recognized as an internal or external command,
operable program or batch file.
error: unable to read askpass response from 'C:\Users\TiagoMagalhães(11506\AppData\Local\GitHubDesktop\app-1.0.2\resources\app\static\ask-pass-trampoline.bat'

The error message The system cannot find the path specified. is self-explanatory, but without more context I'd say we're passing some unicode characters into %DESKTOP_PATH% and cmd can't resolve it due to code pages.

@echo off
setlocal
set ELECTRON_RUN_AS_NODE=1
set ELECTRON_NO_ATTACH_CONSOLE=1
"%DESKTOP_PATH%" "%DESKTOP_ASKPASS_SCRIPT%" %*
endlocal

This feels a lot like #2624 but in a different location.

@Antypurus
Copy link

hello i have tried to clone into C:\Dev but it didn't work either , so sure to what degree its some Unicode issue , i have also tried disabling avast but to no avail , to be added that you can still be right .

this is happening on my laptop where i use a college version of W10 so my name and school number is my account name. However on my desktop my name has no Unicode characters and i did not encounter this issue.

@jbtule
Copy link

jbtule commented Oct 4, 2017

For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

@shiftkey
Copy link
Member

shiftkey commented Oct 5, 2017

@jbtule that's weird - thanks for reporting back!

@tiagojosemagalhaes @AlcaDesign can you check that registry entry too and see if something unexpected is registered there?

@AlcaDesign
Copy link
Author

@shiftkey There's no "autorun" entry at that location.

@shiftkey shiftkey removed their assignment Oct 5, 2017
@shiftkey shiftkey added the bug Confirmed bugs or reports that are very likely to be bugs label Oct 5, 2017
@shiftkey
Copy link
Member

shiftkey commented Oct 5, 2017

Dropping myself off this while I don't have access to Windows hardware, in case someone else wants to take a swing at this.

@Antypurus
Copy link

@AlcaDesign @shiftkey i don´t have any autorun entry at that location either.

@shiftkey
Copy link
Member

Alright, back and looking into this. I setup a test account named shöftkäß to see if I could induce any unicode-related issues when an operation needs to GIT_ASKPASS. Here's the environment variables for the user:

PS C:\Users\shöftkäß> gci env:

Name                           Value
----                           -----
ALLUSERSPROFILE                C:\ProgramData
APPDATA                        C:\Users\shöftkäß\AppData\Roaming
CommonProgramFiles             C:\Program Files\Common Files
CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files
CommonProgramW6432             C:\Program Files\Common Files
COMPUTERNAME                   BRENDANFORSEE7D
ComSpec                        C:\Windows\system32\cmd.exe
HOMEDRIVE                      C:
HOMEPATH                       \Users\shöftkäß
LOCALAPPDATA                   C:\Users\shöftkäß\AppData\Local
LOGONSERVER                    \\BRENDANFORSEE7D
NUMBER_OF_PROCESSORS           2
OneDrive                       C:\Users\shöftkäß\OneDrive
OS                             Windows_NT
Path                           C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\Windows\system32;C:\...
PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_ARCHITECTURE         AMD64
PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 70 Stepping 1, GenuineIntel
PROCESSOR_LEVEL                6
PROCESSOR_REVISION             4601
ProgramData                    C:\ProgramData
ProgramFiles                   C:\Program Files
ProgramFiles(x86)              C:\Program Files (x86)
ProgramW6432                   C:\Program Files
PSModulePath                   C:\Users\shöftkäß\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerSh...
PUBLIC                         C:\Users\Public
SESSIONNAME                    Console
SystemDrive                    C:
SystemRoot                     C:\Windows
TEMP                           C:\Users\SHFTK~1\AppData\Local\Temp
TMP                            C:\Users\SHFTK~1\AppData\Local\Temp
USERDOMAIN                     BRENDANFORSEE7D
USERDOMAIN_ROAMINGPROFILE      BRENDANFORSEE7D
USERNAME                       shöftkäß
USERPROFILE                    C:\Users\shöftkäß
windir                         C:\Windows

I was able to clone and fetch a private repository down without issues, so there goes that theory.

@tiagojosemagalhaes I overlooked this comment from earlier:

this is happening on my laptop where i use a college version of W10 so my name and school number is my account name.

Could you open a PowerShell prompt, run this command and attach the output. I'd like to understand a bit more about your account setup on the machine that has the your name and school number for the account name:

> Get-ChildItem Env:

@shiftkey
Copy link
Member

@AlcaDesign looking at the error message from your log, I'd like to check that the trampoline file is actually setup for success.

The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-0.8.0\resources\app\static\ask-pass-trampoline.bat'

The files we depend on are these:

%LOCALAPPDATA%\GitHubDesktop\app-${version}\resources\app\static\ask-pass-trampoline.bat
%LOCALAPPDATA%\GitHubDesktop\app-${version}\resources\app\ask-pass.js

Adjust for whichever version of Desktop you are currently running.

If any of those aren't where you expect them to be, please let me know - it will help to recreate this on my end.

@AlcaDesign
Copy link
Author

@shiftkey Those files definitely exist.

@shiftkey
Copy link
Member

@AlcaDesign could you attach a fresh log file? Maybe there's something different about the situation that will help me understand what's different your setup.

@AlcaDesign
Copy link
Author

AlcaDesign commented Oct 10, 2017

@shiftkey

2017-10-10T06:17:16.627Z - info: [ui] launching: 1.0.3 (Windows 6.1.7601)
2017-10-10T06:17:16.976Z - info: [ui] Stats reported.
2017-10-10T06:17:37.813Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 8.515s)
2017-10-10T06:18:16.276Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 2.289s)
2017-10-10T06:18:18.127Z - info: [ui] Executing getCommits: git log HEAD --date=raw --max-count=100 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color (took 3.193s)
2017-10-10T06:18:25.806Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 11.795s)
2017-10-10T06:18:26.394Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:23:39.873Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:25:13.541Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:28:53.679Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:34:07.417Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:39:21.161Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:44:34.934Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:49:48.778Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T06:55:03.069Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.053s)
2017-10-10T06:55:03.072Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T07:00:16.861Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T07:05:30.703Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T07:10:44.563Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T07:15:58.382Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T07:21:12.204Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2017-10-10T07:26:25.940Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

@shiftkey
Copy link
Member

@AlcaDesign the whole log file would be helpful - I'm not even sure what version you're running currently

@Antypurus
Copy link

@shiftkey
`
Name Value


ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\TiagoMagalhães(11506\AppData\Roaming
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME DESKTOP-24D5LTU
ComSpec C:\Windows\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
GTK_BASEPATH C:\Program Files (x86)\GtkSharp\2.12\
HOMEDRIVE C:
HOMEPATH \Users\TiagoMagalhães(11506
LOCALAPPDATA C:\Users\TiagoMagalhães(11506\AppData\Local
LOGONSERVER \DESKTOP-24D5LTU
NUMBER_OF_PROCESSORS 4
OneDrive C:\Users\TiagoMagalhães(11506\OneDrive
OS Windows_NT
Path C:\Python27;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPower...
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4e03
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Users\TiagoMagalhães(11506\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
SESSIONNAME Console
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\TIAGOM1\AppData\Local\Temp
TMP C:\Users\TIAGOM
1\AppData\Local\Temp
USERDOMAIN AzureAD
USERDOMAIN_ROAMINGPROFILE AzureAD
USERNAME TiagoMagalhães(11506
USERPROFILE C:\Users\TiagoMagalhães(11506
VBOX_MSI_INSTALL_PATH C:\Program Files\Oracle\VirtualBox\
windir C:\Windows

`

The log about my system you asked for.

@shiftkey shiftkey added this to the 1.0.x milestone Oct 12, 2017
@shiftkey shiftkey removed their assignment Oct 23, 2017
@shiftkey
Copy link
Member

shiftkey commented Nov 3, 2017

@AlcaDesign the best theory I've got so far about your setup is that the trampoline script isn't returning any output, for some reason. I added #3007 to log whether there is a token is actually set for the user when we perform Git operations - if you are able to reproduce this with the latest version 1.0.6, could you attach a fresh log? This should provide some more insight.

@shiftkey
Copy link
Member

shiftkey commented Nov 3, 2017

@tiagojosemagalhaes I can reproduce the issue you are seeing using an account with a ( in it.

Let's see if I can put together a fix for it now.

@AlcaDesign
Copy link
Author

@shiftkey

2017-11-03T04:56:17.767Z - info: [ui] [AppStore] loading 9 repositories from store
2017-11-03T04:56:17.770Z - info: [ui] [AppStore] found account: AlcaDesign (Jacob Foster)
2017-11-03T04:56:18.640Z - warn: [ui] Error refreshing account 'AlcaDesign'
Error: Cannot update an account which doesn't have a token: [object Object]
    at Object.n [as fatalError] (C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.6\webpack:\external "path":1:1)
    at o (C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.6\webpack:\app\src\lib\stores\accounts-store.ts:201:7)
    at t.AccountsStore.refresh (C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.6\webpack:\app\src\lib\stores\accounts-store.ts:119:24)
    at ee.loadInitialState (C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.6\webpack:\app\src\lib\stores\app-store.ts:955:4)
    at <anonymous>
2017-11-03T04:56:18.832Z - info: [ui] launching: 1.0.6 (Windows 6.1.7601)
2017-11-03T04:56:24.871Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 2.112s)
2017-11-03T04:56:34.526Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 11.746s)
2017-11-03T04:59:59.783Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-1.0.6\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

@shiftkey
Copy link
Member

shiftkey commented Nov 3, 2017

2017-11-03T04:56:18.640Z - warn: [ui] Error refreshing account 'AlcaDesign'
Error: Cannot update an account which doesn't have a token: [object Object]

Aha, this looks interesting. Are you able to do the sign-in-and-out dance under the File | *Options menu, and see if that fixes it for you?

I'm still not sure if the The system cannot find the path specified message is something I should worry about right now, but let's see if that gets you something different when you push changes...

@bshaw-setfords
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

Resolved this issue for me. Thanks Reldey!

@LeTuan252
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

Thank you so much ! I resolved my problem true

@Reldey
Copy link

Reldey commented Jul 16, 2019

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Deleting the key fixed this problem for me.

Thank you so much ! I resolved my problem true

Glad my solution is working for people. This may be above my pay grade, but I am wondering why Miniconda is fiddling with the registry at all? I would assume the only value the program should modify would be the PATH. Might be something to throw at them.

@kreinhub
Copy link

For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

It solved my issue. I used to add macros and did't know that it can impact on the work with Git Hub Desktop. Thank you!

@chaoxue-sysu
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

It solved my issue. ~~~///(^v^)\~~~

@Sameedahmad
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Deleting the key fixed this problem for me.

It solved my issue. ~~~///(^v^)

Should there be a key of Auto run or not

@chaoxue-sysu
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Deleting the key fixed this problem for me.

It solved my issue. ~~~///(^v^)

Should there be a key of Auto run or not

Sorry, I am not sure, but it works.

@meenmo
Copy link

meenmo commented Dec 10, 2019

Anyone unable to find "Command Processor" tab under HKEY_CURRENT_USER\Software\Microsoft?

@alexqfredrickson
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

Thanks much - I'm amazed that you were able to discover that 👍

@TheNullBoolean
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

Cheers, worked for me as well - Thanks

@bn-s
Copy link

bn-s commented Apr 7, 2020

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

I was having the same issue and this solved it. Thanks 👍

@elalexel
Copy link

Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Deleting the key fixed this problem for me.

Had the same problem! they should fix this on conda's side...

@shivanshu-semwal
Copy link

Anyone unable to find "Command Processor" tab under HKEY_CURRENT_USER\Software\Microsoft?

I was also unable to find that key. But i found that in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor . It was there maybe because I installed it conda for all users and not just for me. And after deleting that autorun key my issue was solved.

@SuperHarmony910
Copy link

SuperHarmony910 commented Aug 9, 2020

I had to reinstall GitHub Desktop to fix this problem; the registry key Autorun was absent in both presented locations.

@SuperHarmony910
Copy link

SuperHarmony910 commented Aug 27, 2020

Forgot to mention, this has disassociated with the SSH protocol not working; it is now singularly focused on askpass.bat, as I am lazy to create a new issue.

@Onoshe
Copy link

Onoshe commented Oct 1, 2020

Just wanted to comment that a previous installation of Miniconda had created an AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor
(Another user has stated Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor was where it was located for them. It may be different depending on how Miniconda was installed.
Deleting the key fixed this problem for me.

Please, I have the same issue which I have been trying to resolve.
I opened Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
but can't find AutoRun Key.
What I have there are:
(Default)
CompletionChar
DefaultColor
EnableExtensions
PathCompletionChar
(I don't know which of them is AutoRun key)
Cprocessor

@DLionApps
Copy link

@Onoshe same problem here. mine also no any autorun

@DLionApps
Copy link

I updated the Github desktop to latest version. then error was gone. now i'm able to push the code

@SuperHarmony910
Copy link

SuperHarmony910 commented Oct 2, 2020

@Onoshe I've been suffering the same problem, have you tried looking through the help document! Hopefully, the help document can be of assistance. If not, try joining our open issue at #10363!

@Onoshe
Copy link

Onoshe commented Oct 2, 2020

@DLionApps I'm already using the latest version. I tried everything but the problem still persist. Am just 😫
@SuperHarmony910 Alright. I will try and join.
Thanks all of you.

@SuperHarmony910
Copy link

SuperHarmony910 commented Oct 3, 2020

@Onoshe I am also on the latest version (2.5.6). You should try everything that @steveward told me in the comments of #10363
In the meantime, I would recommend you install Git Bash, the official one that GitHub is compatible with, from https://git-scm.com and download the latest version based upon your computer processor. If you have a 32-bit system, the download won't work unless you click "32-bit Git for Windows Setup". After you've installed it, go to your repository folder, right-click anywhere within File Explorer, and click on "Git Bash Here". Now that you have a working copy of Git, you should toy around with the commands git commit -a & git push! They are great first commands to learn, and basically, its committing and pushing the long way using Git!

@DawonChoi
Copy link

In the registry editor(pc\HKEY_CURRENT_USER\Software\Microsoft\Command Processor), just remove all the custom string value.
In the case of me, "doskey" command for Linux macro was causing problems.

@SuperHarmony910
Copy link

I currently cannot view that registry entry for some reason, it does not exist on my file system, Command Processor. Although it may be a 'view permissions' thing. Who knows?

@shahnitav
Copy link

For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

Thanks, I just removed the Autorun entry that was created by Conda and it is working correctly now

@denisdrga
Copy link

For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

Thanks, I just removed the Autorun entry that was created by Conda and it is working correctly now

Geez, I had this issue couple a days now and this actually helped. Also Conda Autorun entry in the registry removed and works like heaven now. Thanks

@Ofa234
Copy link

Ofa234 commented Jan 23, 2024

Delete

@Ofa234 Ofa234 mentioned this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs investigation-needed Likely bugs, but haven't been reliably reproduced by a reviewer
Projects
None yet
Development

No branches or pull requests