Update failed due to file permissions


#1

Hello all,

I was attempting to do an update to Atom and received the error:

Could not create temporary directory: Permission denied```

I couldn't find the documentation on which directory Atom tries to write to when downloading a new copy of itself. Anyone know where its trying to write to so I can change permissions?

Thanks!

#2

Could you give the following information?

  • Which version of Atom are you using?
  • What OS and version are you running?

#3

Totally my bad, sorry about that!

OS X 10.10.3
Atom 0.190.0


#4

Hmmmmm … I haven’t run into that. Is your user account not an Administrator?


#5

Double checked and my account is an admin account.


#6

I don’t know how that works on OSX, but is there something about the temp folder? Any process that might lock it or permissions that could prevent even an admin from writing to it?


#7

Not that I know of … but admittedly, I’m still learning OS X internals.


#8

Where does apm create its temp folder?


#9

Good question. I can’t find anything in OSX console or a log output for Atom. Anyone have any clues?

Thanks,


#10

Bumping again just to see if anyone knows where Atom writes to when it creates a temp dir for downloading the update for itself in OS X.


#11

Found this issue on the github page https://github.com/atom/atom/issues/5160 and it fixed my issue. The file/directory was ~/Library/Application\ Support/com.github.atom.ShipIt and it was owned by root, not by my user.

Thanks all.


#13

Change the directory owner

sudo chown -R $USER ~/Library/Application\ Support/com.github.atom.ShipIt


#14

Worked for me! Thanks