Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmerl missing for the worker workers #76

Closed
benoitc opened this issue Aug 20, 2016 · 1 comment
Closed

xmerl missing for the worker workers #76

benoitc opened this issue Aug 20, 2016 · 1 comment

Comments

@benoitc
Copy link

benoitc commented Aug 20, 2016

I'm actually unsure how to deploy a worker using core applications like xmerl. I can start it localy, but when it's launched using mzbench I got the following error:

{error,{xmerl,{"no such file or directory","xmerl.app"}}}}

It seems that mzbench is using a custom erts image:

admin@server-1:~/mzbench$ ls ~/.local/cache/mzbench_api/packages/
mzbench_oncam-040abba-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-a6a3762-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-040abba-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-a9e5032-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-22b0a36-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-b0278ca-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-22b0a36-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-b0278ca-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-23200ed-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-b2df391-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-310796e-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-b2df391-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-324db9d-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-c1ecf76-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-324db9d-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-c1ecf76-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-36fbed3-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-c4cb1f1-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-38bd6c5-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-c970442-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-38bd6c5-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-c970442-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-431937d-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-ca365c9-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-431937d-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-ca365c9-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-4363c70-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-dff4634-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-4363c70-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-eaef650-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-4f70e3b-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-eaef650-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-4f70e3b-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-eb3e41f-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-5976165-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-eb3e41f-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-59938db-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-f198956-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-6129b8b-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-f198956-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-7a0aa71-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-f7ca1a5-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-808e896-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-f7ca1a5-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-808e896-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  mzbench_oncam-ff883bc-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-9f7b005-linux-3.13.0-48-generic_erts-7.3.tgz           mzbench_oncam-ff883bc-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz
mzbench_oncam-9f7b005-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz  node-06d13c618526b11792d3bb2c2e8f5d275943cfaa-linux-3.13.0-48-generic_erts-7.3.tgz
mzbench_oncam-9fd266c-linux-3.13.0-48-generic_erts-7.3.tgz           node-06d13c618526b11792d3bb2c2e8f5d275943cfaa-linux-3.14.48-33.39.amzn1.x86_64_erts-7.3.tgz

but how to set it? How can I have a worker using xmerl?

@parsifal-47
Copy link
Contributor

Hi!
you need to pack xmerl with your worker, as we do for http worker, for example:
https://github.com/machinezone/mzbench/blob/master/workers/http/Makefile

all complied deps are copied to pkgroot and then packed to be extracted on deployment. I suppose that for some reason xmerl was not copied at this step.

About erts version:
these tgz files are used to cache compiled binaries. These binaries are compiled at worker hosts so erts could be different, we keep version name in cached filename.

For example: if you start MZBench API server on erlang 17 and use erlang 18 on your nodes you will see erts version for erlang 18 in ~/.local/cache/mzbench_api/packages/

If some of your nodes have erlang 17 and some erlang 18, you will see both versions of erts.

Please let me know if you have any follow-up questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants