processone / tsung

Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
http://www.process-one.net/en/tsung/
GNU General Public License v2.0
2.55k stars 405 forks source link

Unnable start HTTP test #347

Open Varanishe opened 5 years ago

Varanishe commented 5 years ago

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

tisba commented 5 years ago

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?

Varanishe commented 5 years ago

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

tisba commented 5 years ago

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?

Varanishe commented 5 years ago

Yes i can confirm that , 1.7.0

tisba commented 5 years ago

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).

Varanishe commented 5 years ago

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 commented 5 years ago

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

tisba commented 5 years ago

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...

Splincdd commented 5 years ago

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?