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

Couldn't connect to the redis server #69

Open
Playfish opened this issue Mar 20, 2017 · 2 comments
Open

Couldn't connect to the redis server #69

Playfish opened this issue Mar 20, 2017 · 2 comments

Comments

@Playfish
Copy link

Hi, these days I am using rocon_tutorials for test my rocon installation but I get some problem which is I just got message of couldn't connect to redis server when I use two computers communication by wireless, and following is my configuration.
By the way chatter_concert can work properly individually.

Rocon installation

I just use code in here

Concert PC configuration

ROS_HOSTNAME=192.168.0.110
ROS_IP=192.168.0.110
ROS_MASTER_URI=http://192.168.0.110:11311
with /etc/hosts
192.168.0.1 inno

Client laptop configuration

ROS_HOSTNAME=inno
ROS_IP=192.168.0.101
ROS_MASTER_URI=http://localhost:11311
with /etc/hosts
127.0.1.1 inno

OUTPUT ON CONCERT PC

carl@carl-550-052cn:~$ roslaunch chatter_concert concert.launch --screen
... logging to /home/carl/.ros/log/3ddbc110-0d0b-11e7-97d6-d85de2b5c407/roslaunch-carl-550-052cn-14270.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://192.168.0.110:35496/

SUMMARY
========

PARAMETERS
 * /concert/conductor/auto_invite: True
 * /concert/conductor/local_clients_only: False
 * /concert/description: Pirates in concert.
 * /concert/gateway/default_blacklist: [{'node': 'None',...
 * /concert/gateway/disable_uuids: False
 * /concert/gateway/disable_zeroconf: False
 * /concert/gateway/external_shutdown: True
 * /concert/gateway/firewall: False
 * /concert/gateway/hub_uri: http://localhost:...
 * /concert/gateway/hub_whitelist: ['http://localhos...
 * /concert/gateway/name: Chatter Concert
 * /concert/gateway/network_interface: wlan0
 * /concert/gateway/watch_loop_period: 2
 * /concert/hub/external_shutdown: True
 * /concert/hub/gateway_dead_timeout: 7200
 * /concert/hub/gateway_unavailable_timeout: 10
 * /concert/hub/max_memory: 10mb
 * /concert/hub/name: Chatter Concert
 * /concert/hub/port: 6380
 * /concert/hub/watcher_thread_rate: 0.2
 * /concert/hub/zeroconf: True
 * /concert/icon: rocon_icons/rocon...
 * /concert/interactions/rosbridge_address: localhost
 * /concert/interactions/rosbridge_port: 9090
 * /concert/interactions/webserver_address: webapp.robotconce...
 * /concert/name: Chatter Concert
 * /concert/scheduler/enable_preemptions: False
 * /concert/services/concert_name: Chatter Concert
 * /concert/services/default_auto_enable_services: all
 * /concert/services/disable_cache: True
 * /concert/services/services: chatter_concert/c...
 * /concert/zeroconf/zeroconf/services: [{'port': 11311, ...
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /concert/zeroconf/
    zeroconf (zeroconf_avahi/zeroconf)
  /concert/
    concert_conductor_graph_to_string (concert_utilities/conductor_graph_to_string.py)
    conductor (concert_conductor/conductor.py)
    gateway (rocon_gateway/gateway.py)
    hub (rocon_hub/hub.py)
    interactions (rocon_interactions/interactions_manager.py)
    master (rocon_master_info/master.py)
    scheduler (concert_schedulers/compatibility_tree_scheduler.py)
    services (concert_service_manager/service_manager)
    software (concert_software_farmer/software_farmer.py)

auto-starting new master
process[master]: started with pid [14283]
ROS_MASTER_URI=http://192.168.0.110:11311

setting /run_id to 3ddbc110-0d0b-11e7-97d6-d85de2b5c407
process[rosout-1]: started with pid [14296]
started core service [/rosout]
process[concert/master-2]: started with pid [14299]
process[concert/services-3]: started with pid [14300]
process[concert/software-4]: started with pid [14301]
process[concert/conductor-5]: started with pid [14302]
process[concert/concert_conductor_graph_to_string-6]: started with pid [14307]
process[concert/scheduler-7]: started with pid [14318]
process[concert/interactions-8]: started with pid [14319]
process[concert/hub-9]: started with pid [14320]
process[concert/gateway-10]: started with pid [14321]
process[concert/zeroconf/zeroconf-11]: started with pid [14322]
[INFO] [WallTime: 1489972761.534692] Gateway : generated unique hash name [Chatter Concertf2ed345c76b547d6850c97286f804fd6]
[INFO] [WallTime: 1489972761.546939] Gateway : checking if zeroconf services are available...
[ INFO] [1489972761.551905671]: Zeroconf: added a listener [_ros-multimaster-hub._tcp]
[INFO] [WallTime: 1489972761.620913] Hub : version 2.8.4
[INFO] [WallTime: 1489972761.623488] scheduler request topic: ~requests
[INFO] [WallTime: 1489972761.699615] Service Manager : load service profile from default configuration
[INFO] [WallTime: 1489972761.796712] Hub : reset hub variables on the redis server.
[INFO] [WallTime: 1489972761.805772] Hub : advertising 'Chatter Concert' on zeroconf [_ros-multimaster-hub._tcp, port 6380]
[INFO] [WallTime: 1489972761.904834] Conductor : no hub yet available, spinning...
[ INFO] [1489972761.969940657]: Zeroconf: service successfully established [Chatter Concert][_concert-master._tcp][11311]
[INFO] [WallTime: 1489972762.005654] Conductor : no hub yet available, spinning...
[INFO] [WallTime: 1489972762.056840] Gateway : discovered hub directly [http://localhost:6380]
[INFO] [WallTime: 1489972762.106270] Conductor : no hub yet available, spinning...
[INFO] [WallTime: 1489972762.110502] Gateway : Found existing mismatched public key on the hub. Requesting resend for all flip-ins.
[INFO] [WallTime: 1489972762.115346] Gateway : registering on the hub [Chatter Concert]
[INFO] [WallTime: 1489972762.218069] {'auto_invite': True, 'oblivion_timeout': 3600, 'service_timeout': 5.0, 'groups': {'groups': {}, 'state': True, 'name': 'Default', 'parent': 0, 'parameters': {'auto_invite': True, 'oblivion_timeout': 3600, 'service_timeout': 5.0, 'local_clients_only': False}, 'type': '', 'id': 0}, 'local_clients_only': False}
Found the conductor, setting up subscribers inside /concert/conductor
[INFO] [WallTime: 1489972762.315420] Software Farm : ===== Available Softwares =====
[INFO] [WallTime: 1489972762.315716] Software Farm : - concert_software_common/web_video_server : Streams video via http
[INFO] [WallTime: 1489972762.315877] Software Farm : - concert_software_common/world_canvas_server : World canvas server
[INFO] [WallTime: 1489972762.401780] Conductor Graph To String : Initialised
Established under name 'Chatter Concert'
[ INFO] [1489972762.678408791]: Zeroconf: discovered new service [Chatter Concert][_ros-multimaster-hub._tcp][local][3][ipv4]
[INFO] [WallTime: 1489972762.786806] Service Manager : serving request to enable 'admin'
[ INFO] [1489972763.178627454]: Zeroconf: resolved service [Chatter Concert][_ros-multimaster-hub._tcp][local][3][ipv4][192.168.0.110:6380]
[INFO] [WallTime: 1489972763.619699] Gateway : blacklisting hub [already connected to this hub]
[INFO] [WallTime: 1489972763.974839] Interactions : loading Gateway Graph [rocon_gateway_graph-Admin-/services/admin]
[INFO] [WallTime: 1489972763.975140] Interactions : loading Conductor Graph [concert_conductor_graph-Admin-/services/admin]
[INFO] [WallTime: 1489972763.975441] Interactions : loading Ros Graph [rqt_graph-Admin-/services/admin]
[INFO] [WallTime: 1489972763.975642] Interactions : loading Concert Info [concert_info-Admin-/services/admin]
[INFO] [WallTime: 1489972763.975829] Interactions : loading Concert Service Administration [concert_admin_app-Admin-/services/admin]
[INFO] [WallTime: 1489972763.976037] Interactions : loading Concert Conductor Graph [web_app(http://webapp.robotconcert.org/concert_conductor_graph_web/index.html)-Admin-/services/admin]
[INFO] [WallTime: 1489972763.976432] Service Manager : service enabled [admin] [admin]
[INFO] [WallTime: 1489972763.976750] Service Manager : serving request to enable 'chatter'
started roslaunch server http://192.168.0.110:40741/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20
 * /services/chatter/static_link_graph/filename: /home/carl/test_h...

NODES
  /services/chatter/
    static_link_graph (chatter_concert/static_link_graph_service.py)

ROS_MASTER_URI=http://192.168.0.110:11311
core service [/rosout] found
process[services/chatter/static_link_graph-1]: started with pid [14754]
[INFO] [WallTime: 1489972764.941014] ROCON requester feedback topic: /concert/scheduler/requests_c67c0d3f53f94ab898a075f4e5eb8a9c
[INFO] [WallTime: 1489972765.014407] requester feedback topic: ~requests_c67c0d3f53f94ab898a075f4e5eb8a9c
[INFO] [WallTime: 1489972765.534327] Interactions : loading Qt Listener [chatter_concert/remocon_dude-Chatter-/services/chatter]
[INFO] [WallTime: 1489972765.534652] Interactions : loading Android Listener [com.github.rosjava.android_remocons.listener.Listener-Chatter-/services/chatter]
[INFO] [WallTime: 1489972765.534837] Interactions : loading Ros Wiki - Chatter Concert [web_url(http://wiki.ros.org/chatter_concert)-Docs-/services/chatter]
[INFO] [WallTime: 1489972765.534998] Interactions : loading Roslaunch Listener [chatter_concert/listener.launch-Chatter-/services/chatter]
[INFO] [WallTime: 1489972765.535344] Service Manager : service enabled [chatter] [chatter]

OUTPUT ON Client laptop

`-turtlebot@turtlebot-ThinkPad-E450:~$` roslaunch chatter_concert dude.launch  --screen
... logging to /home/turtlebot/.ros/log/659c927e-0d0b-11e7-83c4-34e6adf9b735/roslaunch-turtlebot-ThinkPad-E450-14847.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://inno:34739/

SUMMARY
========

PARAMETERS
 * /app_manager/auto_rapp_installation: False
 * /app_manager/auto_start_rapp: False
 * /app_manager/capability_server_name: capability_server
 * /app_manager/local_remote_controllers_only: True
 * /app_manager/rapp_package_blacklist: []
 * /app_manager/rapp_package_whitelist: ['rocon_apps']
 * /app_manager/robot_icon: rocon_icons/cyber...
 * /app_manager/robot_name: Bodacious Dude
 * /app_manager/robot_type: pc
 * /app_manager/screen: True
 * /app_manager/simulation: False
 * /app_manager/use_gateway_uuids: True
 * /description: To err is human, ...
 * /gateway/default_advertisements: [{'node': '.*app_...
 * /gateway/default_blacklist: [{'node': 'None',...
 * /gateway/default_flips: [{'gateway': 'Pub...
 * /gateway/disable_uuids: False
 * /gateway/disable_zeroconf: False
 * /gateway/firewall: False
 * /gateway/hub_uri: http://localhost:...
 * /gateway/hub_whitelist: ['Chatter Concert...
 * /gateway/name: Bodacious Dude
 * /gateway/network_interface: wlan1
 * /gateway/watch_loop_period: 1
 * /icon: rocon_icons/cyber...
 * /name: Bodacious Dude
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /zeroconf/
    zeroconf (zeroconf_avahi/zeroconf)
  /
    app_manager (rocon_app_manager/rapp_manager.py)
    gateway (rocon_gateway/gateway.py)
    master (rocon_master_info/master.py)

auto-starting new master
process[master]: started with pid [15550]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 659c927e-0d0b-11e7-83c4-34e6adf9b735
process[rosout-1]: started with pid [15947]
started core service [/rosout]
process[gateway-2]: started with pid [15984]
process[app_manager-3]: started with pid [15988]
process[master-4]: started with pid [15993]
process[zeroconf/zeroconf-5]: started with pid [15996]
[INFO] [WallTime: 1489972827.001559] Gateway : generated unique hash name [Bodacious Dude19dffa6eec08407d93e0c3a0c53f22d5]
[INFO] [WallTime: 1489972827.005663] Gateway : adding rule to public watchlist [publisher][.*status][.*app_manager]
[INFO] [WallTime: 1489972827.006017] Gateway : adding rule to public watchlist [service][.*platform_info][.*app_manager]
[INFO] [WallTime: 1489972827.006278] Gateway : adding rule to public watchlist [service][.*invite][.*app_manager]
[INFO] [WallTime: 1489972827.006530] Gateway : adding rule to public watchlist [service][.*list_rapps][.*app_manager]
[INFO] [WallTime: 1489972827.006787] Gateway : adding rule to public watchlist [service][.*get_status][.*app_manager]
[INFO] [WallTime: 1489972827.052911] Gateway : checking if zeroconf services are available...
[ INFO] [1489972827.074524743]: Zeroconf: added a listener [_ros-multimaster-hub._tcp]
[ INFO] [1489972827.080577239]: Zeroconf: discovered new service [Chatter Concert][_ros-multimaster-hub._tcp][local][3][ipv4]
[INFO] [WallTime: 1489972827.160586] Rapp Manager : indexing rapps...
[ INFO] [1489972827.580882006]: Zeroconf: resolved service [Chatter Concert][_ros-multimaster-hub._tcp][local][3][ipv4][192.168.0.110:6380]
[INFO] [WallTime: 1489972828.163579] Rapp Manager : determining runnable rapps...
[INFO] [WallTime: 1489972828.204722] Rapp Manager : disabling apps requiring capabilities [Couldn't find capability server node. Error: Node 'capability_server' not found.]
[INFO] [WallTime: 1489972828.205154] Rapp Manager : 'rocon_apps/meow_chirp' added to the list of runnable apps.
[INFO] [WallTime: 1489972828.205400] Rapp Manager : 'rocon_apps/moo_chirp' added to the list of runnable apps.
[INFO] [WallTime: 1489972828.205616] Rapp Manager : 'rocon_apps/angry_cat_chirp' added to the list of runnable apps.
[INFO] [WallTime: 1489972828.205789] Rapp Manager : 'rocon_apps/talker' added to the list of runnable apps.
[INFO] [WallTime: 1489972828.205943] Rapp Manager : 'rocon_apps/listener' added to the list of runnable apps.
[INFO] [WallTime: 1489972828.206085] Rapp Manager : 'rocon_apps/lion_chirp' added to the list of runnable apps.
[WARN] [WallTime: 1489972828.206244] Rapp Manager : 'rocon_apps/chirp' is not unique and has no preferred rapp. rocon_apps/moo_chirp' has been selected.
[INFO] [WallTime: 1489972828.212336] Rapp Manager : initialised.
[INFO] [WallTime: 1489972837.611896] Gateway : unresolvable hub [couldn't connect to the redis server]
^[[B^C[zeroconf/zeroconf-5] killing on exit
[master-4] killing on exit
[app_manager-3] killing on exit
[gateway-2] killing on exit
[INFO] [WallTime: 1489973033.259459] Gateway : shutting down.
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
turtlebot@turtlebot-ThinkPad-E450:~$ export ROS_IP=192.168.0.101
turtlebot@turtlebot-ThinkPad-E450:~$ roslaunch chatter_concert dude.launch  --screen
... logging to /home/turtlebot/.ros/log/fc427c7a-0d0b-11e7-b217-34e6adf9b735/roslaunch-turtlebot-ThinkPad-E450-3808.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://inno:37870/

SUMMARY
========

PARAMETERS
 * /app_manager/auto_rapp_installation: False
 * /app_manager/auto_start_rapp: False
 * /app_manager/capability_server_name: capability_server
 * /app_manager/local_remote_controllers_only: True
 * /app_manager/rapp_package_blacklist: []
 * /app_manager/rapp_package_whitelist: ['rocon_apps']
 * /app_manager/robot_icon: rocon_icons/cyber...
 * /app_manager/robot_name: Bodacious Dude
 * /app_manager/robot_type: pc
 * /app_manager/screen: True
 * /app_manager/simulation: False
 * /app_manager/use_gateway_uuids: True
 * /description: To err is human, ...
 * /gateway/default_advertisements: [{'node': '.*app_...
 * /gateway/default_blacklist: [{'node': 'None',...
 * /gateway/default_flips: [{'gateway': 'Pub...
 * /gateway/disable_uuids: False
 * /gateway/disable_zeroconf: False
 * /gateway/firewall: False
 * /gateway/hub_uri: http://localhost:...
 * /gateway/hub_whitelist: ['Chatter Concert...
 * /gateway/name: Bodacious Dude
 * /gateway/network_interface: wlan1
 * /gateway/watch_loop_period: 1
 * /icon: rocon_icons/cyber...
 * /name: Bodacious Dude
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /zeroconf/
    zeroconf (zeroconf_avahi/zeroconf)
  /
    app_manager (rocon_app_manager/rapp_manager.py)
    gateway (rocon_gateway/gateway.py)
    master (rocon_master_info/master.py)

auto-starting new master
process[master]: started with pid [4498]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to fc427c7a-0d0b-11e7-b217-34e6adf9b735
process[rosout-1]: started with pid [4856]
started core service [/rosout]
process[gateway-2]: started with pid [4901]
process[app_manager-3]: started with pid [4916]
process[master-4]: started with pid [4921]
process[zeroconf/zeroconf-5]: started with pid [4927]
[INFO] [WallTime: 1489973079.814909] Gateway : generated unique hash name [Bodacious Dudec3675266241541f283c1f7ffee8a5c48]
[INFO] [WallTime: 1489973079.818722] Gateway : adding rule to public watchlist [publisher][.*status][.*app_manager]
[INFO] [WallTime: 1489973079.819027] Gateway : adding rule to public watchlist [service][.*platform_info][.*app_manager]
[INFO] [WallTime: 1489973079.819278] Gateway : adding rule to public watchlist [service][.*invite][.*app_manager]
[INFO] [WallTime: 1489973079.819486] Gateway : adding rule to public watchlist [service][.*list_rapps][.*app_manager]
[INFO] [WallTime: 1489973079.819735] Gateway : adding rule to public watchlist [service][.*get_status][.*app_manager]
[INFO] [WallTime: 1489973079.892867] Gateway : checking if zeroconf services are available...
[ INFO] [1489973079.910255763]: Zeroconf: added a listener [_ros-multimaster-hub._tcp]
[ INFO] [1489973079.912139424]: Zeroconf: discovered new service [Chatter Concert][_ros-multimaster-hub._tcp][local][3][ipv4]
[INFO] [WallTime: 1489973080.071430] Rapp Manager : indexing rapps...
[ INFO] [1489973080.412390091]: Zeroconf: resolved service [Chatter Concert][_ros-multimaster-hub._tcp][local][3][ipv4][192.168.0.110:6380]
[INFO] [WallTime: 1489973081.099902] Rapp Manager : determining runnable rapps...
[INFO] [WallTime: 1489973081.140221] Rapp Manager : disabling apps requiring capabilities [Couldn't find capability server node. Error: Node 'capability_server' not found.]
[INFO] [WallTime: 1489973081.140977] Rapp Manager : 'rocon_apps/meow_chirp' added to the list of runnable apps.
[INFO] [WallTime: 1489973081.141439] Rapp Manager : 'rocon_apps/moo_chirp' added to the list of runnable apps.
[INFO] [WallTime: 1489973081.141767] Rapp Manager : 'rocon_apps/angry_cat_chirp' added to the list of runnable apps.
[INFO] [WallTime: 1489973081.142003] Rapp Manager : 'rocon_apps/talker' added to the list of runnable apps.
[INFO] [WallTime: 1489973081.142240] Rapp Manager : 'rocon_apps/listener' added to the list of runnable apps.
[INFO] [WallTime: 1489973081.142440] Rapp Manager : 'rocon_apps/lion_chirp' added to the list of runnable apps.
[WARN] [WallTime: 1489973081.142702] Rapp Manager : 'rocon_apps/chirp' is not unique and has no preferred rapp. rocon_apps/moo_chirp' has been selected.
[INFO] [WallTime: 1489973081.151224] Rapp Manager : initialised.
[INFO] [WallTime: 1489973090.439887] Gateway : unresolvable hub [couldn't connect to the redis server]

Thank you!
Waiting for the letter!

@asmodehn
Copy link
Collaborator

After a quick look this seems to be a network setup issue...
Please double check your network settings. Rocon is not a simple client-server software, it is multi-master, meaning all machines need to be able to connect to all other machines. that means the IP/hostname defined need to be resolvable for all.

Looking at the configuration you describe, are you sure that inno is 192.168.0.1 ? It is defined as 192.168.0.101 ?

@Playfish
Copy link
Author

@asmodehn Hi, Thank you very much for your answer.
I got some confused about rocon multimaster configuration, such as what is meaning about inno? How to configure network let each machines know each other.
And I follow your advices that change my PC's inno to 192.168.0.101 in /etc/hosts, but I got the same problems, Can you tell me if my configuration is wrong?
Thanks!

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