[Xorp-users] Problem on running multiple instances on the same machine

Pavlin Radoslavov pavlin at ICSI.Berkeley.EDU
Tue Nov 18 15:39:24 PST 2008


I could be wrong, but I think that if you set the environmental
variable in your shell _before_ using "sudo", it is not preserved in
the sudo environment.
In other words, you should set XORP_FINDER_SERVER_PORT _after_ you
do sudo. E.g.:

sudo tcsh
setenv ...
./xorp_rtrmgr ...

If you do this, I don't think that the -p flag is required.

Pavlin

Cao, Jean <Jean.Cao at gdcanada.com> wrote:

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



More information about the Xorp-users mailing list