Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker pod cannot resolve substra-backend.node-1.com #150

Closed
chrisalexandrepena opened this issue Mar 25, 2020 · 2 comments
Closed

Worker pod cannot resolve substra-backend.node-1.com #150

chrisalexandrepena opened this issue Mar 25, 2020 · 2 comments

Comments

@chrisalexandrepena
Copy link

I've tried to run the titanic example on a clean install of substra on a ubuntu AWS server, but get an error when trying to run the python scripts/add_train_algo_random_forest.py command:

Adding algo...
Registering traintuple...
Registering testtuple...
Requests error status 400: {"message":"could not register this testtuple, the traintuple 3ff431efc764dbbb34c46ccf42b27a31fd44e17fc22339e24fa05d0b464f449b has a status failed","pkhash":"887599f8513ae358eaecbee85b834b7eda30f58dc83b711ec268352e5671d7f1"}
Traceback (most recent call last):
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/rest_client.py", line 121, in __request
    r.raise_for_status()
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://substra-backend.node-1.com/testtuple/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "scripts/add_train_algo_random_forest.py", line 87, in <module>
    }, exist_ok=True)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/client.py", line 40, in wrapper
    return f(*args, **kwargs)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/client.py", line 527, in add_testtuple
    res = self._add(assets.TESTTUPLE, data, exist_ok=exist_ok)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/client.py", line 185, in _add
    **requests_kwargs)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/rest_client.py", line 256, in add
    return self._add(name, exist_ok=exist_ok, **request_kwargs)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/rest_client.py", line 232, in _add
    return self.request('post', name, **request_kwargs)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/utils.py", line 170, in wrapper
    return f(*args, **kwargs)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/rest_client.py", line 187, in request
    **request_kwargs,
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/rest_client.py", line 165, in _request
    return self.__request(request_name, url, **request_kwargs)
  File "/home/chrisalexandre/dev/substra/substra/examples/titanic/.venv/lib/python3.6/site-packages/substra/sdk/rest_client.py", line 133, in __request
    raise exceptions.InvalidRequest.from_request_exception(e)
substra.sdk.exceptions.InvalidRequest: 400 Client Error: Bad Request for url: http://substra-backend.node-1.com/testtuple/: could not register this testtuple, the traintuple 3ff431efc764dbbb34c46ccf42b27a31fd44e17fc22339e24fa05d0b464f449b has a status failed

The traintuple fails. Here's what the worker logs show:
image

When logging into the worker pod and running a curl http://substra-backend.node-1.com/algo/bc0701d4d9733779ba92f3ab9bdb4308410bf81e9f30edc90b51bbb703ab57bb/file/ and get the following response:
image

It seems the node-1.com url doesn't point to the substra cluster.

@AurelienGasser
Copy link
Contributor

AurelienGasser commented Apr 20, 2020

@AurelienGasser AurelienGasser changed the title Worker doesn't point to local node-1 Worker pod cannot resolve substra-backend.node-1.com Apr 20, 2020
@AurelienGasser
Copy link
Contributor

Closing as the main underlying issue has been fixed..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants