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

Server dropped connection with message: "ERROR: this is the rdb protocol port (bad magic number) #2749

Closed
mbejda opened this issue Jul 24, 2014 · 4 comments
Milestone

Comments

@mbejda
Copy link

mbejda commented Jul 24, 2014

I'm getting this error. My version of rethinkdb is
rethinkdb 1.13.3-0ubuntu1~trusty (GCC 4.8.2)
And the module rethinkdb is
rethinkdb@1.13.0-2

Fail to create a new connection for the connection pool The error returned was:
Server dropped connection with message: "ERROR: this is the rdb protocol port (bad magic number)
".
ReqlDriverError: Server dropped connection with message: "ERROR: this is the rdb protocol port (bad magic number)
".
    at Socket. (/app/production/node_modules/thinky/node_modules/rethinkdbdash/lib/connection.js:86:32)
    at Socket.emit (events.js:95:17)
    at Socket. (_stream_readable.js:748:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:410:10)
    at emitReadable (_stream_readable.js:406:5)
    at readableAddChunk (_stream_readable.js:168:9)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at TCP.onread (net.js:528:21)
Possibly unhandled ReqlDriverError: The pool does not have any opened connections and failed to open a new one.
    at /app/production/node_modules/thinky/node_modules/rethinkdbdash/lib/pool.js:236:43
    at tryCatch1 (/app/production/node_modules/thinky/node_modules/bluebird/js/main/util.js:43:21)
    at CatchFilter$_doFilter [as doFilter] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/catch_filter.js:80:27)
    at tryCatch1 (/app/production/node_modules/thinky/node_modules/bluebird/js/main/util.js:43:21)
    at Promise$_callHandler [as _callHandler] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/promise.js:627:13)
    at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/promise.js:641:18)
    at Promise$_settlePromiseAt [as _settlePromiseAt] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/promise.js:800:14)
    at Promise$_settlePromises [as _settlePromises] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/promise.js:934:14)
    at Promise$_rejectPromises [as _rejectPromises] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/promise.js:927:10)
    at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/app/production/node_modules/thinky/node_modules/bluebird/js/main/async.js:75:12)

Configurations are :

      rethinkdb: {
              host: "127.0.0.1",
              port: 28015,
              db: "thinkyex"
          }
@danielmewes
Copy link
Member

Thank you for the issue report @mbejda

This looks a lot like a server/driver version mismatch. The versions you mention seem fine though. Did you update rethinkdbdash to the latest version as well?

Ping @neumino

@neumino
Copy link
Member

neumino commented Jul 24, 2014

Looking at the log, you are using thinky, which uses rethinkdbdash.
Can you run npm install thinky in /app/production?

@neumino
Copy link
Member

neumino commented Jul 24, 2014

I think this error can happen with rethinkdbdash < 1.13.7 when the versions (driver - server) were not matching.

@mlucy
Copy link
Member

mlucy commented Jul 30, 2014

Hi @mbejda ! This is almost certainly a server/driver mismatch like @danielmewes said. Closing, but please re-open if the server and driver versions match and you still get this error.

@mlucy mlucy closed this as completed Jul 30, 2014
@AtnNn AtnNn added this to the notabug milestone Jul 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants