Skip to content

Cannot login to my github account #12712

Closed

Description

@florianweinhappl

Describe the bug

When I try to log in to my github account i get the following error message "Not enough memory resources available to process this command".

Version & OS

Github Desktop Version: 2.9.0 (x64)
OS: Windows 10 64bit 21H1 build 19043.1151

Steps to reproduce the behavior

  1. Go to 'File'
  2. Click on 'Options...'
  3. Click on 'Sign in'
  4. See error

Expected behavior

Successfully connect my github account.

Actual behavior

The following error message "Not enough memory resources available to process this command" appears.

Screenshots


Screenshot 2021-08-02 154434

Logs

2021-08-02T13:34:22.920Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:34:23.014Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:34:23.015Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:34:24.794Z - info: [ui] calling captureCommandOutput(where git)
2021-08-02T13:43:31.426Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:43:31.561Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:43:31.562Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:43:34.154Z - info: [ui] calling captureCommandOutput(where git)
2021-08-02T13:43:36.319Z - info: [ui] [SignInStore] initializing OAuth flow
2021-08-02T13:43:36.319Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=de0e3c7e9973e1c4dd77&scope=repo%20user%20workflow&state=e29370be-3d08-4201-868f-651e7988a5e9
2021-08-02T13:43:38.937Z - info: [main] Received possible protocol arguments: 4
2021-08-02T13:43:38.937Z - info: [main] Processing protocol url
2021-08-02T13:43:38.937Z - info: [ui] [Dispatcher] requesting authenticated user
2021-08-02T13:43:39.605Z - info: [ui] [SignInStore] account resolved
2021-08-02T13:43:39.605Z - info: [ui] [AppStore] adding account FlorianW7 (Florian Weinhappl) to store
2021-08-02T13:43:39.606Z - error: [ui] Error adding account 'FlorianW7'
Error: Not enough memory resources are available to process this command.

2021-08-02T13:48:48.061Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:48:48.174Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:48:48.175Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:50:10.578Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:50:10.671Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:50:10.671Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:50:23.932Z - info: [ui] calling captureCommandOutput(where git)
2021-08-02T13:52:02.977Z - info: [main] Received possible protocol arguments: 2
2021-08-02T13:52:02.977Z - error: [main] Malformed launch arguments received: C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe,--allow-file-access-from-files

Additional context

I have received the same error message some time ago in Visual Studio Code as well and solved the issue by deleting all files in my temp folder. Trying this solution didn't solve my issue in Github Desktop though.

Activity

  1. sergiou87 commented on Aug 2, 2021

    @sergiou87
    Member

    Weird, the only thing done when that error happens is storing the account token in the Windows Credential Manager:

    try {
    const key = getKeyForAccount(account)
    await this.secureStore.setItem(key, account.login, account.token)
    } catch (e) {
    log.error(`Error adding account '${account.login}'`, e)

    Which basically ends up in some Windows stuff in node-keytar: https://github.com/atom/node-keytar/blob/12484088ce0980a903627b6fc7ddaaf02188e982/src/keytar_win.cc#L116-L146

    Have you tried to just reboot your computer and see if it helps?

  2. added
    more-info-needed
    on Aug 2, 2021
  3. florianweinhappl commented on Aug 2, 2021

    @florianweinhappl
    Author

    Yeah, I have restarted my PC quite a few times now, but the issue still persists. Is there anything else I can try?

    By the way here is the other resolved issue about the same problem (atleast I think it's somehow connected) that I mentioned in my initial post: microsoft/vscode#115994

  4. removed
    more-info-needed
    on Aug 2, 2021
  5. florianweinhappl commented on Aug 2, 2021

    @florianweinhappl
    Author

    Nevermind, I just fixed the issue by opening Github Desktop as an administrator 🤦‍♂️

  6. gatorlanphear commented on Sep 4, 2022

    @gatorlanphear

    I solved this.
    I had to go to Windows Credential Manager and DELETE an old credential.
    This made room for GitHub's credential.
    I'll see if it messes up that old credential or if there's going to be need for more in the future.
    Gator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions