Running NodeBB results in: "TypeError: Object #<Object> has no method 'access'"
-
Just trying to set up a second droplet on Digital Ocean running NodeBB (first was successfully setup), but for some reason I'm getting this error this time around. I'm following the recommended tutorial and have not done anything differently from the given steps with the exception of choosing redis instead of the default (mongodb) during the
node app --setup
step. (which is also what I did in my previous NodeBB install that was successful).I've checked the outputs of each step, and everything's good until this step
which outputs the following:npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"}) \ > [email protected] install /home/mark/mynodebb/node_modules/mongodb/node_modules/kerberos > (node-gyp rebuild) || (exit 0) make: Entering directory `/home/mark/mynodebb/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 #include <gssapi/gssapi.h> ^ compilation terminated. make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory `/home/mark/mynodebb/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 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Linux 3.13.0-71-generic gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/mark/mynodebb/node_modules/mongodb/node_modules/kerberos gyp ERR! node -v v0.10.37 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok [email protected] node_modules/connect-flash [email protected] node_modules/connect-ensure-login [email protected] node_modules/nodemailer-sendmail-transport [email protected] node_modules/socketio-wildcard [email protected] node_modules/nodebb-plugin-soundpack-default [email protected] node_modules/daemon [email protected] node_modules/nodebb-rewards-essentials [email protected] node_modules/toobusy-js [email protected] node_modules/mime [email protected] node_modules/colors [email protected] node_modules/minimist [email protected] node_modules/cookie-parser ├── [email protected] └── [email protected] [email protected] node_modules/passport-local └── [email protected] [email protected] node_modules/serve-favicon ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/underscore [email protected] node_modules/underscore.deep [email protected] node_modules/sitemap └── [email protected] [email protected] node_modules/semver [email protected] node_modules/passport ├── [email protected] └── [email protected] [email protected] node_modules/nodebb-widget-essentials [email protected] node_modules/express-useragent [email protected] node_modules/async [email protected] node_modules/lru-cache ├── [email protected] └── [email protected] [email protected] node_modules/validator [email protected] node_modules/nodebb-plugin-mentions [email protected] node_modules/nodebb-plugin-spam-be-gone ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/connect-redis └── [email protected] ([email protected]) [email protected] node_modules/csurf ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/mkdirp └── [email protected] [email protected] node_modules/xregexp [email protected] node_modules/nodebb-plugin-composer-default [email protected] node_modules/string [email protected] node_modules/bcryptjs [email protected] node_modules/nodebb-theme-lavender [email protected] node_modules/express-session ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules/logrotate-stream ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected]) [email protected] node_modules/rimraf └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/morgan ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules/winston ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/rss ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules/html-to-text ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected]) [email protected] node_modules/connect-mongo └── [email protected] [email protected] node_modules/compression ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/redis ├── [email protected] └── [email protected] [email protected] node_modules/prompt ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/nconf ├── [email protected] └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/socket.io-client ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules/nodemailer ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected], [email protected]) [email protected] node_modules/mocha ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules/request ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/grunt-contrib-watch ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] [email protected] node_modules/socket.io-redis ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules/nodebb-theme-vanilla [email protected] node_modules/templates.js [email protected] node_modules/connect-multiparty ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/nodebb-theme-persona [email protected] node_modules/socket.io ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules/postcss ├── [email protected] ([email protected]) ├── [email protected] └── [email protected] [email protected] node_modules/body-parser ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected], [email protected]) ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/express ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/uglify-js ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] [email protected] node_modules/jimp ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/grunt ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/nodebb-plugin-markdown └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/nodebb-plugin-dbsearch └── [email protected] ([email protected], [email protected]) [email protected] node_modules/less ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules/cron └── [email protected] ([email protected]) [email protected] node_modules/autoprefixer ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/nodebb-plugin-emoji-extended └── [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] ([email protected])
I did not address the errors, as I've been following the tutorial strictly, and I didn't have any issue such as this with the first NodeBB install. Then, when I proceed to this step
I get this:
22/1 15:01 [27944] - info: NodeBB v0.9.3 Copyright (C) 2013-2014 NodeBB Inc. 22/1 15:01 [27944] - info: This program comes with ABSOLUTELY NO WARRANTY. 22/1 15:01 [27944] - info: This is free software, and you are welcome to redistribute it under certain conditions. 22/1 15:01 [27944] - info: 22/1 15:01 [27944] - info: Time: Fri Jan 22 2016 15:01:10 GMT-0500 (EST) 22/1 15:01 [27944] - info: Initializing NodeBB v0.9.3 22/1 15:01 [27944] - error: TypeError: Object #<Object> has no method 'access' at /home/mark/mynodebb/src/plugins.js:168:9 at /home/mark/mynodebb/node_modules/async/lib/async.js:407:13 at async.forEachOf.async.eachOf (/home/mark/mynodebb/node_modules/async/lib/async.js:233:13) at _filter (/home/mark/mynodebb/node_modules/async/lib/async.js:406:9) at Object.<anonymous> (/home/mark/mynodebb/node_modules/async/lib/async.js:337:20) at async.waterfall.async.each.utils.walk.pluginTemplates.forEach.tplName (/home/mark/mynodebb/src/plugins.js:167:11) at fn (/home/mark/mynodebb/node_modules/async/lib/async.js:746:34) at /home/mark/mynodebb/node_modules/async/lib/async.js:1213:16 at /home/mark/mynodebb/node_modules/async/lib/async.js:166:37 at /home/mark/mynodebb/node_modules/async/lib/async.js:706:43 TypeError: Object #<Object> has no method 'access' at /home/mark/mynodebb/src/plugins.js:168:9 at /home/mark/mynodebb/node_modules/async/lib/async.js:407:13 at async.forEachOf.async.eachOf (/home/mark/mynodebb/node_modules/async/lib/async.js:233:13) at _filter (/home/mark/mynodebb/node_modules/async/lib/async.js:406:9) at Object.<anonymous> (/home/mark/mynodebb/node_modules/async/lib/async.js:337:20) at async.waterfall.async.each.utils.walk.pluginTemplates.forEach.tplName (/home/mark/mynodebb/src/plugins.js:167:11) at fn (/home/mark/mynodebb/node_modules/async/lib/async.js:746:34) at /home/mark/mynodebb/node_modules/async/lib/async.js:1213:16 at /home/mark/mynodebb/node_modules/async/lib/async.js:166:37 at /home/mark/mynodebb/node_modules/async/lib/async.js:706:43 22/1 15:01 [27944] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 22/1 15:01 [27944] - info: [app] Database connection closed. net.js:1237 throw new Error('Not running'); ^ Error: Not running at Server.close (net.js:1237:11) at shutdown (/home/mark/mynodebb/app.js:307:36) at process.<anonymous> (/home/mark/mynodebb/app.js:176:3) at process.emit (events.js:95:17) at process._fatalException (node.js:301:26) mark@lifesweetened:~/mynodebb$ events.js:72 throw er; // Unhandled 'error' event ^ Error: channel closed at process.target.send (child_process.js:406:26) at minifyScripts (/home/mark/mynodebb/minifier.js:55:11) at /home/mark/mynodebb/minifier.js:23:4 at /home/mark/mynodebb/node_modules/async/lib/async.js:414:13 at /home/mark/mynodebb/node_modules/async/lib/async.js:52:16 at done (/home/mark/mynodebb/node_modules/async/lib/async.js:246:17) at /home/mark/mynodebb/node_modules/async/lib/async.js:44:16 at /home/mark/mynodebb/node_modules/async/lib/async.js:411:17 at /home/mark/mynodebb/src/file.js:72:3 at Object.oncomplete (fs.js:108:15)
I've spent several hours in these forums as well as others trying to find someone who's posted a similar issue (I've also destroyed the droplet and started over fresh 4 times), but am having no luck yet.
-
The NodeJS version you are using is outdated. You should upgrade to the LTS (NodeJS 4.X) or stable (NodeJS 5.X) branch.
Simply run these 2 commands for Ubuntu:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejsHowever, be sure to uninstall & purge your current NodeJS installation by using:
apt-get remove node*
apt-get remove npm* (just to verify)
apt-get purge node*
apt-get purge npm* -