Giter Club home page Giter Club logo

Comments (1)

area363 avatar area363 commented on September 23, 2024

Update to @longfin

This was an issue in the Dockerfile at: https://github.com/planetarium/NineChronicles.Standalone/blob/99a61c61f1a3a9aaf312ee6b87da648d081e6b56/Dockerfile#L34 in which the Docker image is built with a default host of "0.0.0.0". So if a port parameter is not given in the docker run command, the image takes its default host.

Removing ["host", "0.0.0.0" ] will take care of this issue; however, the greater issue is that the docker container is not working consistently when connecting to the TURN relay server and stops working after 15-min max. Specifically, receiving most recent blocks through TURN works initially, but after 5-10 minutes, connections to the TURN servers are disconnected. Here are some symptoms I recorded when comparing the two options (Docker vs. non-Docker).

A. As you can see below, this is the lsof list of 9c-headless when running without Docker (plain dotnet run execution). The port connection to the peers and ice-servers(nat-stun-port) are all "ESTABLISHED" and stable.
Screen Shot 2020-12-07 at 11 09 27 AM

B. When running on the Docker container on the other hand, its connection to peers are stable, but the ice-server connections are often disconnected.
Screen Shot 2020-12-07 at 11 05 03 AM

C. Interestingly, the lsof list inside the container shows connection to the peers but no connection to the ice-server.
Screen Shot 2020-12-07 at 11 17 08 AM

This leads me to believe that:

  1. The loss of connection to the ice-server piling up eventually causes the container to stop working.
  2. For some reason, Docker container can't maintain connection to the TURN server (connect works in the beginning).

I feel that this is a porting issue when running the docker but the issue still occurs even when using the "--net=host" option. I'm tempted to think this might be a UDP issue but it's only a suspicion and need more evidence to support this thought.

from ninechronicles.headless.

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.