[ERROR] [1583754648.504890309]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying

I just was trying to do all the steps in ROS2 basic c++ course. And got the error:

[ERROR] [1583754648.504890309]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying…

user:~$ source ~/.bashrc_bridge
ROS_DISTRO was set to ‘melodic’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘dashing’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘melodic’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘dashing’ before. Please make sure that the environment does not mix paths from different distributions.
user:~$ export ROS_MASTER_URI=http://localhost:11311
user:~$ ros2 run ros1_bridge dynamic_bridge
[ERROR] [1583754492.787546360]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying…
^Cuser:~$ ros2 run ros1_bridge dynamic_bridge
[ERROR] [1583754600.699351672]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying…
^C^Cuser:~$ source ~/.bashrc_bridge
ROS_DISTRO was set to ‘melodic’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘dashing’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘melodic’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘dashing’ before. Please make sure that the environment does not mix paths from different distributions.
user:~$ export ROS_MASTER_URI=http://localhost:11311
user:~$ ros2 run ros1_bridge dynamic_bridge
[ERROR] [1583754648.504890309]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying…

Hi @putienkosanerok,

Thank you for contacting us and welcome to the Community!

I apologize for this error. Could you please run the following to change the ROS Mater URI and check again?

export ROS_MASTER_URI=http://master:11311

Thank you for quick response. For me it works now.

1 Like

Hello @bayodesegun,

It happened with me as well. Why don’t you update the notes? By default ROS_MASTER_URI seems to be correct. Please delete the additional instruction to change URI from the notes.

Thanks,
Kashish Dhal

Hi @kashish.dhal,

Thank you for your suggestion - you have a good point there!

Let me check with the course owner and get back to you later today.


Btw, welcome to the Community!

Thanks for the consideration @bayodesegun

1 Like

Also, if I want to send a message to the support people regarding some personal issue, where I do that?

You can leave us feedback by

If you would like to post a feature request, please click here .