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 Trying To Run The Docker-Compose Version Of The Trains-Server, But With The Command

Hello, I'm trying to run the docker-compose version of the trains-server, but with the command sudo docker-compose -f /opt/trains/docker-compose.yml up --build I'm running in the issue (I'm on Ubuntu):
trains-apiserver | File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send trains-apiserver | raise ConnectionError(e, request=request) trains-apiserver | requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9200): Max retries exceeded with url: /_template/events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2cb23494e0>: Failed to establish a new connection: [Errno 111] Connection refused',))This is my first time doing it and I followed the instructions here: https://allegro.ai/docs/deploying_trains/trains_server_linux_mac/

However, it seems my trains-apiserver has connection issues? Any idea how I could trouble shoot this further?

EDIT: solved

  
  
Posted 3 years ago
Votes Newest

Answers 7


Hi DefeatedCrab47 , can you share the reason for trying to use --build ? I'm not sure this is something that was previously tested...

  
  
Posted 3 years ago

The only change I made in the .yml file was:
` ports:

  • "8080:80" to ports:
  • "8082:80" `
    I already had something running on 8080, but since it's the trains-apiserver and not the webserver, this shouldn't be an issue.
  
  
Posted 3 years ago

First I tried without build, but same problem. --build just means that it will re-download all layers instead of using the ones already cached.

  
  
Posted 3 years ago

Exactly, so that remapping of port 8080 should not be the reason for this issue

  
  
Posted 3 years ago

Port 8080 is used for the trains-webserver , not the trains-apiserver

  
  
Posted 3 years ago

Remapping 8080 will probably mean the web-app won't be able to locate the apiserver on port 8008 since currently it uses substitution to do that, but as you said, this doesn't seem to be related to the error you've sent. The seems to be related to the fact the apiserver can't communicate with the Elastic instance

  
  
Posted 3 years ago

Ah my bad, it seems I had to run
docker-compose -f /opt/trains/docker-compose.yml pullonce. I quickly tried trains like half a year ago, so maybe it was using the old images? However, I thought --build would take care of that.

Now it's working 🙂

  
  
Posted 3 years ago
580 Views
7 Answers
3 years ago
one year ago
Tags