2

I've added elasticsearch to my Rails app using Tire as outlined in this Railscast.

I've tried to deploy to Heroku with Bonsai add-on. After following this tutorial and also using information w Based on this question, I've tried running this command:

heroku run rake environment tire:import CLASS=Document FORCE=true

(Document is, of course, the name of my model.)

But I keep getting this error message:

Running `rake environment tire:import CLASS=Document FORCE=true` attached to terminal... up, run.4773
[IMPORT] Deleting index 'documents'
[IMPORT] Creating index 'documents' with mapping:
{"document":{"properties":{}}}
[ERROR] There has been an error when creating the index -- Elasticsearch returned:
504 :

What am I doing wrong?

Community
  • 1
  • 1
GMA
  • 5,816
  • 6
  • 51
  • 80

1 Answers1

1

You might not have done anything wrong. Bonsai has been experiencing issues for the past 18 hours. Your 504 error may just be a result of this.

See this tweet: https://twitter.com/bonsaisearch/status/394950014361165824

Blithe
  • 11
  • 1