trains_agent: ERROR: Connection Error: it seems *api_server* is misconfigured. Is this the TRAINS API server https://<<trains-server_ip>> ?
Yeah no idea why it said https
there, the trains.conf has http
for everything for sure.
And oops yeah the port it said there was :8010
which seems strange to me as well
that might be it.
Is the web UI working properly ?
What ports are you using?
the only port configurations that will work are 8080 / 8008 / 8081
Yeah the web UI is working fine on 8080, and we've been able to run things locally on our laptops fine; only encountering this issue on when trying to set up on our remote machines
No, I meant with setting up trains agents -- stuck on trains-init
(btw thanks so much for all your help debugging this, really appreciate it 🙂 )
curl seems okay, but this is odd https://<IP>:8010
it should be http://<IP>:8008
Could you change and test?
(meaning change the trains.conf and run trains-agent list
)
We have the server running on a GCP instance and haven't changed anything there for a long time
this issue on when trying to set up on our remote machines
You mean setting up the trains-server on remote machine?
But the same configuration does not work on the machine with the trains-agent?
Could you manually configure the ~/trains.conf ?
(Just copy paste the section from the UI)
then try to run:trains-agent list
I wasn't the one who configured the server, so I don't know much about that process, but I can ask for details if we need
corporate firewall... let's start with http 🙂
hmm yeah seems very strange to me too.
So does the fact that trains-agent list
givestrains_agent: ERROR: Connection Error: it seems *api_server* is misconfigured. Is this the TRAINS API server https://<IP>:8010 ?
or that curl http://<IP>:8008
gives nothing
give us any useful info? Or are those relatively normal?
yeah that's in the ~/trains.conf
both locally (which works) and on the remote machine I'm trying to set up (which doesn't work)
I'm guessing some network issue, though I can't figure why it cannot connect and curl seems to work
Yeah that's what I would expect!
Neither https nor 8010 appear anywhere in ~/trains.conf, but yeah trains-agent list givestrains_agent: ERROR: Connection Error: it seems *api_server* is misconfigured. Is this the TRAINS API server https://<IP>:8010 ?
Also of interest:curl http://<IP>:8008/
gives a response when we run it locally, which I think gives further support to the idea that this is firewall related.
We've opened a ticket with our IT dept to see if they can help us, but not super optimistic there lol.
I'll update here if we figure out anything more on this. Thanks again for your help!
Yeah, that makes sense. So could this be an issue with how we've configured our trains server then?
okay, just so I understand, this is what you have on your client that can connect with the server:api { api_server:
web_server:
files_server:
credentials {"access_key": "KEY", "secret_key": "SECRET"} }
okay so the error should have been:
trains_agent: ERROR: Connection Error: it seems api_server is misconfigured. Is this the TRAINS API server http://<IP>:8008 ?
Not https nor 8010 ?!