Hi PompousHawk82 ,
From your description it sounds like the WebApp running on your browser cannot reach the Trains API Server running on the server you installed in port 8008
.
Can you provide some more information? The screenshot of your browser's developer tools window ( F12
) showing the Network tab would help.
Also, try entering the following in a browser window and see if you get any response: http://<your-server-address>:8008/
btw, i couldn’t run docker-compose w/o sudo, not sure if this is relevant (this problem is fixed).
This should not be a problem, it mostly depends on how your system was set up. Let's try to figure out your original issue and make sure this doesn't affect it
It indeed looks like the WebApp simply can't reach the server. You probably have a firewall set up, blocking access to the server's 8008 port
How did you configure the server exactly?
I have two laptop, one is running ubuntu 20.04 and one is macos, both are running in my local network. I installed the server on ubuntu and ssh from mac to it to bring up the server then build up a tunnel using ssh -L
i’ll finish my breakfast real quick and get in couple minuets
PompousHawk82 look here: https://allegroai-trains.slack.com/archives/CTK20V944/p1605816472498800?thread_ts=1605814409.497600&cid=CTK20V944
You'll have to make sure both 8080
, 8081
and 8008
are tunneled
Thanks, it seems i need to forward all three ports
but the solution in the answer doesn’t help cause when i do reverse with -R the server couldn’t be brought up
Yeah, you probably only need port forwarding ( -L
), not remote forwarding
i’m trying to install it my lab server, but the same problem happen, when i try to create credentials, it say error but this time it give more info:
Error 301 : Invalid user id: id=f46262bde88b4928997351a657901d8b, company=d1bd92a3b039400cbafc60a7a5b1e52b
i tired to run trains-compose without -d to say the log,
trains-agent-services | trains_agent: ERROR: Connection Error: it seems api_server is misconfigured. Is this the TRAINS API server http://apiserver:8008 ?
trains-agent-services | http://192.5.53.86:8081 http://192.5.53.86:8080 http://apiserver:8008
I didn’t assign anything to TRAINS_HOST_IP, not sure if the apiserver:8008 caused the problem
You can actually check the "Workers and Queues" page in the server to see if the Trains Agent Services instance running on the server machine is showing there. If not, I suggest setting TRAINS_HOST_IP to the correct IP so that the agent services instance will be able to communicate with the API server.