Closed iMerica closed 9 years ago
@iMerica thanks for creating the issue. I haven't seen this problem. Do you mind running the elasticsearch-embedded
test suite? It should mirror what you're doing fairly closely.
$ cd ./1.4/test
$ make test-elasticsearch-embedded
That will bring up the container for testing. You then need to docker exec to get inside of it.
$ docker exec -it elasticsearchembedded_logstash_1 /bin/bash
Then fire up the bats test suite:
$ ./test.bats
✓ Logstash is running
✓ Logstash.config contains '{ elasticsearch { embedded => true }'
✓ Elasticsearch.yml contains 'script.disable_dynamic: true'
✓ Kibana's elasticsearch server is 'http://+window.location.hostname+:9200'
✓ Elasticsearch is listening on port '9200'
✓ Elasticsearch is listening on port '9300'
✓ Kibana is listening on port '9292'
✓ Elasticsearch is reachable at '/_status'
✓ Kibana dashboard reachable at '/index.html'
9 tests, 0 failures
Please let me know if you don't have time to debug. I should be able to take a look at it tomorrow.
Okay, I'm doing this now. Interestingly, this issue appears to only surface in Docker-Compose, not when when starting the container using docker run
.
A couple of issues with testing:
make test-elasticsearch-embedded
doesn't detach after running.elasticsearchembedded_logstash_1
as a name doesn't exist as a result of running the above make command. I had to ssh into the container by it's ID../test.bats
is not there. Here's what I see in ls
: bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
@iMerica are you testing against the master
branch?
make test-elasticsearch-embedded doesn't detach after running.
You're correct about the container not detaching. I should fix that. :)
elasticsearchembedded_logstash_1 as a name doesn't exist as a result of running the above make command. I had to ssh into the container by it's ID.
I definitely see the elasticsearchembedded_logstash_1
name though:
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ac7cedc54a97 elasticsearchembedded_logstash:latest "/app/bin/boot /bin/ 6 minutes ago Up 6 minutes 0.0.0.0:9292->9292/tcp, 0.0.0.0:9300->9300/tcp, 0.0.0.0:9201->9200/tcp elasticsearchembedded_logstash_1
After ssh'ing into the container, ./test.bats is not there. Here's what I see in ls: bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
I also see test.bats
when I exec into the container:
$ docker exec -it elasticsearchembedded_logstash_1 /bin/bash
root@ac7cedc54a97:/app# ls -al
total 44
drwxr-xr-x 3 root root 4096 Jun 8 02:36 .
drwxr-xr-x 60 root root 4096 Jun 8 02:36 ..
-rw-r--r-- 1 root root 797 May 14 14:14 Dockerfile
drwxr-xr-x 2 root root 4096 May 14 14:32 bin
-rwxr-xr-x 1 root root 1452 May 14 14:14 elasticsearch.sh
-rw-r--r-- 1 root root 33 Jun 8 02:36 elasticsearch.yml
-rwxr-xr-x 1 root root 1150 May 14 14:14 kibana.sh
-rw-r--r-- 1 root root 1025 May 14 14:14 logstash-forwarder.sh
-rwxr-xr-x 1 root root 4365 May 14 14:32 logstash.sh
-rw-r--r-- 1 root root 0 May 14 14:20 redis.sh
-rwxr-xr-x 1 root root 1225 May 14 14:14 test.bats
And my environment:
$ docker --version && docker-compose --version
Docker version 1.6.2, build 7c8fca2
docker-compose 1.2.0
I would say the first step is to figure out why we aren't able to create similar test environments.
Closing due to inactivity. @iMerica please reopen if I can do anything to help.
Hi, I'm trying to run the entire ELK stack as per the directions and I'm consistently seeing two crashes. One relating to "Faraday" not connecting and another relating to "ThreadError: current thread not owner".
Here's my docker-compose.yml:
and here is the output I'm seeing when running
docker-compose up
:Environment:
Thanks,
Michael