GithubHelp home page GithubHelp logo

Comments (7)

larshesel avatar larshesel commented on July 24, 2024

The part escript: No such file or directory seems to indicate that you do not have the escript executable in your path. This is normally a part of Erlang, so perhaps Erlang isn't (correctly) installed?

Hope this helps.

from vmq_mzbench.

jayjamba avatar jayjamba commented on July 24, 2024

When I installed vernemq of version 1.9.2, I believe it came with inbuilt erlang in it.
$ pwd
/usr/lib64/vernemq
$ ls -ltr
total 16
drwxr-xr-x 7 root root 4096 Nov 5 17:16 erts-10.2.3
drwxr-xr-x 68 root root 4096 Nov 5 17:16 lib
drwxr-xr-x 3 root root 4096 Nov 5 17:16 releases
drwxr-xr-x 2 root root 4096 Nov 5 17:16 bin

Do I need to separately install erlang for this ?

from vmq_mzbench.

larshesel avatar larshesel commented on July 24, 2024

VerneMQ has it's own Erlang runtime system included, but this version of Erlang is specifically tailored to the needs of VerneMQ and if mzbench needs erlang you have to install that separately.

from vmq_mzbench.

jayjamba avatar jayjamba commented on July 24, 2024

Thanks Iarshesel for your instant support. I got erlang installed, but now I am facing this error :

11:54:56.189 [error] [Undefined] <0.36.0> Loading of /root/.local/share/mzbench_workers/mqtt_worker/ebin/mqtt_worker.beam failed: badfile
11:54:56.189 [error] [Undefined] emulator beam/beam_load.c(1277): Error loading module mqtt_worker:
mandatory chunk of type 'Atom' not found

11:54:56.190 [error] [Undefined] <0.36.0> Loading of /root/.local/share/mzbench_workers/mqtt_worker/ebin/mqtt_worker.beam failed: badfile
11:54:56.190 [error] [Undefined] emulator beam/beam_load.c(1277): Error loading module mqtt_worker:
mandatory chunk of type 'Atom' not found

11:54:56.192 [error] [Undefined] <0.243.0> gen_server <0.243.0> terminated with reason: no try clause matching {{error,{noproc,{gen_server,call,[mzb_metrics,get_metrics]}}}} in mzb_management_tcp_protocol:dispatch/2 line 33
11:54:56.193 [error] [Undefined] <0.243.0> CRASH REPORT Process <0.243.0> with 0 neighbours exited with reason: no try clause matching {{error,{noproc,{gen_server,call,[mzb_metrics,get_metrics]}}}} in mzb_management_tcp_protocol:dispatch/2 line 33 in gen_server:terminate/7 line 812
11:54:56.193 [error] [Undefined] <0.243.0> Ranch listener management_tcp_server terminated with reason: no try clause matching {{error,{noproc,{gen_server,call,[mzb_metrics,get_metrics]}}}} in mzb_management_tcp_protocol:dispatch/2 line 33

Not sure if it has got some problem with scenario that is mentioned in https://vernemq.com/blog/2016/08/26/loadtesting-mqtt-brokers.html, coz its the same scenario that I am trying to execute.

from vmq_mzbench.

larshesel avatar larshesel commented on July 24, 2024

The problem is incompatible erlang versions. Some part of your system was compiled with a version of Erlang which is too new for the runtime which you're trying to run it on.

from vmq_mzbench.

jayjamba avatar jayjamba commented on July 24, 2024

Well, I spent whole day behind this. I got erlang installed of version 10.2.3.
$ erl
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Eshell V10.2.3 (abort with ^G)

And under vernemq I can see below:
$ pwd
/usr/lib64/vernemq

$ ls -ltr
total 16
drwxr-xr-x 7 root root 4096 Nov 5 17:16 erts-10.2.3
drwxr-xr-x 68 root root 4096 Nov 5 17:16 lib
drwxr-xr-x 3 root root 4096 Nov 5 17:16 releases
drwxr-xr-x 2 root root 4096 Nov 5 17:16 bin

Now I am getting this exception :

18:34:49.327 [warning] [Undefined] <0.30.0> lager_error_logger_h dropped 7 messages in the last second that exceeded the limit of 50 messages/sec
18:34:49.327 [error] [Undefined] <0.36.0> Loading of /root/.local/share/mzbench_workers/mqtt_worker/ebin/mqtt_worker.beam failed: badfile
18:34:49.327 [error] [Undefined] emulator beam/beam_load.c(1277): Error loading module mqtt_worker:
mandatory chunk of type 'Atom' not found

18:34:49.329 [error] [Undefined] <0.36.0> Loading of /root/.local/share/mzbench_workers/mqtt_worker/ebin/mqtt_worker.beam failed: badfile
18:34:49.329 [error] [Undefined] emulator beam/beam_load.c(1277): Error loading module mqtt_worker:
mandatory chunk of type 'Atom' not found

18:34:49.330 [error] [Undefined] <0.243.0> gen_server <0.243.0> terminated with reason: no try clause matching {{error,{noproc,{gen_server,call,[mzb_metrics,get_metrics]}}}} in mzb_management_tcp_protocol:dispatch/2 line 33
18:34:49.332 [error] [Undefined] <0.243.0> CRASH REPORT Process <0.243.0> with 0 neighbours exited with reason: no try clause matching {{error,{noproc,{gen_server,call,[mzb_metrics,get_metrics]}}}} in mzb_management_tcp_protocol:dispatch/2 line 33 in gen_server:terminate/7 line 812
18:34:49.332 [error] [Undefined] <0.243.0> Ranch listener management_tcp_server terminated with reason: no try clause matching {{error,{noproc,{gen_server,call,[mzb_metrics,get_metrics]}}}} in mzb_management_tcp_protocol:dispatch/2 line 33

can you please guide what exactly am i missing or doing wrong. Also do we need to make sure that erlang which is installed independently, should be used by vernemq and not the one which comes with it. If yes, then how can we do that ?

from vmq_mzbench.

ioolkos avatar ioolkos commented on July 24, 2024

@jayjamba apologies for the frictions you encounter. MZBench setup is currently not very comfortable, dues to the reason that it doesn't compile with all Erlang/OTP versions. This means that you have to activate an Erlang version that works, before compiling MZBench.
This is all completely independent of the Erlang version you run VerneMQ on.

I'm using the 'kerl' tool to activate, deactivate and manage different Erlang versions on my system. I can't give an introduction to this here.

git clone git://github.com/mzbench/mzbench
cd mzbench
virtualenv -p python2 venv
source venv/bin/activate
pip install -r requirements.txt

. /home/afa/.kerl/erlangs/20.1/activate
./bin/mzbench start_server

After that you will have a started version of MZBench, and you can start the web interface, and you can paste the script you mention into the scenario pane. (note: use

make_install(git = "https://github.com/vernemq/vmq_mzbench.git",
             branch = "master")

at the beginning of the script to use the correct repository.

from vmq_mzbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.