loopback-connector-elastic-search icon indicating copy to clipboard operation
loopback-connector-elastic-search copied to clipboard

Cannot run the example

Open Overdrivr opened this issue 7 years ago • 2 comments

I cannot manage to run the examples, on windows 10 with a fresh install of Docker. I have setup the NODE_VERSION and ES_VERSION but it fails with > exec user process caused "no such file or directory"

Is there something to configure in Docker first ?

docker-compose up
Starting myesconnector_es_1 ... done
Starting myesconnector_web_1 ... done
Attaching to myesconnector_es_1, myesconnector_web_1
es_1   | [2018-02-09 07:54:08,719][INFO ][node                     ] [Ikthalon] version[1.7.6], pid[1], build[c730b59/2016-11-18T15:21:16Z]
es_1   | [2018-02-09 07:54:08,719][INFO ][node                     ] [Ikthalon] initializing ...
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
es_1   | [2018-02-09 07:54:08,775][INFO ][plugins                  ] [Ikthalon] loaded [], sites []
es_1   | [2018-02-09 07:54:08,803][INFO ][env                      ] [Ikthalon] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/sda1)]], net usable_space [54.3gb], net total_space [58.8gb], types [ext4]
es_1   | [2018-02-09 07:54:11,072][INFO ][node                     ] [Ikthalon] initialized
es_1   | [2018-02-09 07:54:11,075][INFO ][node                     ] [Ikthalon] starting ...
es_1   | [2018-02-09 07:54:11,205][INFO ][transport                ] [Ikthalon] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/172.18.0.2:9300]}
es_1   | [2018-02-09 07:54:11,263][INFO ][discovery                ] [Ikthalon] elasticsearch/utOiv858Ss-gLk2q-s4yWQ
myesconnector_web_1 exited with code 1
es_1   | [2018-02-09 07:54:15,047][INFO ][cluster.service          ] [Ikthalon] new_master [Ikthalon][utOiv858Ss-gLk2q-s4yWQ][a364d85af1c5][inet[/172.18.0.2:9300]], reason: zen-disco-join (elected_as_master)
es_1   | [2018-02-09 07:54:15,119][INFO ][http                     ] [Ikthalon] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/172.18.0.2:9200]}
es_1   | [2018-02-09 07:54:15,119][INFO ][node                     ] [Ikthalon] started
es_1   | [2018-02-09 07:54:15,126][INFO ][gateway                  ] [Ikthalon] recovered [0] indices into cluster_state
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
web_1  | standard_init_linux.go:195: exec user process caused "no such file or directory"
...

Overdrivr avatar Feb 09 '18 08:02 Overdrivr

I will try out the examples myself and get back to you here.

pulkitsinghal avatar Feb 09 '18 16:02 pulkitsinghal

@Overdrivr - i found this https://forums.docker.com/t/standard-init-linux-go-175-exec-user-process-caused-no-such-file/20025/2

I had to run dos2unix on the entrypoint script. Wish the error message was more descriptive.

Try it and let us know if it resolves the problem?

pulkitsinghal avatar Feb 15 '18 20:02 pulkitsinghal