Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full text search setup is fucked up #10105

Closed
ghost opened this issue Feb 23, 2019 · 3 comments
Closed

Full text search setup is fucked up #10105

ghost opened this issue Feb 23, 2019 · 3 comments
Labels
troubleshooting Asking for deployment help

Comments

@ghost
Copy link

ghost commented Feb 23, 2019

Hello,

I followed the only guide available to setup Elasticsearch & configure Mastodon to use it but the following fail:

$ RAILS_ENV=production bundle exec rails chewy:deploy
Resetting StatusesIndex
  Imported StatusesIndex::Status in 2s, stats: 
rails aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The bulk request must be terminated by a newline [\n]"}],"type":"illegal_argument_exception","reason":"The bulk request must be terminated by a newline [\n]"},"status":400}

Expected behaviour

There shouldn't be an error there.

Actual behaviour

There is an error here.

Steps to reproduce the problem

Follow the official guide provided here: https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Elasticsearch-guide.md

Specifications

v2.7.2

Thanks in advance

@Gargron
Copy link
Member

Gargron commented Feb 24, 2019

It's a bug in Ruby 2.6.0. Upgrade to Ruby 2.6.1 (rbenv install 2.6.1, etc)

@ghost
Copy link
Author

ghost commented Feb 24, 2019

It works, thanks.

Here is a PR to update the documentation: https://source.joinmastodon.org/mastodon/docs/merge_requests/27

@Gargron Gargron added the troubleshooting Asking for deployment help label May 1, 2019
SnDer pushed a commit to quey-org/docs that referenced this issue Jul 3, 2019
SnDer pushed a commit to quey-org/docs that referenced this issue Jul 3, 2019
Update installation.md to Ruby 2.6.1 to fix mastodon/mastodon#10105

See merge request mastodon/docs!27
@Gargron Gargron closed this as completed Aug 8, 2019
Gargron added a commit to mastodon/documentation that referenced this issue Jan 5, 2020
Update installation.md to Ruby 2.6.1 to fix mastodon/mastodon#10105

See merge request mastodon/docs!27
@adrianomic
Copy link

My ruby version is 2.6.5
And I am having same issue
It runs on travis ci.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting Asking for deployment help
Projects
None yet
Development

No branches or pull requests

2 participants