roscore won't run: "could not contact master"
Hi all. roscore won't run, and I've tried starting from as clean a system as I can make it. It used to work, and the network config hasn't changed, and all the environment vars are good as they've always been. I can ping myself by ip, by localhost, and by hostname. I've apparently screwed something up somewhere, but fresh installs of all the various ros stuff don't seem to fix it. Any ideas on what to check? Thanks.
Steve.
$ roscore
... logging to /home/rancher/.ros/log/e5678e18-1338-11e2-9087-5404a6b86db0/roslaunch-flyatar-2199.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://flyatar:48980/
ros_comm version 1.8.10
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
auto-starting new master
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[master]: started with pid [2249]
ERROR: could not contact master [http://flyatar:11311/]
[master] killing on exit
Traceback (most recent call last):
File "/opt/ros/fuerte/bin/rosmaster", line 35, in <module>
rosmaster.rosmaster_main()
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosmaster/main.py", line 73, in rosmaster_main
configure_logging()
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosmaster/main.py", line 57, in configure_logging
_log_filename = rosgraph.roslogging.configure_logging('rosmaster', logging.DEBUG, filename=filename)
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosgraph/roslogging.py", line 86, in configure_logging
rosgraph_d = rospkg.RosPack().get_path('rosgraph')
File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 147, in get_path
self._update_location_cache()
File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 130, in _update_location_cache
list_by_path(self._manifest_name, path, cache)
File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 56, in list_by_path
for d, dirs, files in os.walk(path, topdown=True, followlinks=True):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 276, in walk
names = listdir(top)
KeyboardInterrupt
$
rancher@flyatar:~$ cat /etc/hostname
flyatar
rancher@flyatar:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 54:04:a6:b8:6d:b0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17 Memory:fb900000-fb920000
eth1 Link encap:Ethernet HWaddr 54:04:a6:b8:75:9c
inet addr:172 ...
Can you post the following: cat /etc/hostname, ifconfig, echo $ROS_MASTER_URI, echo $ROS_IP, echo $ROS_HOSTNAME
Also inspect the logfiles in .ros/logs
I edited the question above with the info. I'm just going to move on, and do a new OS install, so figuring this out isn't really crucial.
Can you also post /etc/hosts ?
Note also that this is 32bit Ubuntu precise.