opinsys / walma

Collaborative Whiteboard
http://walma.opinsys.fi/
GNU General Public License v2.0
91 stars 35 forks source link

Publishing crashes node server #40

Open tnewhook opened 12 years ago

tnewhook commented 12 years ago

When I publish the whiteboard, the node server crashes with the following output:

        throw err;
              ^
TypeError: Object #<Stream> has no method 'readBuffer'
    at exports.Drawing.Drawing._readData (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/lib/drawmodel.coffee:322:19)
    at self.collection.collection.find.cursor.nextObject.self.currentChunk.Chunk.n (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js:210:15)
    at nthChunk (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js:559:9)
    at Cursor.nextObject (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/cursor.js:540:5)
    at Cursor.nextObject.commandHandler (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/cursor.js:522:14)
    at g (events.js:193:14)
    at EventEmitter.emit (events.js:123:20)
    at Db._callHandler (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/db.js:1472:25)
    at Server.connect.connectionPool.on.server._serverState (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/connection/server.js:430:30)
    at MongoReply.parseBody (/media/sf_Data/webSites/exoLang/sites/all/whiteboard/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:127:5)
npm ERR! whiteboard@0.0.1 start: node server.js
npm ERR! sh "-c" "node server.js" failed with 1
npm ERR! 
npm ERR! Failed at the whiteboard@0.0.1 start script.
npm ERR! This is most likely a problem with the whiteboard package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls whiteboard
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-32-generic-pae
npm ERR! command "nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /media/sf_Data/webSites/exoLang/sites/all/whiteboard
npm ERR! node -v v0.8.12
npm ERR! npm -v 1.1.63
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /media/sf_Data/webSites/exoLang/sites/all/whiteboard/npm-debug.log
npm ERR! not ok code 0```

I'm not sure what tools walma uses on the server side - it looks like it's a problem with Mongo...

Thanks for your help
tnewhook commented 12 years ago

Also, I did downgrade to mongo 0.9.6-23