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

Cannot open GitHub Desktop: unable to fetch all repo rulesets (???) #18420

Open
Vectorial1024 opened this issue Apr 5, 2024 · 5 comments
Open

Comments

@Vectorial1024
Copy link

The problem

I cannot open GitHub Desktop for some reason; the symptoms are basically the same to #18356 , but I noticed something different from the log files, so I am opening a new issue.

Currently, my GitHub Desktop has cloned a few private repos from an organization. This seems to be related to the bug I am facing right now.

It says I should upgrade to GitHub Pro or make the repo public, but:

  • I have been a GitHub Free user for eternity, and a few months ago I could still open GH Desktop with those repos with no problems (perhaps using an older version of GH Desktop)
  • The repos must stay private; they contain business source code

Release version

3.3.13

Operating system

Windows 11

Steps to reproduce the behavior

This is something I am guessing:

  1. Be a free user
  2. Find/make a private repo
  3. Clone it via GitHub Desktop
  4. ???
  5. Restart the system
  6. Try to open GitHub Desktop
  7. Cannot open GitHub Desktop; go and check the logs

Log files

I went to %AppData%/GitHub Desktop/logs and found this in one of the log files:

2024-04-05T09:47:56.116Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:47:56.461Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)

Screenshots

No response

Additional context

Could this be due to the private repos of the organization not being configured correctly?

@sergiou87
Copy link
Member

Hey @Vectorial1024 👋

From what I see, those aren't fatal errors. They're logged but they wouldn't cause the app to crash. Could you share your whole log file? (redacting whatever is necessary, of course)

Thank you!

@sergiou87 sergiou87 added the more-info-needed The submitter needs to provide more information about the issue label Apr 5, 2024
@Vectorial1024
Copy link
Author

Some context: I was updating from 3.3.12 to 3.3.13 via GitHub Desktop's "restart now" button on its "what's new" banner.

Here's the same log file, with the log beginning after the update finished:

2024-04-05T08:47:17.691Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T08:47:17.711Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T08:47:23.186Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T08:47:23.186Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T08:47:23.342Z - info: [ui] [BranchPruner] Last prune took place 1 hour ago - skipping
2024-04-05T08:47:23.606Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T08:47:24.453Z - warn: [ui] fetchAll: 'repos/[REDACTED]/issues?state=open' returned a 500
2024-04-05T08:47:24.603Z - info: [ui] Executing getRemotes: git remote -v (took 1.250s)
2024-04-05T08:47:24.607Z - info: [ui] Executing getConfigValueInPath: git config -z --local user.name (took 1.130s)
2024-04-05T08:47:24.633Z - info: [ui] Executing getRemotes: git remote -v (took 1.337s)
2024-04-05T08:47:26.172Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T08:47:26.512Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T08:51:47.288Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T08:51:47.301Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T08:51:51.588Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T08:51:51.588Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T08:51:51.671Z - info: [ui] [BranchPruner] Last prune took place 1 hour ago - skipping
2024-04-05T08:51:52.341Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T08:51:54.249Z - warn: [ui] deserialize: invalid JSON found at 'https://api.github.com/repos/[REDACTED]' - status: 500, length: '0' id: [REDACTED]
SyntaxError: Unexpected end of JSON input
    at mn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:65:33)
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:173:24)
    at rr.fetchRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:942:20)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4112:11)
2024-04-05T08:51:54.250Z - warn: [ui] fetchRepository: an error occurred for [REDACTED]
Error: API error https://api.github.com/repos/[REDACTED]:  (500)
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:175:13)
    at rr.fetchRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:940:16)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4112:11)
2024-04-05T08:51:54.250Z - warn: [ui] fetchAll: 'repos/[REDACTED]/issues?state=open' returned a 500
2024-04-05T09:04:15.443Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:04:15.459Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:04:21.169Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:04:21.170Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:04:21.286Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:04:21.938Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:10:32.263Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:10:32.274Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:10:36.179Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:10:36.179Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:10:36.204Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:10:36.939Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:10:38.345Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:10:38.692Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:11:02.734Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:11:02.744Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:11:07.017Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:11:07.025Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:11:07.025Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:11:07.040Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:13:06.021Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:13:06.030Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:13:10.310Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:13:10.311Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:13:10.324Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:13:11.035Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:13:11.965Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:13:12.337Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:16:26.400Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:16:26.409Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:16:30.733Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:16:30.733Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:16:30.747Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:16:31.474Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:16:32.451Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:16:32.799Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:26:29.540Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:26:29.550Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:26:33.809Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:26:33.809Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:26:33.822Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:26:34.520Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:26:35.573Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:26:35.919Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:32:35.679Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:32:35.681Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:43:28.513Z - error: [main] Error looking for toast activator CLSID in shortcut C:\Users\Vincent Wong\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\GitHub Desktop.lnk
Error: Failed to read shortcut link
    at ne (C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\lib\find-toast-activator-clsid.ts:38:29)
    at C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\lib\find-toast-activator-clsid.ts:26:33
    at C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\notifications.ts:28:32
    at C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\main.ts:722:7
    at Object.<anonymous> (C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\main.ts:722:7)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
2024-04-05T09:43:28.516Z - error: [main] Error looking for toast activator CLSID in shortcut C:\Users\Vincent Wong\Desktop\GitHub Desktop.lnk
Error: Failed to read shortcut link
    at ne (C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\lib\find-toast-activator-clsid.ts:38:29)
    at C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\lib\find-toast-activator-clsid.ts:26:33
    at C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\notifications.ts:28:32
    at C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\main.ts:722:7
    at Object.<anonymous> (C:\Users\Vincent Wong\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\main.ts:722:7)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
2024-04-05T09:43:28.516Z - error: [main] Toast activator CLSID not found in any of the shortcuts. Falling back to known CLSIDs.
2024-04-05T09:43:28.516Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:43:28.516Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:43:32.872Z - info: [main] Received possible protocol arguments: 2
2024-04-05T09:43:32.887Z - error: [main] Malformed launch arguments received: C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\GitHubDesktop.exe,--squirrel-firstrun
2024-04-05T09:43:32.887Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:43:32.887Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:43:38.084Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:43:38.084Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:43:38.097Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:43:38.823Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:43:39.329Z - info: [ui] Executing getRemotes: git remote -v (took 1.096s)
2024-04-05T09:43:39.348Z - info: [ui] Executing getRemotes: git remote -v (took 1.097s)
2024-04-05T09:43:40.816Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:43:41.170Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:47:51.206Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T09:47:51.216Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T09:47:54.424Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T09:47:54.424Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T09:47:54.438Z - info: [ui] [BranchPruner] Last prune took place 2 hours ago - skipping
2024-04-05T09:47:55.208Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T09:47:56.116Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T09:47:56.461Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T10:36:39.247Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T10:36:39.257Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T10:36:43.717Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T10:36:43.718Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T10:36:43.799Z - info: [ui] [BranchPruner] Last prune took place 3 hours ago - skipping
2024-04-05T10:36:44.444Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T10:36:45.462Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T10:36:45.810Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T11:15:57.358Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T11:15:57.368Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T11:16:01.688Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T11:16:01.688Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T11:16:01.701Z - info: [ui] [BranchPruner] Last prune took place 4 hours ago - skipping
2024-04-05T11:16:02.424Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T11:16:03.451Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T11:16:03.790Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T12:54:43.651Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-05T12:54:43.660Z - info: [main] GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration
2024-04-05T12:54:48.045Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-05T12:54:48.046Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-05T12:54:48.105Z - info: [ui] [BranchPruner] Last prune took place 5 hours ago - skipping
2024-04-05T12:54:48.764Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-05T12:54:49.804Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-05T12:54:50.139Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)

The log ends as I went to do something else and did not use GitHub Desktop.

@github-actions github-actions bot removed the more-info-needed The submitter needs to provide more information about the issue label Apr 8, 2024
@Vectorial1024
Copy link
Author

I was restarting GitHub Desktop a few times after the update is complete.

My understanding is that, GitHub Desktop crashed so hard, I could not get a good log out of it. Monitoring the Task Manager saw that one of the exe processes entered the suspended state, and then the entire app crashed.

@Vectorial1024
Copy link
Author

Got a weird but positive update @sergiou87

So, to get things moving, I decided to use SourceTree for the time being:

  • install SourceTree
  • grant permission to Git Credentials Manager somewhere along the way

Very strangely, after finishing the above steps, and using it to make some commits for some time, GitHub Desktop immediately works and opens itself to the repo commit screen with no problems.

This time, I got this log, again in %LocalAppData%/GitHub Desktop/logs:

2024-04-08T07:13:08.363Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2024-04-08T07:13:18.383Z - info: [ui] [AppStore] loading 1 repositories from store
2024-04-08T07:13:18.459Z - info: [ui] [AppStore] found account: Vectorial1024 (Vincent Wong)
2024-04-08T07:13:18.465Z - info: [ui] [BranchPruner] Last prune took place 3 hours ago - skipping
2024-04-08T07:13:19.213Z - info: [ui] launching: 3.3.13 (Windows 10.0.22631)
2024-04-08T07:13:19.214Z - info: [ui] execPath: 'C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\GitHubDesktop.exe'
2024-04-08T07:13:20.030Z - info: [ui] Subscribed 'Vectorial1024' to Alive channel
2024-04-08T07:13:20.549Z - info: [ui] Stats reported.
2024-04-08T07:13:20.635Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 1.421s)
2024-04-08T07:13:22.283Z - info: [ui] [fetchAllRepoRulesets] unable to fetch all repo rulesets | repos/[REDACTED]/rulesets
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchAllRepoRulesets (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1680:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1201:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)
2024-04-08T07:13:22.286Z - info: [ui] Executing getChangesFiles: git log 00ff8eb72e5c3c8af0a7891fbcd87a8828ba79a3 -C -M -m -1 --no-show-signature --first-parent --raw --format=format: --numstat -z -- (took 1.482s)
2024-04-08T07:13:22.645Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: [REDACTED] | repos/[REDACTED]/rules/branches/[REDACTED]
Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    at gn (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\http.ts:178:11)
    at rr.fetchRepoRulesForBranch (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\api.ts:1659:7)
    at ed.refreshBranchProtectionState (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:1222:15)
    at ed.repositoryWithRefreshedGitHubRepository (C:\Users\Vincent Wong\AppData\Local\GitHubDesktop\app-3.3.13\webpack:\app\src\lib\stores\app-store.ts:4135:5)

The only substantial diff between the logs are these 2 lines:

2024-04-08T07:13:20.549Z - info: [ui] Stats reported.
2024-04-08T07:13:20.635Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 1.421s)

Is this really something that will crash GitHub Desktop hard? How would SourceTree somehow "fix" GitHub Desktop? What is going on...? I'm very confused.

@Vectorial1024
Copy link
Author

I have narrowed it down to only 1 line in the log; as long as the following line appears:

2024-04-09T10:13:17.189Z - info: [ui] Stats reported.

Then GitHub Desktop will start correctly.

Today I tried to open GitHub Desktop, same problem happened, I decided to use SourceTree instead; fast forward a few hours, I had the idea to do a reboot, and volia, after the reboot GitHub Desktop worked again with the "stats reported" line in the log file.

There is a correlation between "GitHub Desktop works" and "stats reported appears in the log file". Why is it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants