Open cookersjs opened 7 years ago
Hmm, one module is going weird. Can you try an npm rebuild
Nothing to do with Mongoose, but looks similar to: http://stackoverflow.com/questions/28651028/cannot-find-module-build-release-bson-code-module-not-found-js-bson
I ran 'npm rebuild' while in the heliotrope directory. It worked for about a minute and then output quite a large wall of text. There wasn't any errors and this is what the end of the text looked like before returning me to prompt:
lodash.templatesettings@2.4.1 /home/jcook/heliotrope/node_modules/gulp-serve/node_modules/lodash.templatesettings minimist@0.2.0 /home/jcook/heliotrope/node_modules/gulp-serve/node_modules/minimist through2@0.5.1 /home/jcook/heliotrope/node_modules/gulp-serve/node_modules/through2 readable-stream@1.0.34 /home/jcook/heliotrope/node_modules/gulp-serve/node_modules/through2/node_modules/readable-stream xtend@3.0.0 /home/jcook/heliotrope/node_modules/gulp-serve/node_modules/xtend vinyl@0.2.3 /home/jcook/heliotrope/node_modules/gulp-serve/node_modules/vinyl jcook@olv-jcook:~/heliotrope$
I think my installation of mongoDB may be the underlying issue. I will look into it and update
Update: I successfully solved the error message but the initializing plug-in issue still remains. Error message solution:
1) Install bson locally npm install bson --save-dev
2)In the catch block, change the code according to the stackoverflow link you posted:
bson = require('../build/Release/bson');
changes to bson = require('../browser_build/bson');
in both mongodb and connect-mongo:
The new output when running gulp serve
:
$ gulp serve
[15:57:31] Using gulpfile ~/heliotrope/gulpfile.js
[15:57:31] Starting 'statics'...
[15:57:31] Finished 'statics' after 5.04 ms
[15:57:31] Starting 'jshint'...
[15:57:31] Starting 'clean-css'...
[15:57:31] Starting 'templates'...
[15:57:31] Starting 'common'...
[15:57:31] Starting 'coffee'...
[15:57:31] Starting 'coffee-service'...
[15:57:31] Server started on 3000 port
[15:57:32] Finished 'jshint' after 612 ms
[15:57:32] Finished 'clean-css' after 882 ms
[15:57:32] Starting 'styles'...
[15:57:33] Finished 'styles' after 981 ms
[15:57:33] Starting 'csslint'...
[15:57:33] Finished 'common' after 2.1 s
[15:57:34] Finished 'csslint' after 747 ms
[15:57:34] Starting 'lint'...
[15:57:34] Finished 'lint' after 9.43 μs
[15:57:38] Finished 'templates' after 7.08 s
[15:57:38] Finished 'coffee' after 7.12 s
[15:57:38] Finished 'coffee-service' after 7.11 s
[15:57:38] Starting 'build-all'...
[15:57:39] Finished 'build-all' after 389 ms
[15:57:39] Starting 'default'...
[15:57:39] Finished 'default' after 15 μs
[15:57:39] Starting 'watch'...
[15:57:39] Finished 'watch' after 193 ms
[15:57:39] Starting 'serve'...
[15:57:39] Finished 'serve' after 22 μs
[15:57:39] Live reload server listening on: 35729
[gulp] [nodemon] 1.11.0
[gulp] [nodemon] to restart at any time, enter rs
[gulp] [nodemon] watching: /home/justin/heliotrope/.tmp/src/service/*/
[gulp] [nodemon] starting node .tmp/src/service/main.js
[2016-11-01 15:57:40.137] [INFO] configuration - Reading configuration file: /home/justin/heliotrope/config.json
[2016-11-01 15:57:40.154] [INFO] configuration - Reading configuration file: /home/justin/heliotrope/config.json
[2016-11-01 15:57:40.238] [INFO] main - Express server listening on port 3001
(node) sys is deprecated. Use util instead.
[2016-11-01 15:57:41.338] [INFO] knowledgeService - Initializing knowledge base at: /api/knowledge
[2016-11-01 15:57:41.345] [INFO] trackerService - Initializing tracker at: /api/tracker
[2016-11-01 15:57:41.347] [DEBUG] plugins - Globbing src/service/plugins/*/.js
[2016-11-01 15:57:41.375] [INFO] plugins - Initializing plugins
Sorry, @cookersjs, I'll get to this in a few days -- we're about to launch product in a day (!!) and I need to get that locked down first. I am tracking, just no time to actually investigate yet.
I figured as much, I'll keep looking into it and give updates as I see fit. Good luck with the launch!
This issue was moved to lstein/Heliotrope#3
I have managed to almost complete development installation, and I have an output that looks like this when using gulp serve:
:~/heliotrope$ gulp serve [11:17:42] Using gulpfile ~/heliotrope/gulpfile.js [11:17:42] Starting 'statics'... [11:17:42] Finished 'statics' after 6.26 ms [11:17:42] Starting 'jshint'... [11:17:42] Starting 'clean-css'... [11:17:42] Starting 'templates'... [11:17:42] Starting 'common'... [11:17:42] Starting 'coffee'... [11:17:42] Starting 'coffee-service'... [11:17:42] Server started on 3000 port [11:17:42] Finished 'jshint' after 516 ms [11:17:42] Finished 'clean-css' after 682 ms [11:17:42] Starting 'styles'... [11:17:43] Finished 'styles' after 809 ms [11:17:43] Starting 'csslint'... [11:17:44] Finished 'common' after 1.85 s [11:17:44] Finished 'csslint' after 799 ms [11:17:44] Starting 'lint'... [11:17:44] Finished 'lint' after 10 μs [11:17:48] Finished 'templates' after 6.16 s [11:17:48] Finished 'coffee-service' after 6.27 s [11:17:48] Finished 'coffee' after 6.27 s [11:17:48] Starting 'build-all'... [11:17:48] Finished 'build-all' after 368 ms [11:17:48] Starting 'default'... [11:17:48] Finished 'default' after 13 μs [11:17:48] Starting 'watch'... [11:17:49] Finished 'watch' after 234 ms [11:17:49] Starting 'serve'... [11:17:49] Finished 'serve' after 11 μs [11:17:49] Live reload server listening on: 35729 [gulp] [nodemon] 1.11.0 [gulp] [nodemon] to restart at any time, enter
rs
[gulp] [nodemon] watching: /home/jcook/heliotrope/.tmp/src/service/*/ [gulp] [nodemon] startingnode .tmp/src/service/main.js
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version [2016-10-31 11:17:49.828] [INFO] configuration - Reading configuration file: /home/jcook/heliotrope/config.json [2016-10-31 11:17:49.840] [INFO] configuration - Reading configuration file: /home/jcook/heliotrope/config.json [2016-10-31 11:17:49.939] [INFO] main - Express server listening on port 3001 (node) sys is deprecated. Use util instead. [2016-10-31 11:17:50.980] [INFO] knowledgeService - Initializing knowledge base at: /api/knowledge [2016-10-31 11:17:50.986] [INFO] trackerService - Initializing tracker at: /api/tracker [2016-10-31 11:17:50.988] [DEBUG] plugins - Globbing src/service/plugins/*/.js [2016-10-31 11:17:51.011] [INFO] plugins - Initializing plugins-After Initializing knowledge base, tracker, and plugins it seems to be loading for a long period of time, which I think makes sense given that in the README you say that this part should take at least a few hours.