GithubHelp home page GithubHelp logo

docker-cerebro's People

Contributors

chainkite avatar davidkarlsen avatar jjungnickel avatar rrombu avatar yannart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-cerebro's Issues

Cerebro resolves ES domain name to cerebro's docker ip

This might be a cerebro issue but its docker related so I'm posting here first.

I have an elasticsearch cluster (with search-guard) with 3 nodes and cerebro running in docker.

I can't connect with cerebro to elasticsearch on the same host as cerebro (e.g. cerebro on elk00 -> es on elk00) but works fine when connecting to another elasticsearch (e.g. cerebro on elk00 -> es on elk01).

The issue seems that cerebro resolves the domain name to its own docker ip instead of the host ip:

[info] play.api.Play - Application started (Prod)
[info] p.c.s.NettyServer - Listening for HTTP on /0.0.0.0:9000
[error] application -

! @77816l344 - Internal server error, for (POST) [/connect] ->

play.api.UnexpectedException: Unexpected exception[ConnectException: Connection refused: elk00.example.com/172.17.0.3:9200]
	at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:289)
	at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:220)
	at play.api.GlobalSettings$class.onError(GlobalSettings.scala:160)
	at play.api.DefaultGlobal$.onError(GlobalSettings.scala:188)
	at play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:100)
Caused by: java.net.ConnectException: Connection refused: elk00.example.com/172.17.0.3:9200
	at org.asynchttpclient.netty.channel.NettyConnectListener.onFailure(NettyConnectListener.java:160)
	at org.asynchttpclient.netty.request.NettyChannelConnector$1.onFailure(NettyChannelConnector.java:103)
	at org.asynchttpclient.netty.SimpleChannelFutureListener.operationComplete(SimpleChannelFutureListener.java:28)
	at org.asynchttpclient.netty.SimpleChannelFutureListener.operationComplete(SimpleChannelFutureListener.java:20)
	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:514)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: elk00.example.com/172.17.0.3:9200
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:257)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:291)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:628)

cerebro docker ip: 172.17.0.3
es docker ip: 172.17.0.2

es version: 6.2.2
searchguard version: 21
cerebro version: latest (0.7.2)

application.conf hosts:

hosts = [
    {
        host = "https://elk00.example.com:9200"
        name = "clustername elk00"
        auth = {
            username = "test"
            password = "test123"
        }
    },
    {
        host = "https://elk01.example.com:9200"
        name = "clustername elk01"
        auth = {
            username = "test"
            password = "test123"
        }
    },
    {
        host = "https://elk02.example.com:9200"
        name = "clustername elk02"
        auth = {
            username = "test"
            password = "test123"
        }
    }
]

OpenJDK 64-Bit - disabled stack guard

Hi,
Thank you for this container, easy to use.

I've getting the following error:

OpenJDK 64-Bit Server VM warning: You have loaded library /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libnio.so which might have disabled stack guard. The VM will tryto fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
OpenJDK 64-Bit Server VM warning: Unable to fix stack guard. Giving up.
OpenJDK 64-Bit Server VM warning: You have loaded library /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libnio.so which might have disabled stack guard. The VM will tryto fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
OpenJDK 64-Bit Server VM warning: Unable to fix stack guard. Giving up.
OpenJDK 64-Bit Server VM warning: You have loaded library /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libnio.so which might have disabled stack guard. The VM will tryto fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
OpenJDK 64-Bit Server VM warning: Unable to fix stack guard. Giving up.
Killed

Didn't find any solution online, did you encounter this issue?

Thank you,
Jorden

Bump to 0.3.0

Will be great if you can build the image with the new versoin

Unable to run latest cerebro on kubernetes

I'm getting the following error message when pulling the latest yannart/cerebro today;

Error: failed to start container "cerebro": Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"rm -rf ./RUNNING_PID && ./bin/cerebro\\\": stat rm -rf ./RUNNING_PID && ./bin/cerebro: no such file or directory\"\n"
Error syncing pod
Back-off restarting failed container

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.