Permission denied: '/home/../roscore-11311.pid' when starting roscore
Traceback:
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 257, in main
write_pid_file(options.pid_fn, options.core, options.port)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 110, in write_pid_file
with open(pid_fn, "w") as f:
IOError: [Errno 13] Permission denied: '/home/lucifermintu/.ros/roscore-11311.pid'
Please help!!
Have you tried anything? Seems like a python error, not a ROS related one. Does this help?
Simple but not the best fix would be to run as root user and I am pretty sure you won't see that error. But again, that is not the best solution but a quick one. This is definitely not a ROS related problem. Is there a possibility that you created a python file via sudo or being as a root user?
@EdwardNur: I converted your post to a comment as it's not an answer. Running as "root user" is almost never a/the answer.
It's likely the OP actually did run
roscore
as root at some point and now doesn't, causing$HOME/.ros
to have permissions that don't allow thelucifermintu
user to .... create files there.
@Abhishek_mishra: please show us the output of
ls -al /home/lucifermintu/.ros
.@gvdhoorn ok