Getting error during installation
-
I get this error too, but haven't been able to look deeply at it yet. I'm running node.js 0.12.7 and mongo 1.3.0.
-
@gvimlan Hi there,
Can you please provide the following information to help us debug?
- Server or client operating system (if applicable)
- NodeBB version and hash
- To get the hash, run
git rev-parse HEAD
from the root of your NodeBB folder
- To get the hash, run
-
@julian , I know you hv address it to @gvimlan
I am taking the liberty and sending the info from my server...if following will be of help....
OS: Ubuntu 14.04.3 on digital ocen droplet
NodeBB v0.8.2
hash : 8e80eca449db260f22e4e980d61d2d83cd5ca807Sending full screen output, as I dont know which piece is more important
ngsankar@TestM:~/nodebb$ node app --setup
23/10 11:50 [15114] - info: NodeBB v0.8.2 Copyright (C) 2013-2014 NodeBB Inc.
23/10 11:50 [15114] - info: This program comes with ABSOLUTELY NO WARRANTY.
23/10 11:50 [15114] - info: This is free software, and you are welcome to redistribute it under certain conditions.
23/10 11:50 [15114] - info:
23/10 11:50 [15114] - info: NodeBB Setup Triggered via Command LineWelcome to NodeBB!
This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
Press enter to accept the default setting (shown in brackets).
URL used to access this NodeBB (http://...:4567)
Please enter a NodeBB secret (1155808b-ba78-49eb-9570-af7a9527057a)
Which database to use (mongo)23/10 11:50 [15114] - info: Now configuring mongo database:
Host IP or address of your MongoDB instance (127.0.0.1)
Host port of your MongoDB instance (27017)
MongoDB username (nodebb)
Password of your MongoDB database
Which database to use (nodebb)
Configuration Saved OK[email protected] install /home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
(node-gyp rebuild) || (exit 0)make: Entering directory
/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build' CXX(target) Release/obj.target/kerberos/lib/kerberos.o In file included from ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory #include <gssapi/gssapi.h> ^ compilation terminated. make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory
/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/ngsankar/nodebb/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.13.0-57-generic
gyp ERR! command "node" "/home/ngsankar/nodebb/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
[email protected] node_modules/connect-mongo
├── [email protected]
├── [email protected] ([email protected])
└── [email protected][email protected] node_modules/mongodb
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected]
└── [email protected] ([email protected], [email protected])
23/10 11:50 [15114] - info: [database] Checking database indices.
Populating database with default configs, if not already set...
Previous theme detected, skipping enabling default theme
Categories OK. Found 4 categories.
Administrator found, skipping Admin setup
Enabling default plugins
23/10 11:50 [15114] - info: [install/defaultPlugins] customDefaults undefined
23/10 11:50 [15114] - info: [install/enableDefaultPlugins] activating default plugins 0=nodebb-plugin-composer-default, 1=nodebb-plugin-markdown, 2=nodebb-plugin-mentions, 3=nodebb-widget-essentials, 4=nodebb-rewards-essentials, 5=nodebb-plugin-soundpack-default, 6=nodebb-plugin-emoji-extended
23/10 11:50 [15114] - info: Beginning database schema update
23/10 11:50 [15114] - info: [2015/02/08] Clearing reset tokens skipped
23/10 11:50 [15114] - info: [2015/02/17] renaming home.tpl to categories.tpl skipped
23/10 11:50 [15114] - info: [2015/2/23] Activating NodeBB Essential Rewards - skipped
23/10 11:50 [15114] - info: [2015/02/24] Upgrading plugins:active to sorted set skipped
23/10 11:50 [15114] - info: [2015/02/24] Upgrading privilege groups to system groups skipped
23/10 11:50 [15114] - info: [2015/02/25] Upgrading menu items to dynamic navigation system skipped
23/10 11:50 [15114] - info: [2015/05/07] Upgrading uid mappings to sorted set skipped
23/10 11:50 [15114] - info: [2015/05/08] Fixing emails skipped
23/10 11:50 [15114] - info: [2015/05/11] Updating widgets to tjs 0.2x skipped
23/10 11:50 [15114] - info: [2015/05/20] Adding username:sorted and email:sorted skipped
23/10 11:50 [15114] - info: [2015/06/02] Creating group sorted sets skipped
23/10 11:50 [15114] - info: [2015/07/03] Enabling default composer plugin skipped
23/10 11:50 [15114] - info: [2015/08/18] Creating children category sorted sets skipped
23/10 11:50 [15114] - info: [upgrade] Schema already up to date!==============================================================================================================================================================
NodeBB Setup Completed. Run './nodebb start' to manually start your NodeBB server.
ngsankar@TestM:~/nodebb$ ^C
ngsankar@TestM:~/nodebb$ ./nodebb startStarting NodeBB
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
"./nodebb restart" to restart NodeBBngsankar@TestM:~/nodebb$ node app
23/10 11:52 [15179] - info: NodeBB v0.8.2 Copyright (C) 2013-2014 NodeBB Inc.
23/10 11:52 [15179] - info: This program comes with ABSOLUTELY NO WARRANTY.
23/10 11:52 [15179] - info: This is free software, and you are welcome to redistribute it under certain conditions.
23/10 11:52 [15179] - info:
23/10 11:52 [15179] - info: Time: Fri Oct 23 2015 11:52:35 GMT-0400 (EDT)
23/10 11:52 [15179] - info: Initializing NodeBB v0.8.2
23/10 11:52 [15179] - info: [database] Checking database indices.
23/10 11:52 [15179] - error: [meta/dependencies] Could not read: heapdump -
If I would be you I would reinstall Node and all its components:
apt-get remove node*
apt-get purge node*And maybe this as well:
http://stackoverflow.com/questions/5650169/uninstall-node-js-using-linux-command-lineThen check after your repos and maybe remove any additional ones related to NodeJS and run:
apt-get update
apt-get install nodejs nodejs-legacy npmVerfiy the versions by running node -v and node-gyp -v.
-
I haven't had a chance yet.
-
I'm having a similar error while trying to install NodeBB with Mongo.
Here's the full log:
Welcome to NodeBB! This looks like a new installation, so youll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). 8/11 20:06 [10508] - info: Now configuring mongo database: Configuration Saved OK npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongodb-core will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. > [email protected] install /home/mboisvert/Documents/nodemongo/node_modules/mongodb/node_modules/kerberos > (node-gyp rebuild) || (exit 0) make: Entering directory '/home/mboisvert/Documents/nodemongo/node_modules/mongodb/node_modules/kerberos/build' CXX(target) Release/obj.target/kerberos/lib/kerberos.o In file included from ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory compilation terminated. kerberos.target.mk:94: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory '/home/mboisvert/Documents/nodemongo/node_modules/mongodb/node_modules/kerberos/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/mboisvert/Documents/nodemongo/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 4.2.5-300.fc23.x86_64 gyp ERR! command "/usr/local/bin/node" "/home/mboisvert/Documents/nodemongo/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/mboisvert/Documents/nodemongo/node_modules/mongodb/node_modules/kerberos gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/jade requires mkdirp@'0.3.0' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/mkdirp, npm WARN unmet dependency which is version 0.5.1 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt requires async@'~0.1.22' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/async, npm WARN unmet dependency which is version 1.4.2 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt requires colors@'~0.6.2' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/colors, npm WARN unmet dependency which is version 1.1.2 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt requires rimraf@'~2.2.8' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/rimraf, npm WARN unmet dependency which is version 2.4.3 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt-legacy-util requires async@'~0.1.22' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/async, npm WARN unmet dependency which is version 1.4.2 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/argparse requires underscore@'~1.7.0' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/underscore, npm WARN unmet dependency which is version 1.8.3 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt-legacy-log requires colors@'~0.6.2' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/colors, npm WARN unmet dependency which is version 1.1.2 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt-legacy-log-utils requires colors@'~0.6.2' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/colors, npm WARN unmet dependency which is version 1.1.2 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/grunt-contrib-watch requires async@'~0.2.9' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/async, npm WARN unmet dependency which is version 1.4.2 npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/mocha requires mkdirp@'0.3.5' but will load npm WARN unmet dependency /home/mboisvert/Documents/nodemongo/node_modules/mkdirp, npm WARN unmet dependency which is version 0.5.1 [email protected] node_modules/connect-mongo └── [email protected] [email protected] node_modules/mongodb ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) /home/mboisvert/Documents/nodemongo/node_modules/mongodb/lib/mongo_client.js:437 throw err ^ TypeError: _.assign is not a function at new MongoStore (/home/mboisvert/Documents/nodemongo/node_modules/connect-mongo/lib/connect-mongo.js:114:19) at /home/mboisvert/Documents/nodemongo/src/database/mongo.js:111:27 at /home/mboisvert/Documents/nodemongo/node_modules/mongodb/lib/mongo_client.js:434:15 at doNTCallback0 (node.js:428:9) at process._tickCallback (node.js:357:13)
Additional information:
OS: Fedora 23
NodeBB: 0.9.0 cee3918e9b8096e421933678178ddfe4e3b71adf
Node: 5.0.0