tsung icon indicating copy to clipboard operation
tsung copied to clipboard

Unnable start HTTP test

Open Varanishe opened this issue 6 years ago • 9 comments
trafficstars

Hello! I faced with the issue on CentOs 7, i cant run test, because when i run tsung -f test.xml start i see error Starting Tsung Log directory is: /root/.tsung/log/20190327-0447 Can't start ! {error, {{badmatch,{error,enoent}}, [{ts_controller_sup,start_inets,2, [{file,"src/tsung_controller/ts_controller_sup.erl"}, {line,109}]}, {ts_controller_sup,init,1, [{file,"src/tsung_controller/ts_controller_sup.erl"}, {line,94}]}, {supervisor,init,1,[{file,"supervisor.erl"},{line,239}]}, {gen_server,init_it,6, [{file,"gen_server.erl"},{line,304}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,239}]}]}}

Thank you for you future reply

Varanishe avatar Mar 27 '19 09:03 Varanishe

Hi!

enoent basically means "No such file or directory". Are you running tsung as root? Can you verify that the user that you are running tsung as, can access /root/.tsung? In case you are running in a distributed setup: Are you sure all nodes can also access /root/.tsung?

tisba avatar Mar 27 '19 10:03 tisba

Hello, Yes i login as root, I can go to this folder by my own, I execute this xml on ubuntu and everything was ok< but i need to run it on centos machine

Varanishe avatar Mar 27 '19 10:03 Varanishe

I'm not really familiar with centos. Can you confirm that you are not running tsung in a jail/container etc?

Another think you could try is to tell tsung to use a different directory for logging via the -l option.

Also another question: What version of tsung are you using?

tisba avatar Mar 27 '19 10:03 tisba

Yes i can confirm that , 1.7.0

Varanishe avatar Mar 27 '19 10:03 Varanishe

How did you install tsung? Reading the code it looks like tsung fails to read some stylesheets it needs to render reports (which will be copied to the log directory).

tisba avatar Mar 27 '19 10:03 tisba

yum -y install erlang perl perl-RRD-Simple.noarch perl-Log-Log4perl-RRDs.noarch gnuplot perl-Template-Toolkit wget http://tsung.erlang-projects.org/dist/tsung-1.7.0.tar.gz tar xfz tsung-1.7.0.tar.gz cd tsung-1.7.0 ./configure && make && make install

Varanishe avatar Mar 27 '19 10:03 Varanishe

i tryed to execute with another log directory but it is the same error image

Varanishe avatar Mar 27 '19 10:03 Varanishe

I'm a bit confused what's going on. The error originates here https://github.com/processone/tsung/blob/v1.7.0/src/tsung_controller/ts_controller_sup.erl#L109.

The template path is build here https://github.com/processone/tsung/blob/v1.7.0/src/tsung_controller/ts_controller_sup.erl#L144-L149. But I don't understand why in your centos environment make && make install does not copy the files to the same path. Can you take a look at the installation path of tsung if there is a directory share/tsung/templates? More specifically, if there is a style directory under share/tsung/templates? This is where the error is triggered...

tisba avatar Mar 27 '19 13:03 tisba

Hi I've faced with the same issue on Cent OS 7 image

But it seems that style directory exist and accessible from the path "../../../../share/tsung/templates"

Any ideas how solve issue?

Splincdd avatar Sep 25 '19 11:09 Splincdd