Skip to content

When checking for update: "Permission denied" #4115

@ghost

Description

Description

Like said in the thread on Twitter, when I check for an update, it shows an error saying Could not create temporary directory: Permission denied. Then it says, You have the latest version (last checked just now).

Version

GitHub Desktop version: 1.0.9
OS version: macOS High Sierra 10.13.3 (17D47)

Steps to Reproduce

  1. In the menu, "GitHub Desktop->About GitHub Desktop"
  2. Click "Check for Updates"
  3. Error shows up here (Could not create temporary directory: Permission denied) (Image on Twitter link)

Expected behavior: It should check for an update, find v1.1 and update it
Actual behavior: Error shows up when checking
Reproduces how often: This problem happens every time, and it used to not do this

Logs

2018-02-26T20:44:27.018Z - info: [ui] [AppStore] loading 34 repositories from store
2018-02-26T20:44:27.073Z - info: [ui] [AppStore] found account: CameronSamuels (Cameron Samuels)
2018-02-26T20:44:28.599Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 1.422s)
2018-02-26T20:44:28.681Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.460s)
2018-02-26T20:44:29.265Z - warn: [ui] fetchEmails: failed with endpoint https://api.github.com
Error: Not Found
    at Object.t.parsedResponse (/webpack:/app/src/lib/http.ts:153:1)
    at <anonymous>
2018-02-26T20:44:29.515Z - info: [ui] launching: 1.0.9 (Mac OS 10.13.3)
2018-02-26T20:44:30.411Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T20:44:30.912Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 3.760s)
2018-02-26T20:44:31.052Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 2.412s)
2018-02-26T20:44:32.682Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 3.338s)
2018-02-26T20:44:38.751Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.598s)
2018-02-26T20:49:46.783Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 1.250s)
2018-02-26T20:54:58.386Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.165s)
2018-02-26T21:00:10.939Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.090s)
2018-02-26T21:05:24.302Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.173s)
2018-02-26T21:10:33.525Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.124s)
2018-02-26T21:15:44.278Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.114s)
2018-02-26T21:20:54.973Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.142s)
2018-02-26T21:31:10.868Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.113s)
2018-02-26T21:41:27.631Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.155s)
2018-02-26T21:51:47.367Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.103s)
2018-02-26T21:56:57.754Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.094s)
2018-02-26T22:02:07.608Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.139s)
2018-02-26T22:17:33.863Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.106s)
2018-02-26T22:22:42.367Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.128s)
2018-02-26T22:32:56.974Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.209s)
2018-02-26T22:35:33.708Z - info: [ui] [AppStore] loading 34 repositories from store
2018-02-26T22:35:33.711Z - info: [ui] [AppStore] found account: CameronSamuels (Cameron Samuels)
2018-02-26T22:35:34.413Z - info: [ui] launching: 1.0.9 (Mac OS 10.13.3)
2018-02-26T22:35:35.148Z - warn: [ui] fetchEmails: failed with endpoint https://api.github.com
Error: Not Found
    at Object.t.parsedResponse (/webpack:/app/src/lib/http.ts:153:1)
    at <anonymous>
2018-02-26T22:35:35.156Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:36:06.314Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:36:09.688Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:36:12.166Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:37:32.622Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 2.296s)
2018-02-26T22:37:34.416Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:40:16.790Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:43:21.564Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:50:40.314Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:50:41.218Z - info: [ui] Executing getCommits: git log origin/master..master --date=raw --max-count=100 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color -- (took 3.109s)
2018-02-26T22:51:04.566Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.138s)
2018-02-26T22:54:11.053Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied
2018-02-26T22:54:31.832Z - error: [ui] Error checking for updates
Error: Could not create temporary directory: Permission denied

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugsmacOSIssues specific to Desktop usage on macOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions