Giter Site home page Giter Site logo

Client failed to connect about client-rust HOT 6 CLOSED

tikv avatar tikv commented on May 19, 2024
Client failed to connect

from client-rust.

Comments (6)

sunxiaoguang avatar sunxiaoguang commented on May 19, 2024

Can you try curl to http://pd0:2380 see if you can connect to it?

from client-rust.

florianeichin avatar florianeichin commented on May 19, 2024

from inside the tikv container I can ping pd0 when calling curl pd0:2380 I get 404 page not found

from client-rust.

sunxiaoguang avatar sunxiaoguang commented on May 19, 2024

from inside the tikv container I can ping pd0 when calling curl pd0:2380 I get 404 page not found

Hm, just want to make sure, are you running your code inside docker as well? If you are code is running on host environment can you double check you can access http://pd0:2380 from there?

from client-rust.

florianeichin avatar florianeichin commented on May 19, 2024

Aaaah I understand, I thought i could reach the cluster through it's ip. how do I change this behaviour? so that I can access it only through IP to have only DB running in docker, but running the client in host?

from client-rust.

sunxiaoguang avatar sunxiaoguang commented on May 19, 2024

Aaaah I understand, I thought i could reach the cluster through it's ip. how do I change this behaviour? so that I can access it only through IP to have only DB running in docker, but running the client in host?

The docker-compose file was probably not designed for client to access TiKV directly. I personally have never used it. Docker should be able to expose multiple ports or port ranges. In addition you also need to make sure the host pd0 can be resolved to an valid address from your host environment.

from client-rust.

florianeichin avatar florianeichin commented on May 19, 2024

thanks

from client-rust.

Related Issues (20)

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.