Repository navigation
Closed
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
- In the menu, "GitHub Desktop->About GitHub Desktop"
- Click "Check for Updates"
- 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
Reacted by Bobcd94
Activity
shiftkey commentedon Feb 27, 2018
@cameronsamuels thanks for the report! My initial theory is that this was Squirrel/Squirrel.Mac#131 but you're running a later version of Electron that contains a fix for that issue. The error message also looks different, so it's potentially something else.
shiftkey commentedon Feb 27, 2018
@cameronsamuels can you confirm you have moved GitHub Desktop into the
/Applicationsdirectory? And that there aren't any interesting permissions issues that we might not be handling correctly (like Squirrel/Squirrel.Mac#131 mentions).Squirrel is a bit finicky about this when applying updates, and understanding a bit more about your setup will definitely save time getting to the bottom of this.
shiftkey commentedon Feb 28, 2018
I've traced this error to here inside the updater framework, but I'm hazy on the details after that.
These two log files might help - can you find anything interesting at the end of these files that might tell us which folder the updater is trying to create?
~/Library/Caches/com.github.GitHubClient.ShipIt/ShipIt_stderr.log~/Library/Caches/com.github.GitHubClient.ShipIt/ShipIt_stdout.log(this was empty on my machine)shiftkey commentedon Feb 28, 2018
@cameronsamuels thanks for the troubleshooting. I'm going to fold this up into our Known Issues doc until there's enough details about the underlying issue to report it upstream (I couldn't see an existing issue for this reported).
leocnj commentedon Jun 24, 2019
Follow the solution posted at vscode, we can correct the file ownership error by
shiftkey commentedon Jun 24, 2019
@leocnj that folder path is not correct - it should be
com.github.GitHubClient.ShipItJurek54321 commentedon Oct 3, 2021
Hello-World
Jurek54321 commentedon Oct 3, 2021
#4115 (comment)
Gyaalll commentedon Aug 23, 2022
@shiftkey