Now it works as it should. It is OK if I click on the botton. I don't know what happend last time.
Many thanks, any how.
Hans
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 postcss@5.0.14: wanted: {"node":">=0.12"} (current: {"node":"0.10.37","npm":"1.4.28"})
npm WARN deprecated lodash@0.9.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"})
\
> kerberos@0.0.18 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
connect-flash@0.1.1 node_modules/connect-flash
connect-ensure-login@0.1.1 node_modules/connect-ensure-login
nodemailer-sendmail-transport@1.0.0 node_modules/nodemailer-sendmail-transport
socketio-wildcard@0.3.0 node_modules/socketio-wildcard
nodebb-plugin-soundpack-default@0.1.5 node_modules/nodebb-plugin-soundpack-default
daemon@1.1.0 node_modules/daemon
nodebb-rewards-essentials@0.0.6 node_modules/nodebb-rewards-essentials
toobusy-js@0.4.3 node_modules/toobusy-js
mime@1.3.4 node_modules/mime
colors@1.1.2 node_modules/colors
minimist@1.2.0 node_modules/minimist
cookie-parser@1.4.1 node_modules/cookie-parser
├── cookie-signature@1.0.6
└── cookie@0.2.3
passport-local@1.0.0 node_modules/passport-local
└── passport-strategy@1.0.0
serve-favicon@2.3.0 node_modules/serve-favicon
├── fresh@0.3.0
├── parseurl@1.3.1
├── ms@0.7.1
└── etag@1.7.0
underscore@1.8.3 node_modules/underscore
underscore.deep@0.5.1 node_modules/underscore.deep
sitemap@1.5.0 node_modules/sitemap
└── url-join@0.0.1
semver@5.1.0 node_modules/semver
passport@0.3.2 node_modules/passport
├── pause@0.0.1
└── passport-strategy@1.0.0
nodebb-widget-essentials@2.0.5 node_modules/nodebb-widget-essentials
express-useragent@0.2.4 node_modules/express-useragent
async@1.5.2 node_modules/async
lru-cache@4.0.0 node_modules/lru-cache
├── pseudomap@1.0.2
└── yallist@2.0.0
validator@4.5.1 node_modules/validator
nodebb-plugin-mentions@1.0.14 node_modules/nodebb-plugin-mentions
nodebb-plugin-spam-be-gone@0.4.5 node_modules/nodebb-plugin-spam-be-gone
├── project-honeypot@0.0.0
├── akismet@1.0.0
└── simple-recaptcha@1.0.0
connect-redis@3.0.2 node_modules/connect-redis
└── debug@2.2.0 (ms@0.7.1)
csurf@1.8.3 node_modules/csurf
├── cookie@0.1.3
├── cookie-signature@1.0.6
├── http-errors@1.3.1 (inherits@2.0.1, statuses@1.2.1)
└── csrf@3.0.0 (rndm@1.1.1, base64-url@1.2.1, uid-safe@2.0.0, scmp@1.0.0)
mkdirp@0.5.1 node_modules/mkdirp
└── minimist@0.0.8
xregexp@3.0.0 node_modules/xregexp
nodebb-plugin-composer-default@3.0.1 node_modules/nodebb-plugin-composer-default
string@3.3.1 node_modules/string
bcryptjs@2.3.0 node_modules/bcryptjs
nodebb-theme-lavender@3.0.2 node_modules/nodebb-theme-lavender
express-session@1.13.0 node_modules/express-session
├── utils-merge@1.0.0
├── parseurl@1.3.1
├── cookie@0.2.3
├── cookie-signature@1.0.6
├── on-headers@1.0.1
├── crc@3.4.0
├── uid-safe@2.0.0 (base64-url@1.2.1)
├── depd@1.1.0
└── debug@2.2.0 (ms@0.7.1)
logrotate-stream@0.2.5 node_modules/logrotate-stream
├── byt@0.1.0
├── log-rotate@0.2.7
└── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
rimraf@2.5.0 node_modules/rimraf
└── glob@6.0.4 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.4, minimatch@3.0.0)
morgan@1.6.1 node_modules/morgan
├── on-headers@1.0.1
├── basic-auth@1.0.3
├── depd@1.0.1
├── on-finished@2.3.0 (ee-first@1.1.1)
└── debug@2.2.0 (ms@0.7.1)
winston@2.1.1 node_modules/winston
├── cycle@1.0.3
├── stack-trace@0.0.9
├── eyes@0.1.8
├── isstream@0.1.2
├── async@1.0.0
├── pkginfo@0.3.1
└── colors@1.0.3
rss@1.2.1 node_modules/rss
├── xml@1.0.0
└── mime-types@2.1.9 (mime-db@1.21.0)
html-to-text@1.5.1 node_modules/html-to-text
├── underscore.string@2.4.0
├── htmlparser@1.7.7
└── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
connect-mongo@1.1.0 node_modules/connect-mongo
└── bluebird@3.1.1
compression@1.6.1 node_modules/compression
├── vary@1.1.0
├── bytes@2.2.0
├── on-headers@1.0.1
├── compressible@2.0.7 (mime-db@1.21.0)
├── debug@2.2.0 (ms@0.7.1)
└── accepts@1.3.1 (negotiator@0.6.0, mime-types@2.1.9)
redis@2.4.2 node_modules/redis
├── double-ended-queue@2.1.0-0
└── redis-commands@1.0.2
prompt@0.2.14 node_modules/prompt
├── revalidator@0.1.8
├── pkginfo@0.3.1
├── read@1.0.7 (mute-stream@0.0.5)
├── utile@0.2.1 (deep-equal@1.0.1, ncp@0.4.2, async@0.2.10, i@0.3.4)
└── winston@0.8.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, isstream@0.1.2, colors@0.6.2, async@0.2.10)
nconf@0.8.2 node_modules/nconf
├── ini@1.3.4
└── yargs@3.32.0 (camelcase@2.0.1, window-size@0.1.4, y18n@3.2.0, decamelize@1.1.2, os-locale@1.4.0, cliui@3.1.0, string-width@1.0.1)
socket.io-client@1.4.4 node_modules/socket.io-client
├── to-array@0.1.3
├── indexof@0.0.1
├── component-emitter@1.2.0
├── component-bind@1.0.0
├── backo2@1.0.2
├── object-component@0.0.3
├── has-binary@0.1.7 (isarray@0.0.1)
├── parseuri@0.0.4 (better-assert@1.0.2)
├── socket.io-parser@2.2.5 (isarray@0.0.1, component-emitter@1.1.2, json3@3.3.2, benchmark@1.0.0)
├── engine.io-client@1.6.7 (yeast@0.1.2, component-inherit@0.0.3, has-cors@1.1.0, component-emitter@1.1.2, xmlhttprequest-ssl@1.5.1, parseqs@0.0.2, parsejson@0.0.1, engine.io-parser@1.2.4, ws@1.0.1)
└── debug@2.2.0 (ms@0.7.1)
nodemailer@2.0.0 node_modules/nodemailer
├── nodemailer-smtp-transport@2.0.0 (nodemailer-wellknown@0.1.7, clone@1.0.2, smtp-connection@2.0.0)
├── nodemailer-shared@1.0.2 (nodemailer-fetch@1.0.0)
├── nodemailer-direct-transport@2.0.0 (smtp-connection@2.0.0)
├── nodemailer-smtp-pool@2.0.0 (nodemailer-wellknown@0.1.7, clone@1.0.2, smtp-connection@2.0.0)
├── mailcomposer@3.0.1 (buildmail@3.0.1)
└── libmime@2.0.0 (libbase64@0.1.0, libqp@1.1.0, iconv-lite@0.4.13)
mocha@1.13.0 node_modules/mocha
├── diff@1.0.7
├── growl@1.7.0
├── commander@0.6.1
├── mkdirp@0.3.5
├── debug@2.2.0 (ms@0.7.1)
├── glob@3.2.3 (graceful-fs@2.0.3, inherits@2.0.1, minimatch@0.2.14)
└── jade@0.26.3 (mkdirp@0.3.0)
request@2.67.0 node_modules/request
├── is-typedarray@1.0.0
├── aws-sign2@0.6.0
├── forever-agent@0.6.1
├── caseless@0.11.0
├── stringstream@0.0.5
├── tunnel-agent@0.4.2
├── oauth-sign@0.8.0
├── form-data@1.0.0-rc3
├── isstream@0.1.2
├── json-stringify-safe@5.0.1
├── extend@3.0.0
├── node-uuid@1.4.7
├── combined-stream@1.0.5 (delayed-stream@1.0.0)
├── qs@5.2.0
├── tough-cookie@2.2.1
├── bl@1.0.1 (readable-stream@2.0.5)
├── mime-types@2.1.9 (mime-db@1.21.0)
├── har-validator@2.0.6 (pinkie-promise@2.0.0, commander@2.9.0, chalk@1.1.1, is-my-json-valid@2.12.4)
├── http-signature@1.1.0 (assert-plus@0.1.5, jsprim@1.2.2, sshpk@1.7.3)
└── hawk@3.1.3 (cryptiles@2.0.5, sntp@1.0.9, boom@2.10.1, hoek@2.16.3)
grunt-contrib-watch@0.6.1 node_modules/grunt-contrib-watch
├── async@0.2.10
├── tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, noptify@0.0.3, qs@0.5.6)
├── gaze@0.5.2 (globule@0.1.0)
└── lodash@2.4.2
socket.io-redis@1.0.0 node_modules/socket.io-redis
├── uid2@0.0.3
├── async@0.9.0
├── msgpack-js@0.3.0 (bops@0.0.7)
├── debug@2.2.0 (ms@0.7.1)
├── redis@2.3.0 (double-ended-queue@2.1.0-0)
└── socket.io-adapter@0.4.0 (socket.io-parser@2.2.2)
nodebb-theme-vanilla@5.0.32 node_modules/nodebb-theme-vanilla
templates.js@0.3.1 node_modules/templates.js
connect-multiparty@2.0.0 node_modules/connect-multiparty
├── on-finished@2.3.0 (ee-first@1.1.1)
├── qs@4.0.0
├── multiparty@4.1.2 (fd-slicer@1.0.1)
└── type-is@1.6.10 (media-typer@0.3.0, mime-types@2.1.9)
nodebb-theme-persona@4.0.63 node_modules/nodebb-theme-persona
socket.io@1.4.4 node_modules/socket.io
├── has-binary@0.1.7 (isarray@0.0.1)
├── debug@2.2.0 (ms@0.7.1)
├── socket.io-parser@2.2.6 (isarray@0.0.1, component-emitter@1.1.2, json3@3.3.2, benchmark@1.0.0)
├── engine.io@1.6.7 (base64id@0.1.0, engine.io-parser@1.2.4, ws@1.0.1, accepts@1.1.4)
└── socket.io-adapter@0.4.0 (socket.io-parser@2.2.2)
postcss@5.0.14 node_modules/postcss
├── supports-color@3.1.2 (has-flag@1.0.0)
├── js-base64@2.1.9
└── source-map@0.5.3
body-parser@1.14.2 node_modules/body-parser
├── bytes@2.2.0
├── content-type@1.0.1
├── depd@1.1.0
├── raw-body@2.1.5 (unpipe@1.0.0)
├── on-finished@2.3.0 (ee-first@1.1.1)
├── qs@5.2.0
├── http-errors@1.3.1 (statuses@1.2.1, inherits@2.0.1)
├── iconv-lite@0.4.13
├── debug@2.2.0 (ms@0.7.1)
└── type-is@1.6.10 (media-typer@0.3.0, mime-types@2.1.9)
express@4.13.4 node_modules/express
├── escape-html@1.0.3
├── utils-merge@1.0.0
├── array-flatten@1.1.1
├── cookie-signature@1.0.6
├── fresh@0.3.0
├── merge-descriptors@1.0.1
├── methods@1.1.2
├── parseurl@1.3.1
├── range-parser@1.0.3
├── vary@1.0.1
├── content-type@1.0.1
├── etag@1.7.0
├── path-to-regexp@0.1.7
├── cookie@0.1.5
├── content-disposition@0.5.1
├── serve-static@1.10.2
├── depd@1.1.0
├── on-finished@2.3.0 (ee-first@1.1.1)
├── finalhandler@0.4.1 (unpipe@1.0.0)
├── qs@4.0.0
├── proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5)
├── send@0.13.1 (destroy@1.0.4, statuses@1.2.1, ms@0.7.1, http-errors@1.3.1)
├── debug@2.2.0 (ms@0.7.1)
├── accepts@1.2.13 (negotiator@0.5.3, mime-types@2.1.9)
└── type-is@1.6.10 (media-typer@0.3.0, mime-types@2.1.9)
uglify-js@2.6.1 node_modules/uglify-js
├── uglify-to-browserify@1.0.2
├── async@0.2.10
├── yargs@3.10.0 (window-size@0.1.0, camelcase@1.2.1, decamelize@1.1.2, cliui@2.1.0)
└── source-map@0.5.3
jimp@0.2.21 node_modules/jimp
├── read-chunk@1.0.1
├── file-type@3.5.0
├── bmp-js@0.0.1
├── url-regex@3.1.0 (ip-regex@1.0.3)
├── stream-to-buffer@0.1.0 (stream-to@0.2.2)
├── es6-promise@3.0.2
├── bignumber.js@2.1.4
├── exif-parser@0.1.9
├── tinycolor2@1.3.0
├── pngjs@2.2.0
├── pixelmatch@4.0.1
└── jpeg-js@0.1.1
grunt@0.4.5 node_modules/grunt
├── which@1.0.9
├── dateformat@1.0.2-1.2.3
├── eventemitter2@0.4.14
├── getobject@0.1.0
├── rimraf@2.2.8
├── colors@0.6.2
├── async@0.1.22
├── grunt-legacy-util@0.2.0
├── hooker@0.2.3
├── exit@0.1.2
├── nopt@1.0.10 (abbrev@1.0.7)
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.3)
├── glob@3.1.21 (inherits@1.0.2, graceful-fs@1.2.3)
├── lodash@0.9.2
├── coffee-script@1.3.3
├── underscore.string@2.2.1
├── iconv-lite@0.2.11
├── js-yaml@2.0.5 (argparse@0.1.16, esprima@1.0.4)
├── grunt-legacy-log@0.1.3 (grunt-legacy-log-utils@0.1.1, underscore.string@2.3.3, lodash@2.4.2)
└── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.2)
nodebb-plugin-markdown@4.0.16 node_modules/nodebb-plugin-markdown
└── markdown-it@4.4.0 (uc.micro@1.0.0, linkify-it@1.2.0, mdurl@1.0.1, entities@1.1.1, argparse@1.0.4)
nodebb-plugin-dbsearch@0.3.1 node_modules/nodebb-plugin-dbsearch
└── redisearch@0.0.6 (redis@0.12.1, natural@0.2.1)
less@2.5.3 node_modules/less
├── graceful-fs@3.0.8
├── image-size@0.3.5
├── promise@6.1.0 (asap@1.0.0)
├── errno@0.1.4 (prr@0.0.0)
└── source-map@0.4.4 (amdefine@1.0.0)
cron@1.1.0 node_modules/cron
└── moment-timezone@0.3.1 (moment@2.11.1)
autoprefixer@6.3.1 node_modules/autoprefixer
├── normalize-range@0.1.2
├── num2fraction@1.2.2
├── postcss-value-parser@3.2.3
├── browserslist@1.1.1
└── caniuse-db@1.0.30000391
nodebb-plugin-emoji-extended@0.5.0 node_modules/nodebb-plugin-emoji-extended
└── emoji-parser@0.1.1 (wrench@1.5.8)
mongodb@2.1.4 node_modules/mongodb
├── es6-promise@3.0.2
├── readable-stream@1.0.31 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.2)
├── kerberos@0.0.18 (nan@2.0.9)
└── mongodb-core@1.2.32 (bson@0.4.21)
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 nodejs
However, 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*
Hm, there actually should be no reason NodeBB can't be installed with v0.11, in fact, it is our supported engine at the moment...
Looks like a bug with latest.