ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Permission denied: '/home/../roscore-11311.pid' when starting roscore

asked 2019-03-04 22:49:29 -0600

Abhishek_mishra gravatar image

updated 2019-03-05 03:47:35 -0600

gvdhoorn gravatar image

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!!

edit retag flag offensive close merge delete

Comments

Have you tried anything? Seems like a python error, not a ROS related one. Does this help?

aPonza gravatar image aPonza  ( 2019-03-05 03:18:39 -0600 )edit

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 gravatar image EdwardNur  ( 2019-03-05 03:36:48 -0600 )edit
1

@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 the lucifermintu user to ..

gvdhoorn gravatar image gvdhoorn  ( 2019-03-05 03:42:43 -0600 )edit
1

.. create files there.

@Abhishek_mishra: please show us the output of ls -al /home/lucifermintu/.ros.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-05 03:43:24 -0600 )edit
EdwardNur gravatar image EdwardNur  ( 2019-03-05 04:01:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-07 22:50:18 -0600

PrasanthT gravatar image

updated 2019-03-07 23:45:59 -0600

jayess gravatar image

Try this Command to fix Permission errors on Home Directory:

sudo chown -R $USER: $HOME
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-03-04 22:49:29 -0600

Seen: 1,826 times

Last updated: Mar 07 '19