Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hello, I'M Running Trains-Server Launched On Ec2 Using The Ami Provided By Allegroai, However The Web App Doesn'T Seem To Be Working Properly.

Hello, I'm running trains-server launched on EC2 using the AMI provided by allegroai, however the web app doesn't seem to be working properly.
It takes a really long time to load any page (> 1 min). The EC2 instance was created using the recommended specs. Whenever I try to create a project or new credentials, I get errors - Project Created Failed , unable to create credentials Many functions are missing such as the side navigation tab on the left or the profile button on the top right corner
Am I using an older AMI or missing something else?

  
  
Posted 3 years ago
Votes Newest

Answers 16


Here is the network tab when trying to load the projects page

  
  
Posted 3 years ago

I just tried the .16.1 and am seeing the same behavior.

Here is the AMI id: allegroai-trains-server-0.16.1-320-273-c5c210e4-5094-4eb9-a613-a32c0378de31-ami-06f5e9f4dfa499dca.4

  
  
Posted 3 years ago

How did you figure out that there was no communication between the server and the web-app?

  
  
Posted 3 years ago

Yeah, .16.1 seems a better choice 🙂 - if you have any issues there, please make sure to select the Network tab when sharing the developer tools screenshot 🙂

  
  
Posted 3 years ago

Oh, I've opened 8080, 8081 in my security group and NOT 8008.

  
  
Posted 3 years ago

I just always feel it's important to say that since many people tend to neglect security 🙂

  
  
Posted 3 years ago

Got it. Thanks for the help and explanation!

  
  
Posted 3 years ago

It seems like there's absolutely no communication between the WebApp and the Trains API Server (which is by default on port 8080). Might it be that your EC2 instance network configuration does not allow incoming TCP communication on port 8008?

  
  
Posted 3 years ago

Please note we recommend only opening up this port (and any other ports) to you IP, not to the entire world...

  
  
Posted 3 years ago

AMI : allegroai-trains-server-0.15.1-366-248-c5c210e4-5094-4eb9-a613-a32c0378de31-ami-0bc20623da659a8cd.4

Hmm, I'm using 0.15.1 which I guess is an old version. I just created a new one with 0.16.1 and will test it out

  
  
Posted 3 years ago

My pleasure 🙂

  
  
Posted 3 years ago

I understand regarding not opening up the ports for entire world. I'm just testing the setup 🙂

  
  
Posted 3 years ago

Well, the first call sent by the WebApp is auth.fixed_users_mode which is used to determine the login modes supported by the server - this call does not require any credentials, and the log showed it failed (i.e. didn't even return an error response)

  
  
Posted 3 years ago

Here is when I try to load the profile page

  
  
Posted 3 years ago

Hi SourSwallow36 ,
This indeed sounds like some configuration is missing.
Which AMI are you using? Can you share a screenshot of the browser's developer tools Network tab (usually opens using F12 )? Please open a new browser window in Private or Incognito mode when trying this out so we'll have a "clean slate" 🙂

  
  
Posted 3 years ago

That was it! I had not added 8008.

  
  
Posted 3 years ago
610 Views
16 Answers
3 years ago
one year ago
Tags
Similar posts