[Xorp-users] Problem on running multiple instances on the same machine
Atanu Ghosh
atanu at xorp.org
Tue Nov 18 15:39:58 PST 2008
Hi,
The sudo command resets the environment, try the "-E" flag to sudo.
Atanu.
$ XORP_FINDER_SERVER_PORT=21008 env | grep XORP_FINDER_SERVER_PORT
XORP_FINDER_SERVER_PORT=21008
$ XORP_FINDER_SERVER_PORT=21008 sudo env | grep XORP_FINDER_SERVER_PORT
$ XORP_FINDER_SERVER_PORT=21008 sudo -E env | grep XORP_FINDER_SERVER_PORT
XORP_FINDER_SERVER_PORT=21008
>>>>> "Jean" == Jean Cao <Cao> writes:
Jean> I am trying to run multiple instances on the same host,
Jean> following earlier postings of "Question on supporting multiple
Jean> routing tables" and "Running multiple instances of XORP on the
Jean> same host".
Jean> I am running XORP_1.5 on Ubuntu. I have set
Jean> XORP_FINDER_SERVER_PORT to a new number (21008) after running
Jean> the first instance. However, my second instance couldn't
Jean> start properly, and got the same error messages as posted in
Jean> "Running multiple instances of XORP on the same host" (see
Jean> attached). Also, there are endless warnings, what does that
Jean> mean??
Jean> BTW, I also found that '-p' is required.
Jean> So, I am wondering what is the current stage of supporting
Jean> multiple instances of XORP (unicast only in my study) on the
Jean> same host? Can anyone who got it working kindly give me some
Jean> hints?
Jean> Regards,
Jean> Jean
Jean> Error messages:
Jean> --------------------------
Jean> administrator at administrator-desktop:~$ echo
Jean> $XORP_FINDER_SERVER_PORT
Jean> 21008
Jean> administrator at administrator-desktop:~$ cd
Jean> Desktop/xorp-1.5/rtrmgr/
Jean>
Jean> administrator at administrator-desktop:~/Desktop/xorp-1.5/rtrmgr$
Jean> sudo ./xorp_rtrmgr -b config/multitable_rip.boot
Jean> [sudo] password for administrator:
Jean> [ 2008/11/18 14:04:13 ERROR xorp_rtrmgr:6622 LIBCOMM +312
Jean> comm_sock.c comm_sock_bind4 ] Error binding socket (family =
Jean> 2, my_addr = 127.0.0.1, my_port = 19999): Address already in
Jean> use
Jean> [ 2008/11/18 14:04:13 ERROR xorp_rtrmgr:6622 RTRMGR +260
Jean> main_rtrmgr.cc run ] Address already in use: a finder may
Jean> already be running.
Jean>
Jean> administrator at administrator-desktop:~/Desktop/xorp-1.5/rtrmgr$
Jean> sudo ./xorp_rtrmgr -p 21008 -b config/multitable_rip.boot
Jean> [ 2008/11/18 14:04:43 INFO xorp_rtrmgr:6623 RTRMGR +239
Jean> master_conf_tree.cc execute ] Changed modules: interfaces,
Jean> firewall, fea, rib, policy, rip
Jean> [ 2008/11/18 14:04:43 INFO xorp_rtrmgr:6623 RTRMGR +96
Jean> module_manager.cc execute ] Executing module: interfaces
Jean> (fea/xorp_fea)
Jean> [ 2008/11/18 14:04:44 INFO xorp_fea MFEA ] MFEA enabled
Jean> [ 2008/11/18 14:04:44 INFO xorp_fea MFEA ] CLI enabled
Jean> [ 2008/11/18 14:04:44 INFO xorp_fea MFEA ] CLI started
Jean> [ 2008/11/18 14:04:44 INFO xorp_fea MFEA ] MFEA enabled
Jean> [ 2008/11/18 14:04:44 INFO xorp_fea MFEA ] CLI enabled
Jean> [ 2008/11/18 14:04:44 INFO xorp_fea MFEA ] CLI started
Jean> [ 2008/11/18 14:04:44 FATAL xorp_fea:6624 MFEA +519
Jean> xrl_mfea_node.cc cli_manager_client_send_add_cli_command_cb ]
Jean> Cannot add a command to CLI manager: 102 Command failed Cannot
Jean> install command 'show mfea': Error installing 'show mfea' on
Jean> '<ROOT>': Command 'mfea' already installed
Jean> [ 2008/11/18 14:04:44 ERROR xorp_rtrmgr:6623 RTRMGR +747
Jean> module_manager.cc done_cb ] Command
Jean> "/home/administrator/Desktop/xorp-1.5/fea/xorp_fea":
Jean> terminated with signal 6.
Jean> [ 2008/11/18 14:04:44 INFO xorp_rtrmgr:6623 RTRMGR +294
Jean> module_manager.cc module_exited ] Module abnormally killed:
Jean> interfaces
Jean> [ 2008/11/18 14:04:45 WARNING xorp_rtrmgr:6623
Jean> XrlFinderTarget +406 ../xrl/targets/finder_base.cc
Jean> handle_finder_0_2_resolve_xrl ] Handling method for
Jean> finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed
Jean> Target "fea" does not exist or is not enabled.
Jean> [ 2008/11/18 14:04:46 WARNING xorp_rtrmgr:6623
Jean> XrlFinderTarget +406 ../xrl/targets/finder_base.cc
Jean> handle_finder_0_2_resolve_xrl ] Handling method for
Jean> finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed
Jean> Target "fea" does not exist or is not enabled.
Jean> [ 2008/11/18 14:04:47 WARNING xorp_rtrmgr:6623
Jean> XrlFinderTarget +406 ../xrl/targets/finder_base.cc
Jean> handle_finder_0_2_resolve_xrl ] Handling method for
Jean> finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed
Jean> Target "fea" does not exist or is not enabled.
Jean> ... endless warnings...
Jean> The information contained in this e-mail message is
Jean> PRIVATE. It may contain confidential information and may be
Jean> legally privileged. It is intended for the exclusive use of
Jean> the addressee(s). If you are not the intended recipient, you
Jean> are hereby notified that any dissemination, distribution or
Jean> reproduction of this communication is strictly prohibited. If
Jean> the intended recipient(s) cannot be reached or if a
Jean> transmission problem has occurred, please notify the sender
Jean> immediately by return e-mail and destroy all copies of this
Jean> message. Thank you.
Jean> _______________________________________________ Xorp-users
Jean> mailing list Xorp-users at xorp.org
Jean> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
More information about the Xorp-users
mailing list