Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pr2_bringup error: [get_hddtemp_data] socket connection refused #249

Open
iretiayo opened this issue Jan 18, 2017 · 1 comment
Open

pr2_bringup error: [get_hddtemp_data] socket connection refused #249

iretiayo opened this issue Jan 18, 2017 · 1 comment

Comments

@iretiayo
Copy link

I get the following error when bringing up the pr2 (i.e. roslaunch /etc/ros/robot.launch
)
ERROR below:
File "/opt/ros/indigo/lib/pr2_computer_monitor/hd_monitor.py", line 77, in get_hddtemp_data
hd_sock.connect((hostname, port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused

It looks like the problem is with the hostname/port number specified as:
def get_hddtemp_data(hostname = 'localhost', port = 7634):

check the file at: https://github.com/PR2/pr2_robot/blob/indigo-devel/pr2_computer_monitor/scripts/hd_monitor.py

I'm not sure how to fix it though.

@mherrb
Copy link
Contributor

mherrb commented Aug 31, 2018

To fix this you need to enable the daemon mode in hddtemp.
Make sure that hddtemp is installed (apt-get install hddtemp) and edit /etc/default/hddtemp to change

RUN_DAEMON="false"

to
RUN_DAEMON="true"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants