I got everything installed ngix configured but when I go to login I have this error message
LOGIN Unsuccessful
We were unable to log you in, likely due to an expired session. Please Try Again
How can I fix this issue
I got everything installed ngix configured but when I go to login I have this error message
LOGIN Unsuccessful
We were unable to log you in, likely due to an expired session. Please Try Again
How can I fix this issue
Now this has happened on both AWS AND DIGITAL OCEAN so I be followed these steps step by step so either I'm stupid and can't follow directions or something's missing that I'm not able to connect with
I got Mongo finally and now Im having this issues
error: NodeBB could not connect to your Mongo database. Mongo returned the following error
MongoError: Authentication failed.
at /home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:581:63
at authenticateStragglers (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:504:16)
at Connection.messageHandler (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:540:5)
at emitMessageHandler (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:310:10)
at Socket.<anonymous> (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:453:17)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as _originalOnread] (internal/stream_base_commons.js:94:17)
2019-08-12T16:15:24.766Z [4280] - warn: NodeBB Setup Aborted.
MongoError: Authentication failed.
at /home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:581:63
at authenticateStragglers (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:504:16)
at Connection.messageHandler (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:540:5)
at emitMessageHandler (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:310:10)
at Socket.<anonymous> (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:453:17)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as _originalOnread] (internal/stream_base_commons.js:94:17)
@PitaJ just tried and I still get that error
2019-08-11T22:18:48.010+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:344:17
Now when I try to add this to the MONGO Config File do I
SUDO NANO /etc/mongod.conf
@PitaJ @baris do i change this IP to my AWS IP as I add authentication and I get this error message
MongoDB shell version v4.0.12
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2019-08-11T21:06:18.005+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:344:17
@(connect):2:6
exception: connect failed
ahh that worked thanks
Tried this
db.createUser( { user: ‘admin’, pwd: ‘redacted, roles: [ { role: ‘root’, db: ‘admin’ } ] } )
and get the same error
2019-08-11T20:49:18.702+0000 E QUERY [js] SyntaxError: illegal character @(shell):1:23
When I try to create my admin database using this code (l stands for a letter and 1 stands for a number
db.createUser( { user: “admin”, pwd: “lllll111llll”, roles: [ { role: "root", db: “admin” } ] } )
I get this error
2019-08-11T20:39:59.700+0000 E QUERY [js] SyntaxError: illegal character @(shell):1:23
got the update to kinda work Now Im getting these fails
I tried running this as sudo and non sudo (non sudo i get premission denied) AND IT BROKE MY SITE
> [email protected] install /home/ubuntu/nodebb/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
ERR! sharp EACCES: permission denied, open '/home/ubuntu/nodebb/node_modules/sharp/2812-libvips-8.7.4-linux-x64.tar.gz'
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/nodebb/node_modules/sharp/build'
gyp ERR! System Linux 4.15.0-1035-aws
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/nodebb/node_modules/sharp
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2019-08-02T03_58_49_364Z-debug.log
Error installing dependencies!
message: Command failed: npm install --production
stdout: null
stderr: null
2019-08-02T03:58:49.390Z [4567/2791] - error: uncaughtException: Command failed: npm install --production
Error: Command failed: npm install --production
at checkExecSyncError (child_process.js:616:11)
at Object.execSync (child_process.js:653:13)
at Object.installAll (/home/ubuntu/nodebb/src/cli/package-install.js:45:9)
at Object.handler (/home/ubuntu/nodebb/src/cli/upgrade.js:26:19)
at /home/ubuntu/nodebb/src/cli/upgrade.js:59:22
at /home/ubuntu/nodebb/node_modules/async/dist/async.js:3880:24
at replenish (/home/ubuntu/nodebb/node_modules/async/dist/async.js:1011:17)
at /home/ubuntu/nodebb/node_modules/async/dist/async.js:1016:9
at eachOfLimit (/home/ubuntu/nodebb/node_modules/async/dist/async.js:1041:24)
at /home/ubuntu/nodebb/node_modules/async/dist/async.js:1046:16 {"error":{"status":1,"signal":null,"output":[null,null,null],"pid":2798,"stdout":null,"stderr":null},"stack":"Error: Command failed: npm install --production\n at checkExecSyncError (child_process.js:616:11)\n at Object.execSync (child_process.js:653:13)\n at Object.installAll (/home/ubuntu/nodebb/src/cli/package-install.js:45:9)\n at Object.handler (/home/ubuntu/nodebb/src/cli/upgrade.js:26:19)\n at /home/ubuntu/nodebb/src/cli/upgrade.js:59:22\n at /home/ubuntu/nodebb/node_modules/async/dist/async.js:3880:24\n at replenish (/home/ubuntu/nodebb/node_modules/async/dist/async.js:1011:17)\n at /home/ubuntu/nodebb/node_modules/async/dist/async.js:1016:9\n at eachOfLimit (/home/ubuntu/nodebb/node_modules/async/dist/async.js:1041:24)\n at /home/ubuntu/nodebb/node_modules/async/dist/async.js:1046:16","exception":true,"date":"Fri Aug 02 2019 03:58:49 GMT+0000 (Coordinated Universal Time)","process":{"pid":2791,"uid":0,"gid":0,"cwd":"/home/ubuntu/nodebb","execPath":"/usr/bin/node","version":"v10.15.3","argv":["/usr/bin/node","/home/ubuntu/nodebb/nodebb","upgrade"],"memoryUsage":{"rss":60760064,"heapTotal":37564416,"heapUsed":25235792,"external":1112135}},"os":{"loadavg":[0.68603515625,0.33935546875,0.1943359375],"uptime":1683},"trace":[{"column":11,"file":"child_process.js","function":"checkExecSyncError","line":616,"method":null,"native":false},{"column":13,"file":"child_process.js","function":"Object.execSync","line":653,"method":"execSync","native":false},{"column":9,"file":"/home/ubuntu/nodebb/src/cli/package-install.js","function":"Object.installAll","line":45,"method":"installAll","native":false},{"column":19,"file":"/home/ubuntu/nodebb/src/cli/upgrade.js","function":"Object.handler","line":26,"method":"handler","native":false},{"column":22,"file":"/home/ubuntu/nodebb/src/cli/upgrade.js","function":null,"line":59,"method":null,"native":false},{"column":24,"file":"/home/ubuntu/nodebb/node_modules/async/dist/async.js","function":null,"line":3880,"method":null,"native":false},{"column":17,"file":"/home/ubuntu/nodebb/node_modules/async/dist/async.js","function":"replenish","line":1011,"method":null,"native":false},{"column":9,"file":"/home/ubuntu/nodebb/node_modules/async/dist/async.js","function":null,"line":1016,"method":null,"native":false},{"column":24,"file":"/home/ubuntu/nodebb/node_modules/async/dist/async.js","function":"eachOfLimit","line":1041,"method":null,"native":false},{"column":16,"file":"/home/ubuntu/nodebb/node_modules/async/dist/async.js","function":null,"line":1046,"method":null,"native":false}]}
this is the error Im getting
fatal: ambiguous argument 'origin/v1.12.2': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
@PitaJ same issue even with the V
So I went with an image it's one behind and I follow the upgrade instruction and I place
git reset --hard origin/1.12.2
And I get this error unknown revision of path not in the working tree how do I get around this to fix this
So I'm using discourse but I want to move to NodeBB cleaner look and cooler themes and features more robust admin panel. I wish to use AWS EC2 to host our site is there a detailed documentation to set up with AWS. I don't want to use the Image in the marketplace as I've had issues with images before.
Thanks in Advance