Authentication Failed
-
May be faster for you to figure out the correct credentials using the CLI:
mongo --username <yourusername> --password <yourpass>
Also worth attempting to connect with no credentials, on the off-chance you haven't correctly enabled authentication.
mongo
If you can't figure out the correct credentials, you can set up another set with this official doc.
-
I finally got past this error.
It took a couple of uninstalls and reinstalls of mongo until i finally got the details right.but now I have a new problem
I'm still working my way through the install guide which BTW doesn't look like it's rendering correctly on my browser but that's beside the point
I got to the part where I setup a nodebb.service file.
This is what my nodebb.service file looks like[Service] Type=simple User=nodebb StandardOutput=syslog StandardError=syslog SyslogIdentifier=nodebb Environment=NODE_ENV=production WorkingDirectory=/home/ubuntu/nodebb ExecStart=/usr/bin/node loader.js –no-daemon –no-silent Restart=always [Install] WantedBy=multi-user.target
-
Does this seem correct?
-
When I go to the next step and run
sudo systemctl enable nodebb
, I get this message:Failed to execute operation: Bad message
-
-
@arkoma Nah, you're missing some of the line breaks:
[Unit] Description=NodeBB Documentation=https://docs.nodebb.org After=system.slice multi-user.target mongod.service [Service] Type=simple User=nodebb StandardOutput=syslog StandardError=syslog SyslogIdentifier=nodebb WorkingDirectory=/path/to/nodebb ExecStart=/usr/bin/env node loader.js --no-silent --no-daemon Restart=always [Install] WantedBy=multi-user.target
Try a different browser? Which install guide are you using?
-
@julian I'm using this guide https://nodebb.readthedocs.io/en/latest/installing/os/ubuntu.html
I'm looking at it in Chrome on Linux Mint Ubuntu 16.04 LTS
I put in the line breaks
I notice that you don't have this line that I do
Environment=NODE_ENV=production
-
@arkoma It looks like nodebb defaults to running as production, unless you pass some other value to
NODE_ENV
, so that line will have no effect.NodeBB/app.js at master · NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/app.js at master · NodeBB/NodeBB
GitHub (github.com)
-
-
Your AWS instance has an IP address or maybe even a normal address. You can use that to connect on port
4567
-
@pitaj Yeah, that's not working. Most likely I don't know what I'm doing, but it just times out.
This is what I have in the console
9/3 03:16:20 [1786] - info: NodeBB Ready 9/3 03:16:20 [1786] - info: Enabling 'trust proxy' 9/3 03:16:20 [1786] - info: NodeBB is now listening on: 0.0.0.0:4567
I go here
http://ec2-34-213-181-70.us-west-2.compute.amazonaws.com:4567/and it just hangs
-
I finally figured it out.
It's up and running at
http://34.217.204.98:4567/Although I get a message saying "looks like your connection to nodebb was lost" hmm... I'm going to have to search for another thread related to that.