Skip to content

When checking for update: "Permission denied" #4115

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

  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

Activity

  1. shiftkey commented on Feb 27, 2018

    @shiftkey
    Member

    @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.

  2. added
    investigation-needed
    on Feb 27, 2018
  3. shiftkey commented on Feb 27, 2018

    @shiftkey
    Member

    @cameronsamuels can you confirm you have moved GitHub Desktop into the /Applications directory? 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.

  4. shiftkey commented on Feb 28, 2018

    @shiftkey
    Member

    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)
  5. added
    more-info-needed
    and removed
    investigation-needed
    on Feb 28, 2018
  6. shiftkey commented on Feb 28, 2018

    @shiftkey
    Member

    @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).

  7. added
    bug
    and removed
    more-info-needed
    on Mar 5, 2018
  8. added
    macOS
    on Mar 25, 2018
  9. self-assigned this
    on Mar 25, 2018
  10. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  11. unlocked this conversation on Sep 27, 2018
  12. leocnj commented on Jun 24, 2019

    @leocnj

    Follow the solution posted at vscode, we can correct the file ownership error by

    sudo rm -Rf ~/Library/Caches/com.microsoft.GitHubClient.ShipIt
    
  13. shiftkey commented on Jun 24, 2019

    @shiftkey
    Member

    @leocnj that folder path is not correct - it should be com.github.GitHubClient.ShipIt

  14. Jurek54321 commented on Oct 3, 2021

    @Jurek54321

    Hello-World

  15. Jurek54321 commented on Oct 3, 2021

    @Jurek54321
  16. Gyaalll commented on Aug 23, 2022

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

Metadata

Metadata

Assignees

Labels

bugmacOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions