You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(and replace /path/to/optimade-python-tools with my local path for the optimade python tools.)
after wget http://localhost:8081/v1/structures
I get the error:
--2023-04-05 13:11:59-- (try: 5) http://localhost:8081/v1/structures
Connecting to localhost (localhost)|127.0.0.1|:8081... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
Without specifying the volume parameter, it does work.(i.e. when it uses the version of the optimade python tools in the container.)
If I remove --detach I do get the normal start up output from the optimade-python-tools, so the app is loaded correctly.
It also restarts when I make changes to the local code. So it looks like it is indeed running the local code.
I am using the master branch.
The text was updated successfully, but these errors were encountered:
Been trying to diagnose this today, I'm running into two issues:
when running from a local copy of the repo, the run.sh file that gets used is the one in the base of the repo, i.e., the dev server that uses uvicorn. We need to add something like --host 0.0.0.0 to this script so that it can be run successfully inside the container (it should then be visible at least)
when running in a slightly different way, I get an error about lack of permissions on the run.sh file which I assume is the "production" .docker/run.sh.
I tried to follow the instructions as described in https://www.optimade.org/optimade-python-tools/latest/deployment/container/
When I do :
(and replace
/path/to/optimade-python-tools
with my local path for the optimade python tools.)after
wget http://localhost:8081/v1/structures
I get the error:
Without specifying the volume parameter, it does work.(i.e. when it uses the version of the optimade python tools in the container.)
If I remove
--detach
I do get the normal start up output from the optimade-python-tools, so the app is loaded correctly.It also restarts when I make changes to the local code. So it looks like it is indeed running the local code.
I am using the master branch.
The text was updated successfully, but these errors were encountered: