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

Version of mongoose in Strider does not work with MongoDB 3.x #752

Closed
dionridley opened this issue Mar 27, 2015 · 7 comments
Closed

Version of mongoose in Strider does not work with MongoDB 3.x #752

dionridley opened this issue Mar 27, 2015 · 7 comments

Comments

@dionridley
Copy link

When trying to addUser or start server getting the following error

==================
17647 forked

##############################################################
#
#   !!! MONGOOSE WARNING !!!
#
#   This is an UNSTABLE release of Mongoose.
#   Unstable releases are available for preview/testing only.
#   DO NOT run this in production.
#
##############################################################

2015-03-27T16:54:43.099Z - info: stubbing smtp..
2015-03-27T16:54:43.714Z - info: Using MongoDB URL: mongodb://localhost/strider-foss
2015-03-27T16:54:43.791Z - warn: No SMTP creds - forgot password flow will not work
/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:246
        throw message;      
              ^
TypeError: Cannot read property 'length' of undefined
    at processResults (/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1581:31)
    at /usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1619:20
    at /usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1157:7
    at /usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1890:9
    at Server.Base._callHandler (/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:448:41)
    at /usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:481:18
    at MongoReply.parseBody (/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
    at null.<anonymous> (/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:439:20)
    at emitOne (events.js:77:13)
    at emit (events.js:166:7)
    at null.<anonymous> (/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:201:13)
    at emitTwo (events.js:87:13)
    at emit (events.js:169:7)
    at Socket.<anonymous> (/usr/local/lib/node_modules/strider/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:439:22)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:166:7)
17647 died 1 null

======================

I manually updated the package.json for strider to use the 4.x version of Mongoose and it appears to be working correctly. I'm not sure the implications for older versions of MongoDB but this resolved my issue.

@knownasilya
Copy link
Member

@dionridley I just tried it with mongoose 4.0.0 and get that error. What version did you have previously?

@knownasilya
Copy link
Member

@dionridley 3.8.x works fine. I'm hardcoding that now.

@knownasilya
Copy link
Member

@dionridley released 1.6.5 with all of the latest fixes, including this, io.js support, some others, see the release notes.

@niallo
Copy link
Member

niallo commented Mar 27, 2015

Awesome work Ilya!

On Fri, Mar 27, 2015 at 11:33 AM, Ilya Radchenko notifications@github.com
wrote:

@dionridley https://github.com/dionridley released 1.6.5 with all of
the latest fixes, including this, io.js support, some others, see the
release notes.


Reply to this email directly or view it on GitHub
#752 (comment).

Niall O'Higgins
W: http://niallohiggins.com
E: n@niallo.me
T: @niallohiggins

@dionridley
Copy link
Author

Thanks. Appreciate you responding and addressing issues quickly!

@cusspvz
Copy link

cusspvz commented Nov 3, 2015

seeing this on quay.io/keyvanfatehi/strider:1.6.0-pre.2

@knownasilya
Copy link
Member

This has been fixed since, and that version of the image is old.

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

4 participants