Search code examples
erlangtsung

Tsung error: can't start newbeam on host


I have been trying to get tsung to connect to a box I have running kubuntu 12.04

Here is the client portion of my config

<clients>
    <client host="klaptop" weight="1" maxusers="500"/>
</clients>

I run tsung with the following command

tsung -f /var/tsung/xml/config.xml -l /var/tsung/logs/ start

I get the following error in my tsung_controller log file

=INFO REPORT==== 20-Jun-2012::15:06:01 ===
ts_config_server:(0:<0.72.0>) Can't start newbeam on host klaptop (reason: timeout) !     Aborting!

I have read the manual's trouble shooting and tried to make sure that all of my bases are covered (same erlang version, ssh connection works without password, hostnames are set up right, etc)

I have confirmed connectivity with the example they gave, here are my results.

[/var/tsung]$ erl -rsh ssh -sname foo -setcookie mycookie
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
(foo@macbook)1> slave:start(klaptop,bar,"-setcookie mycookie").
{ok,bar@klaptop}

The user manual seems to make the assumption that once the connection works in erlang, tsung will also work, this is not the case for me though, I am still getting the same timeout issue.

I am not sure how to further debug this, any help or suggestions would be appreciated.

UPDATE: As requested in the comments I tried using the IP. With the following config

<client host="klaptop" weight="1" maxusers="500">
  <ip value="10.160.1.89"></ip>
</client>

I got the same error though.


Solution

  • I had similar problem, it's possible that ssh key checking might get in the way.
    Try this:

    1. Use tsung 1.4.3 or newer

    2. Create a script file (say, some_dir/ssh_no_check):

      #!/bin/sh
      /usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $@
      
    3. Make it executable.

    4. Add:

       -r some_dir/ssh_no_check
      

    to your tsung command params.

    This will disable ssh key checking for tsung.