[Xorp-users] Xorp + Click userlevel error connecting to Socket

Luca Belforte luca.belforte at student.uclouvain.be
Mon Oct 12 00:43:42 PDT 2009


Hello,

I'm trying to launch XORP 1.6 with click (1.6 or 1.4.3) but i have the
following errors, and the process don't start.

with click 1.6:

[ 2009/10/10 00:50:14  INFO xorp_rtrmgr:2534 RTRMGR +249
master_conf_tree.cc execute ] Changed modules: interfaces, firewall, fea
[ 2009/10/10 00:50:14  INFO xorp_rtrmgr:2534 RTRMGR +101
module_manager.cc execute ] Executing module: interfaces (fea/xorp_fea)
[ 2009/10/10 00:50:15 INFO xorp_fea MFEA ] MFEA enabled
[ 2009/10/10 00:50:15 INFO xorp_fea MFEA ] CLI enabled
[ 2009/10/10 00:50:15 INFO xorp_fea MFEA ] CLI started
[ 2009/10/10 00:50:15 INFO xorp_fea MFEA ] MFEA enabled
[ 2009/10/10 00:50:15 INFO xorp_fea MFEA ] CLI enabled
[ 2009/10/10 00:50:15 INFO xorp_fea MFEA ] CLI started
[ 2009/10/10 00:50:16  INFO xorp_rtrmgr:2534 RTRMGR +101
module_manager.cc execute ] Executing module: firewall (fea/xorp_fea)
[ 2009/10/10 00:50:20  INFO xorp_rtrmgr:2534 RTRMGR +101
module_manager.cc execute ] Executing module: fea (fea/xorp_fea)
[ 2009/10/10 00:50:24  ERROR xorp_fea:2535 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:50:24 WARNING xorp_fea FEA ] Could not open user-level
Click socket: Connection refused. Trying again...
[ 2009/10/10 00:50:24  ERROR xorp_fea:2535 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:50:24 WARNING xorp_fea FEA ] Could not open user-level
Click socket: Connection refused. Trying again...
[ 2009/10/10 00:50:24  ERROR xorp_fea:2535 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:50:24 WARNING xorp_fea FEA ] Could not open user-level
Click socket: Connection refused. Trying again...
[ 2009/10/10 00:50:25  ERROR xorp_fea:2535 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:50:25 WARNING xorp_fea XrlFeaTarget ] Handling method
for fea_click/0.1/start_click failed: XrlCmdError 102 Command failed
Could not open user-level Click socket: Connection refused
[ 2009/10/10 00:50:25  ERROR xorp_rtrmgr:2534 RTRMGR +691
master_conf_tree.cc commit_pass2_done ] Commit failed: 102 Command
failed Could not open user-level Click socket: Connection refused
[ 2009/10/10 00:50:25  ERROR xorp_rtrmgr:2534 RTRMGR +261
master_conf_tree.cc config_done ] Configuration failed: 102 Command
failed Could not open user-level Click socket: Connection refused
[ 2009/10/10 00:50:25  INFO xorp_rtrmgr:2534 RTRMGR +2233 task.cc
run_task ] No more tasks to run
[ 2009/10/10 00:50:25  INFO xorp_rtrmgr:2534 RTRMGR +176
module_manager.cc terminate ] Terminating module: fea
[ 2009/10/10 00:50:25  INFO xorp_rtrmgr:2534 RTRMGR +176
module_manager.cc terminate ] Terminating module: firewall
[ 2009/10/10 00:50:25  INFO xorp_rtrmgr:2534 RTRMGR +176
module_manager.cc terminate ] Terminating module: interfaces
[ 2009/10/10 00:50:25  INFO xorp_rtrmgr:2534 RTRMGR +199
module_manager.cc terminate ] Killing module: interfaces
[ 2009/10/10 00:50:25  ERROR xorp_rtrmgr:2534 RTRMGR +754
module_manager.cc done_cb ] Command "/home/belfo/xorp/fea/xorp_fea":
terminated with signal 15.
[ 2009/10/10 00:50:25  INFO xorp_rtrmgr:2534 RTRMGR +287
module_manager.cc module_exited ] Module killed during shutdown: interfaces



with click 1.4.3

[ 2009/10/10 00:52:14  INFO xorp_rtrmgr:2551 RTRMGR +249
master_conf_tree.cc execute ] Changed modules: interfaces, firewall, fea
[ 2009/10/10 00:52:14  INFO xorp_rtrmgr:2551 RTRMGR +101
module_manager.cc execute ] Executing module: interfaces (fea/xorp_fea)
[ 2009/10/10 00:52:15 INFO xorp_fea MFEA ] MFEA enabled
[ 2009/10/10 00:52:15 INFO xorp_fea MFEA ] CLI enabled
[ 2009/10/10 00:52:15 INFO xorp_fea MFEA ] CLI started
[ 2009/10/10 00:52:15 INFO xorp_fea MFEA ] MFEA enabled
[ 2009/10/10 00:52:15 INFO xorp_fea MFEA ] CLI enabled
[ 2009/10/10 00:52:15 INFO xorp_fea MFEA ] CLI started
[ 2009/10/10 00:52:16  INFO xorp_rtrmgr:2551 RTRMGR +101
module_manager.cc execute ] Executing module: firewall (fea/xorp_fea)
[ 2009/10/10 00:52:20  INFO xorp_rtrmgr:2551 RTRMGR +101
module_manager.cc execute ] Executing module: fea (fea/xorp_fea)
[ 2009/10/10 00:52:24  ERROR xorp_fea:2552 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:52:24 WARNING xorp_fea FEA ] Could not open user-level
Click socket: Connection refused. Trying again...
[ 2009/10/10 00:52:24  ERROR xorp_fea:2552 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:52:24 WARNING xorp_fea FEA ] Could not open user-level
Click socket: Connection refused. Trying again...
[ 2009/10/10 00:52:24  ERROR xorp_fea:2552 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:52:24 WARNING xorp_fea FEA ] Could not open user-level
Click socket: Connection refused. Trying again...
[ 2009/10/10 00:52:25  ERROR xorp_fea:2552 LIBCOMM +610 comm_sock.c
comm_sock_connect4 ] Error connecting socket (family = 2, remote_addr =
127.0.0.1, remote_port = 13000): Connection refused
[ 2009/10/10 00:52:25 WARNING xorp_fea XrlFeaTarget ] Handling method
for fea_click/0.1/start_click failed: XrlCmdError 102 Command failed
Could not open user-level Click socket: Connection refused
[ 2009/10/10 00:52:25  ERROR xorp_rtrmgr:2551 RTRMGR +691
master_conf_tree.cc commit_pass2_done ] Commit failed: 102 Command
failed Could not open user-level Click socket: Connection refused
[ 2009/10/10 00:52:25  ERROR xorp_rtrmgr:2551 RTRMGR +261
master_conf_tree.cc config_done ] Configuration failed: 102 Command
failed Could not open user-level Click socket: Connection refused
[ 2009/10/10 00:52:25  INFO xorp_rtrmgr:2551 RTRMGR +2233 task.cc
run_task ] No more tasks to run
[ 2009/10/10 00:52:25  INFO xorp_rtrmgr:2551 RTRMGR +176
module_manager.cc terminate ] Terminating module: fea
[ 2009/10/10 00:52:25  INFO xorp_rtrmgr:2551 RTRMGR +176
module_manager.cc terminate ] Terminating module: firewall
[ 2009/10/10 00:52:25  INFO xorp_rtrmgr:2551 RTRMGR +176
module_manager.cc terminate ] Terminating module: interfaces
[ 2009/10/10 00:52:25  INFO xorp_rtrmgr:2551 RTRMGR +199
module_manager.cc terminate ] Killing module: interfaces
[ 2009/10/10 00:52:25  ERROR xorp_rtrmgr:2551 RTRMGR +754
module_manager.cc done_cb ] Command "/home/belfo/xorp/fea/xorp_fea":
terminated with signal 15.
[ 2009/10/10 00:52:25  INFO xorp_rtrmgr:2551 RTRMGR +287
module_manager.cc module_exited ] Module killed during shutdown: interfaces


i use a really simple xorp config script, the default one, were i
modified only click path informations.
here it is:
/* $XORP: xorp/rtrmgr/config/click.boot,v 1.1 2007/08/29 06:49:43 pavlin
Exp $ */

interfaces {
    interface eth2 {
    vif eth2 {
        address 10.10.10.10 {
        prefix-length: 24
        }
    }
    }
}

fea {
    unicast-forwarding4 {
    disable: false
    }

    click {
    /*
     * The Click forwarding path.
     * http://www.read.cs.ucla.edu/click/
     */
    disable: false

    /*
     * Set duplicate-routes-to-kernel to true if the XORP routes
     * added to Click should be added to the system kernel as well.
     */
    duplicate-routes-to-kernel: false

    /*
     * Note: If both kernel-click and user-click are enabled, then
     * typically kernel-click-config-generator-file and
     * user-click-config-generator-file should point to different
     * generators. Otherwise, a single common generator
     * wouldn't know whether to generate configuration for kernel-level
     * Click or for user-level Click.
     */
    kernel-click {
        disable: true
        install-on-startup:    true
        kernel-click-modules: "/path/to/proclikefs.o:/path/to/click.o"
        /* XXX: On FreeBSD we need only module click.ko */
        /* kernel-click-modules: "/path/to/click.ko" */
        mount-directory: "/click"
        kernel-click-config-generator-file:
"/usr/local/xorp/fea/xorp_fea_click_config_generator"
    }

    user-click {
        disable: false
        command-file: "/home/belfo/click/userlevel/click"
        /*
         * Note: don't add "-p <port>" as an extra argument, because it
         * will be in conflict with the FEA's addition of the same
         * argument.
         */
        command-extra-arguments: "-R"
        command-execute-on-startup: true
        control-address: 127.0.0.1
        control-socket-port: 13000
        startup-config-file: "/dell/null"
        user-click-config-generator-file:
"/home/belfo/xorp/fea/xorp_fea_click_config_generator"
    }
    }
}

what I'm missing?
I'm using ubuntu-server 9.04 in virtual box

thanks

Luca
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the Xorp-users mailing list