Coder Social home page Coder Social logo

trains with local server about clearml HOT 4 CLOSED

allegroai avatar allegroai commented on July 29, 2024
trains with local server

from clearml.

Comments (4)

erlichsefi avatar erlichsefi commented on July 29, 2024

a bit more digging around and I see that I do get a 200 response code but https://github.com/allegroai/trains/blob/f663add27d97d256adf1333194f5754fbbee06da/trains/backend_api/session/session.py#L506 throws json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) and so the next line that executes is https://github.com/allegroai/trains/blob/f663add27d97d256adf1333194f5754fbbee06da/trains/backend_api/session/session.py#L518 which surly will fail as 'resp' is an empty dictionary.

note that in that point of time
res.raw.data value is -> b''

from clearml.

JDennisJ avatar JDennisJ commented on July 29, 2024

Hi @erlichsefi, thanks for reaching out.

This is more a trains-server question.
I'll try to reproduce, but I need some extra details - Can you please share the logs (located under your data folder in the "logs" subfolder) and send us the res raw answer?

Another thing that can help us: Can you please check that curl xxx.xxx.xxx.xxx:8008 response is 200 and not 400? If it's 400, please go to the remote server at 8080/profile (xxx.xxx.xxx.xxx:8080/profile), create new credentials and update the trains.conf api section.

from clearml.

JDennisJ avatar JDennisJ commented on July 29, 2024

Hi @erlichsefi, I took another look at the trace, and I suspect the problem is misconfiguration of the TRAINS client.
I think it tries to connect with the Web server instead of the API server.
This will explain the 200 response and the lack of data section in the response.

Take a look at your trains.conf file (Assuming Windows OS from the trace, it will be located in C:\Users<USER_NAME>\trains.conf)

You should have the web server on port 8080:

web_server: "http://your_host_here:8080"

And the api server on port 8008

api_server: "http://your_host_here:8008"

You can check a full configuration example here

from clearml.

erlichsefi avatar erlichsefi commented on July 29, 2024

Hey @JDennisJ, you are totally right.
solved it.
To match eights and zeros in a bad font : )

from clearml.

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.