MongoError: no such cmd: createIndexes

122 views
Skip to first unread message

Maurizio Marini

unread,
Jan 23, 2016, 7:27:32 AM1/23/16
to DemocracyOS/app
Hello
I am trying to get DemocracyOS installed and running for a political party, here in Italy, Possibile party.
I am installing it on a jessie vm. All packages come from jessie debian repository, not more not less.
I am stuck here:

https://github.com/rschmukler/agenda/issues/247

democracyos:server Server started at port 3000. +5ms
  democracyos:db Connected to MongoDB on URI: mongodb://localhost:27017/DemocracyOS-dev +28ms
  democracyos:db Connection to MongoDB is now OPEN on URI: mongodb://localhost:27017/DemocracyOS-dev +7ms

/var/www/clients/client1/web1/web/app/webroot/democracyos/app/node_modules/agenda/node_modules/mongodb/lib/utils.js:97
    process.nextTick(function() { throw err; });
                                  ^
MongoError: no such cmd: createIndexes
    at Function.MongoError.create (/var/www/clients/client1/web1/web/app/webroot/democracyos/app/node_modules/mongodb-core/lib/error.js:31:11)
    at /var/www/clients/client1/web1/web/app/webroot/democracyos/app/node_modules/mongodb-core/lib/topologies/server.js:793:66
    at Callbacks.emit (/var/www/clients/client1/web1/web/app/webroot/democracyos/app/node_modules/mongodb-core/lib/topologies/server.js:94:3)
    at null.messageHandler (/var/www/clients/client1/web1/web/app/webroot/democracyos/app/node_modules/mongodb-core/lib/topologies/server.js:235:23)
    at Socket.<anonymous> (/var/www/clients/client1/web1/web/app/webroot/democracyos/app/node_modules/mongodb-core/lib/connection/connection.js:259:22)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at TCP.onread (net.js:523:20)

Reading below:

@yuniers I just start using agenda 0.7.6 and I got the same issue

node 5.4.0
agenda 0.7.6
mongo 3.2.0



So, I am very worried about mongodb version, Debian Jessie mongodb is 2.4

Can I exclude (for the moment) agenda and try to get DemocracyOS running with a few components, all the components I can install in a Jessie server.

Second step can be install packages by sources, but not now.

Looking forward to hear from you

Hasta siempre



Maurizio Marini

unread,
Jan 23, 2016, 4:42:21 PM1/23/16
to DemocracyOS/app

José Fresco

unread,
Jan 23, 2016, 5:35:00 PM1/23/16
to Maurizio Marini, DemocracyOS/app
Maurizio,
Please try to install mongoDB version 3 or newer.

Cheers,
José.

On Sat, Jan 23, 2016 at 6:42 PM, Maurizio Marini <marini....@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "DemocracyOS/app" group.
To unsubscribe from this group and stop receiving emails from it, send an email to democracyos-a...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maurizio Marini

unread,
Jan 24, 2016, 7:42:34 AM1/24/16
to DemocracyOS/app, marini....@gmail.com
Hello Josè
I have installed MongoDB using this tutorial
 https://docs.mongodb.org/v2.6/tutorial/install-mongodb-on-debian/
there is a tutorial for 3.0 but it is for whhezy only

https://docs.mongodb.org/v3.0/tutorial/install-mongodb-on-debian/
"Currently packages are only available for Debian 7 (Wheezy)."

Do u 'now if there is tutorial/package/anything  for debian8 in the wild?

thnx
-m


José Fresco

unread,
Jan 25, 2016, 9:42:32 AM1/25/16
to Maurizio Marini, DemocracyOS/app
I don't know since the last version of Debian I used was Lenny :)
According to MongoDB docs, the createIndex command is available in MongoDB engine 2.6. Did you installed 2.6.11 and you're still getting the error?

Cheers,
José.

Maurizio Marini

unread,
Jan 25, 2016, 11:10:52 AM1/25/16
to José Fresco, DemocracyOS/app
No, it's running, but as I will be able to get it on jessie, I will
install. On what distro are you working/developing? just curiosity, of
course
--
Maurizio Marini
Via Collemare 14, 61039 San Costanzo (PU)
Tel. +39.0721870286 Fax +39-0721950396
GSM +39-335-8259739

Guido Vilariño

unread,
Jan 25, 2016, 11:12:28 AM1/25/16
to Maurizio Marini, José Fresco, DemocracyOS/app
We work mostly on OS/X; we run on Heroku; I think their node dynos are Debian-based (as the Node Docker images), but I may be wrong.

José Fresco

unread,
Jan 25, 2016, 12:48:12 PM1/25/16
to Guido Vilariño, Maurizio Marini, DemocracyOS/app
I could set up a dev environment on Ubuntu 14.x.
If you don't have trouble with dependencies (like in this case, with MongoDB and Jessie), any Debian-based distro should work.

Maurizio Marini

unread,
Jan 26, 2016, 5:56:32 AM1/26/16
to José Fresco, Guido Vilariño, DemocracyOS/app
many thnx mates
Reply all
Reply to author
Forward
0 new messages