question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't recognize masters in VM

See original GitHub issue

I followed http://digital.csic.es/bitstream/10261/133333/1/ROS-systems.pdf and I can echo the topic created in the VM but not the other way around. And now when I try to check the master inside the VM I get this (rosservice call /master_discovery/list_masters)

masters:

name: "ubuntu"
uri: "http://ubuntu:11311/"
timestamp: 1556551349.94
timestamp_local: 1556551349.94
online: True
discoverer_name: "/master_discovery"
monitoruri: "http://localhost:11611"
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 154, in run
    (client_sock, client_addr) = self.server_sock.accept()
  File "/usr/lib/python2.7/socket.py", line 206, in accept
    sock, addr = self._sock.accept()
  File "/usr/lib/python2.7/socket.py", line 174, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
atiderkocommented, Apr 30, 2019

I have no Idea where the error comes from. I can’t reproduce it in VirtualBox 6.0 with Ubuntu 18.04. But I mean it is not the problem why you can’t discover/see the topics in VM.

Try to check your Multicast traffic: https://taosecurity.blogspot.com/2006/09/generating-multicast-traffic.html

or add robot_hosts parameter to master_discovery: rosrun master_discovery_fkie master_discovery _robot_hosts:=[VM_HOST_NAME]

This adds explicit an unicast communication to given hosts.

0reactions
Afladimir1commented, May 2, 2019

Thank you! Adding robot_host in main worked, and now the VM recognizes it. The error from the first post still appears but it detects the other master. But I still have no idea why multicast isn’t working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't the virtual machine access the host's network folder
I set two virtual machines and one host machine. Now, this two virtual machines can communicate with each other through Network to shared ......
Read more >
ESXi 6.5 does not recognize the virtual disks of my server
When I start the virtual machine and start the process of installing Windows server 2012, it shows me an error where it tells...
Read more >
No internet connection in Virtual Machine on selecting NAT ...
This worked for me! My VMWare is set to NAT connection so that's why. So I think the solution is the following: Go...
Read more >
Please enable the Virtual Machine Platform Windows ...
After restart my computer for an update, i can not start my wsl2 Ubuntu with same error message. 1
Read more >
How to Fix the Error Hyper-V failed to Change State
If you cannot detect the VM GUID in the graphical user interface of Windows ... Run compmgmt.msc, then go to Event Viewer >...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found