logstash-input-rethinkdb
logstash-input-rethinkdb copied to clipboard
fail to start logstash with error Received an unsupported protocol version.
Using latest 2.2.6 and previous 2.2.5
logstash 2.2.0 and logstash 2.3.0 same results, Iḿ not sure what maybe wrong
{:message=>"A plugin had an unrecoverable error. Will restart this plugin.\n (...) <LogStash::Codecs::JSONLines charset=>\"UTF-8\", delimiter=>\"\\n\">, squash=>true>\n Error: Connection closed by server (unexpected token at 'ERROR: Received an unsupported protocol version. This port is for RethinkDB queries. Does your client driver version not match the server?\n').", :level=>:error}
Any ideas what maybe the issue?
@thomasmodeneis Which version of the Ruby driver and which RethinkDB server version are you using? We released a new Ruby driver version 2.3.0.0 today, which is only compatible with RethinkDB 2.3.0. You might need to install a previous Ruby driver version or upgrade RethinkDB.
Iḿ not sure how to check for the Ruby driver version, any suggestions ? Rethinkdb is 2.2.6
Ive installed with this command:
sudo bin/plugin install logstash-input-rethinkdb
How can I make it install a specific version?
I'm actually not 100% sure how plugin install
fetches and installs dependencies.
One thing you could do is change https://github.com/rethinkdb/logstash-input-rethinkdb/blob/master/logstash-input-rethinkdb.gemspec in your local checkout and change the line
s.add_runtime_dependency 'rethinkdb', '>=2.2.0'
to
s.add_runtime_dependency 'rethinkdb', '=2.2.0.1'
You can also run gem list rethinkdb
to see which driver versions are currently installed and install the 2.2.0.1 driver with sudo gem install rethinkdb -v 2.2.0.1
. You might have to uninstall the 2.3.0.0 driver first to have the plugin actually use the older driver (sudo gem uninstall rethinkdb -v 2.3.0.0
).