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

Using elasticsearch as an executable gives error #23

Closed
rhnonose opened this issue Apr 24, 2018 · 0 comments
Closed

Using elasticsearch as an executable gives error #23

rhnonose opened this issue Apr 24, 2018 · 0 comments

Comments

@rhnonose
Copy link
Contributor

rhnonose commented Apr 24, 2018

I'm setting the executable in the application supervision tree:

worker(Elasticsearch.Executable, [
        "Elasticsearch",
        "./vendor/elasticsearch/bin/elasticsearch",
        9200
      ], id: :elasticsearch),

and it's giving the following error:

sh: ~/myapp/_build/dev/lib/elasticsearch/priv/bin/wrap: No such file or directory
sh: line 0: exec: ~/myapp/_build/dev/lib/elasticsearch/priv/bin/wrap: cannot execute: No such file or directory
2018-04-24T18:01:18.863760Z [info] Application re exited: Re.Application.start(:normal, []) returned an error: shutdown: failed to start child: :elasticsearch
    ** (EXIT) an exception was raised:
        ** (MatchError) no match of right hand side value: nil
            lib/elasticsearch/executable.ex:33: Elasticsearch.Executable.init/1
            (stdlib) gen_server.erl:365: :gen_server.init_it/2
            (stdlib) gen_server.erl:333: :gen_server.init_it/6
            (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

Inspecting the deps folder, seems like priv/bin/wrap is not "shipped".
Manually adding it copying from github seems to solve the problem.

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

1 participant