-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Environment:Heroku, Node 0.10.22, NPM 1.3.15
I have a pretty straight code, with one line, that writes to to a hosted MongoDB, using the mongodb module from NPM.
The application itself is running on Heroku and was working well for almost a year, when I started getting errors on the client side.
I added some console logs, and found 2 errors, coming from my db module:
1.
Failed to load c++ bson extension, using pure JS version
throw err;
at Object.Module._extensions..js (module.js:474:10)
at Object.<anonymous> (/app/node_modules/mongodb/lib/mongodb/collection.js:14:14)
at Function.Module._load (module.js:280:25)
2.
Error: Cannot find module './collection/shared'
at Function.Module._resolveFilename (module.js:338:15)
module.js:340
at require (module.js:380:17)
at Module.require (module.js:364:17)
^
at Module.require (module.js:364:17)
at Module._compile (module.js:456:26)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Process exited with status 8
State changed from up to crashed
I cannot replicate those errors on my Mac - everything seems to work fine (accessing the same DB as the one on Heroku). I tried rolling back to mongodb v1.2 - no help, same errors.
Couldn't find anything on the googles or mongodb's JIRA. I commented out the DB code until I can find a fix, and the rest of my app works well (only, no statistics gathering happens).