-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Atom does not start after running once as root due permission of /tmp/atom-nohup.out #3056
Comments
What do you think about storing it in A similar issue happened when the compile cache was storing in the temp folder, that was moved to |
Sure! This is easy and would solve the problem. Maybe it should start off a new file vs. appendng it to avoid endless growing of the log file. Or implement a minimal rotation of the previous |
@kevinsawicki Thank you for the quick fix! Just a moment ago I stumbled upon a similar issue, which is very related but much trickier, I guess. As a background: I do like atom so much, that I started it to use it as a drop-in replacement for gedit. Even to edit system configuration files. In this scenario it's quite common to invoke editors via sudo. Atom will start in a broken state if you i.e. once launched sth. like a very common plain
To be honest: You are able run into similar issues on other programs too, but most of them tend not to create new files unless triggered. I'm not sure if there is an easy fix. |
@bentolor Mind creating a new issue for this? |
Storing it in the temp directory can lead to permissions issues when Atom is run by multiple users. Closes atom#3056
Its easy! "sudo chmod 777 ~/.atom/atom-nohup.out" |
Still not fixed for me |
Same here. Just reinstalling atom over itself did the trick. wget -c https://github.com/atom/atom/releases/download/v1.11.2/atom-amd64.deb
sudo dpkg -i atom-amd64.deb
sudo rm atom-amd64.deb |
This is broke for me. Ran
|
I fixed it by: sudo apt-get remove atom
sudo apt-get install atom |
these tricks do not work for me. My atom can not be launched, get this error
I can launch it using |
sudo chmod 777 ~/.atom/atom-nohup.out <-- worked for me. I also deleted compile script. |
Thanks, that worked!! I did the following (starting on a blank ubuntu 17.04 without atom: First installed atom: (Thanks to http://tipsonubuntu.com/2016/08/05/install-atom-text-editor-ubuntu-16-04/ Second I did the ftcosta stuff: (thanks man(or woman)): Now I can open atom like this like gedit: Hope I could help |
This worked for me
|
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Problem
Atom does no longer start after it has been run by root or probably any other user with a restrictive umask. This is because the
atom.sh
script pipes out the output to the same shared file/tmp/atom-nohup.out
Steps to reproduce
Run
The second call fails because nohup cannot write/access the file. This might work if root has a very permissive umask.
Solution
Probably atom should create and use tmp-Dirs per user, which is common style in Debian or at least allow global writing on the lofgile (hacky version).
The text was updated successfully, but these errors were encountered: