Giter Site home page Giter Site logo

Comments (7)

talex5 avatar talex5 commented on June 30, 2024

Did you already run make in that directory? Maybe you already have a _build directory owned by a different user? If not, try changing the chown command in the Dockerfile to chown -R and see if that helps...

from datakit.

talex5 avatar talex5 commented on June 30, 2024

Actually, I think this example is just broken. Could you try the fix in #619?

from datakit.

Thegaram avatar Thegaram commented on June 30, 2024

Yep, it works now. Thanks for the quick fix @talex5!

from datakit.

Thegaram avatar Thegaram commented on June 30, 2024

The way I'm trying to run the CI example:

  1. Run DataKit server
$ docker run -it --net datakit-net --name datakit -v [path_to_git_repo]:/data -p 5640:5640 datakit/db
  1. Check server by running DataKit client
$ docker run -it --privileged --net datakit-net datakit/client
bash-4.3$ ls -l /db/branch/master/ro/
[git_repos_contents]

From this, and the subsequent server logs, I assume that the server is running and reachable on tcp://0.0.0.0:5640.

  1. Run CI
$ docker run --name my-ci --net datakit-net -p 8443:8443 my-ci --metadata-store tcp:0.0.0.0:5640
2018-03-02 13:12.13 INF [datakit-ci] Generating new private key...
2018-03-02 13:12.13 APP [datakit-ci] >>> Configure the CI by visiting
                                     https://127.0.0.1:8443/auth/intro/SFEq6uYvHCgKJjg1iOrHy4BwIG2heYGc
2018-03-02 13:12.13 INF [datakit-ci] Connecting to DataKit server on tcp:0.0.0.0:5640
2018-03-02 13:12.13 INF [datakit-ci] Starting monitor loop
2018-03-02 13:12.13 WRN [datakit-ci] Failed to connect to DataKit: (Failure
   "Failed to connect to DataKit server at proto=\"tcp\" addr=\"0.0.0.0:5640\": (Failure\
  \n  \"Error connecting socket to 9p endpoint tcp:0.0.0.0:5640: Unix.Unix_error(Unix.ECONNREFUSED, \\\"connect\\\", \\\"\\\")\")") (will retry in 10s)

Could you please point out what I'm doing wrong? (I would create a new issue but I assume this is due to some misconfiguration on my side.)

from datakit.

Thegaram avatar Thegaram commented on June 30, 2024

Okay, it seems like the CI can connect if I use 172.19.0.2:5640 (taken from the output of docker network inspect datakit-net).

from datakit.

talex5 avatar talex5 commented on June 30, 2024

You have to give the actual address of the server. 0.0.0.0 is a special address that means "listen on any interface", but you can't use it as a destination. You should be able to use --metadata-store tcp:datakit:5640.

from datakit.

Thegaram avatar Thegaram commented on June 30, 2024

Yeah, it works with tcp:datakit:5640, thanks!

from datakit.

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.