Get http://localhost:9200/: EOF #46
Comments
I believe this might be related to #39, which is a dumb bug that has been around for too long. If you try to scan again a second time does it work? |
Also can you tell me what to following displays:
|
actually it sounds more like #43 can you try this:
|
Thank you for your reply.
NAKAnoMac:Documents naka$ docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2c430746f9ed blacktop/elastic-stack:malice "/sbin/tini -- /us..." 4 minutes ago Up 4 minutes 443/tcp, 0.0.0.0:80->80/tcp, 5601/tcp, 0.0.0.0:9200->9200/tcp, 9300/tcp malice-elk
Cheers, |
can you please tell me the output of:
|
2017-04-09 01:29:33,939 CRIT Supervisor running as root (no user in config file) Regards, |
Now we are getting somewhere:
Also how much RAM have you allocated to Docker for Mac? |
Error response from daemon: Container a14e6cbe392eff73685bd7107c0c9bbf741441fe3e325d4dcd7c1a84dce214c0 is not running RAM was initially 2GB, but I changed to 6GB. |
I'm confused how it could be stopped if you were just getting logs from it? Can you
|
$ docker rm -f malice-elk I can't get any messages as above CLI. |
docker ps -a |
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
72fec55085f3 blacktop/elastic-stack:malice "/sbin/tini -- /us..." 4 minutes ago Up 4 minutes 443/tcp, 0.0.0.0:80->80/tcp, 5601/tcp, 0.0.0.0:9200->9200/tcp, 9300/tcp malice-elk |
So that shows the the container is indeed running now. is |
$ docker logs malice-elk |
can you try again now that the container is running: |
$ docker exec malice-elk head -n30 /var/log/elasticsearch.stdout.log
[2017-04-09T23:50:12,630][INFO ][o.e.n.Node ] [] initializing ...
[2017-04-09T23:50:13,029][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.1.2.jar:5.1.2]
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:259) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.node.Node.<init>(Node.java:249) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.node.Node.<init>(Node.java:229) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap$6.<init>(Bootstrap.java:214) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-5.1.2.jar:5.1.2]
... 6 more
Caused by: java.io.IOException: failed to obtain lock on /usr/share/elasticsearch/data/nodes/0
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:238) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.node.Node.<init>(Node.java:249) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.node.Node.<init>(Node.java:229) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap$6.<init>(Bootstrap.java:214) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-5.1.2.jar:5.1.2]
... 6 more
Caused by: java.io.IOException: Mount point not found
at sun.nio.fs.LinuxFileStore.findMountEntry(LinuxFileStore.java:91) ~[?:?] |
sweet mother of god! 😱so I sometimes see those errors on my laptop, but not my desktop. I think it might be a bug in Docker for Mac? |
I will look into this more and see if I can understand why it can't obtain the lock. I apologize for the inconvenience and thank you for helping me debug this. |
Thank you for finding the problem with me. :) When this problem will be fixed, I'd like to broadcast this wonderful Malice to my friends and co-workers through SNS (FB, Twitter). |
I have made a lot of tweaks to the way elasticsearch works with malice now can you reinstall and retry? $ rm -rf ~/.malice
$ brew reinstall https://raw.githubusercontent.com/maliceio/malice/master/contrib/homebrew/Formula/malice.rb |
you might also have to do a |
and finally to show the UI you would run |
Thank you very much, but I'm afraid the same error happened. Elasticsearch is down. $ malice scan eicar.com $ malice scan eicar.com $ docker ps -ls $ curl http://localhost:9200 KInd regards, |
so I am not sure you removed the please make sure to the reason for this is that is where the old config files are stored and malice doesn't overwrite those on a reinstall. |
also maybe you have to |
Yes, I removed .malice directory, using "rm -rf ~/.malice" command. Then, what I did was: So, next, I'll execute:
After that, I'll let you know results. Many thanks, |
After that, I run following step3 command:
goroutine 1 [running]: Any comments or suggestion to mentions, what I can help. Many thanks, |
that is so strange you are still using the old config file? which should be in the |
when you uninstall malice are you running:
|
also you might want to clear out the stale docker containers what does it display when you run
|
I'm afraid I couldn't uninstall malice.rb as following: curl: (22) The requested URL returned error: 404 Not Found |
I apologize I corrected it above can you try those commands also have to cleared out stale docker containers? What did |
it might be easier to talk about this in the gitter chat room? here -> https://gitter.im/maliceio/malice |
$ docker ps -a |
oh wait, you probably need to clear out the malice volumes too
|
I did 2 commands: $ brew install docker-clean $ docker-clean stop |
okay now you have a clean docker instance now can you once again (just to be sure) reinstall malice
|
I found 1 error though: $ brew uninstall malice |
sorry typo: |
then run |
Thank you so much. I saw UI without any errors. :) |
You fixed the problem. |
haha I am glad we finally got the bottom of this 👍 I hope you enjoy malice |
$ malice -D elk |
I'll broadcast your fantastic tool!!!! |
😁 |
Output of
go version
:Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, Docker For Mac, Docker Toolbox, docker-machine, etc.):
Docker for Mac (both Stable and Edge)
Steps to reproduce the issue:
Describe the results you received:
NAKAnoMac:Documents naka$ malice scan eicar.com
ERRO[0000] ELK is NOT running, starting now...
ERRO[0000] Network malice does not exist, creating now... env=development exisits=false network=malice
INFO[0000] Created Network: malice env=development name=malice
INFO[0000] Created Volume: malice env=development
malice: Pulling from blacktop/elastic-stack
6daefd62341a: Pull complete
1a4b6fdf1cbc: Pull complete
f7f8f9c33278: Pull complete
fafb758ceb1e: Pull complete
fa9c50d99ebd: Pull complete
131e2f46387f: Pull complete
a93ae444a66e: Pull complete
60c40cde4484: Pull complete
951cf1a26798: Pull complete
96500fc9281c: Pull complete
ebbab98cd3d6: Pull complete
8a0a3f1821e1: Pull complete
e0b9a6e91066: Pull complete
ef6d67c6936a: Pull complete
13babcce34b4: Pull complete
ab70c63bac5d: Pull complete
43c221c5bda4: Pull complete
4e71693b9b02: Pull complete
9ea4b19c8600: Pull complete
Digest: sha256:9342541bdead2c9e12988032117395d133e8e20b72c1a1a1583ef9dd3d618fef
Status: Downloaded newer image for blacktop/elastic-stack:malice
NAKAnoMac:Documents naka$ malice scan eicar.com
2017/04/09 03:32:34 Get http://localhost:9200/: EOF
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
When I access "http://localhost:9200", the following message were shown.
ERR_EMPTY_RESPONSE
Thanks in advance,
Yukinaka
The text was updated successfully, but these errors were encountered: