Git Product home page Git Product logo

Comments (6)

bmartinn avatar bmartinn commented on May 26, 2024

What version of trains-server are you running?
Also, try running netstat -natp to see if your apiserver is actually listening on port8008.

from clearml-server.

osdf avatar osdf commented on May 26, 2024

Version of trains-server:

latest: Pulling from allegroai/trains
Digest: sha256:2f5112c25b4ae95bc4ef49f8f0bfe76f4fc93709a3d64f1defbb0c5e9e427130
Status: Image is up to date for allegroai/trains:latest

So under osx the command looks a bit different. Testing for the webserver, which I can reach:

lsof -nP -i4TCP:8080 | grep LISTEN                                                                                                    ~/tmp
com.docke xxxx xxxx   22u  xxxx      0t0  TCP *:8080 (LISTEN)

The same thing for 8008 comes up empty. So the apiserver is not listening. How should it do that?
If I compare the two docker commands (see README.md) for the webserver and for the apiserver, the one for the webserver has a port command, but the one for the apiserver not:

sudo docker run -d --restart="always" --name="trains-webserver" -p 8080:80 allegroai/trains:latest webserver
sudo docker run -d --restart="always" --name="trains-apiserver" --network="host" -v /opt/trains/logs:/var/log/trains -v /opt/trains/config:/opt/trains/config allegroai/trains:latest apiserver

Should --network="host" take care of it?

from clearml-server.

osdf avatar osdf commented on May 26, 2024

Could the problem be here, that --network is not working on osx? This thread seems to suggest that: https://forums.docker.com/t/should-docker-run-net-host-work/14215/2

from clearml-server.

bmartinn avatar bmartinn commented on May 26, 2024

Looks like you're right... Let me check and get back to you.

from clearml-server.

bmartinn avatar bmartinn commented on May 26, 2024

@osdf we managed to get trains-server up and running on OS X (latest version, but should work on any version with proper docker support)

Instructions:

$ screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
sysctl -w vm.max_map_count=262144
  • create local directories for DB & storage
$ sudo mkdir -p /opt/trains/data/elastic
$ sudo mkdir -p /opt/trains/data/mongo/db
$ sudo mkdir -p /opt/trains/data/mongo/configdb
$ sudo mkdir -p /opt/trains/logs
$ sudo mkdir -p /opt/trains/data/fileserver
$ sudo chown -R $(whoami):staff /opt/trains
  • Open the Docker app, select preferences, go to file-sharing tab and add /mnt/fileserver & /opt/trains

  • Clone the trains-server repository

$ git clone https://github.com/allegroai/trains-server.git
$ cd trains-server
  • run docker-compose with the unified docker
    Note: This is the only command you will have to executed again, after rebooting your machine
$ HOSTIP=$(ipconfig getifaddr en0) docker-compose -f docker-compose-unified.yml up

You should now have a server running on http://localhost:8080 🤞

from clearml-server.

osdf avatar osdf commented on May 26, 2024

Thank you a lot for the help, it works!

from clearml-server.

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.