Hi @pitaj
Thanks for the suggestion, it worked!
Hi @pitaj
Thanks for the suggestion, it worked!
I am unable to connect to a remote mongodb server while setting up a fresh nodebb instance. I have verified connection manually through "mongo" command as seen below;
fsuzer@prod-nodebb:~/nodebb$ mongo "mongodb://10.132.0.2:27017"
MongoDB shell version v5.0.5
connecting to: mongodb://10.132.0.2:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("b2adf492-0114-4e2a-8866-dc4fbde03ddd") }
MongoDB server version: 5.0.5
================
Warning: the "mongo" shell has been superseded by "mongosh",
which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in
an upcoming release.
For installation instructions, see
https://docs.mongodb.com/mongodb-shell/install/
================
>
Netcat is also successful, please see below;
fsuzer@prod-nodebb:~/nodebb$ nc -zv 10.132.0.2 27017
Connection to 10.132.0.2 27017 port [tcp/*] succeeded!
However, this is how it ends up while running nodebb setup. I have also tried to manually create "config.json" and including only "mongo" details, however, it ended up giving me the same error. This was a suggestion on one of the past posts. I have tried with both "nodebb" user and as well as the "admin" user - both having different password setups.
Any idea what I could be doing wrong?
Thanks,
Fatih
fsuzer@prod-nodebb:~/nodebb$ ./nodebb setup
2021-12-27T05:51:37.566Z [1198] - info: NodeBB Setup Triggered via Command Line
Welcome to NodeBB v1.18.6!
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://localhost:4567)
Please enter a NodeBB secret (8c340dbe-d515-425a-953f-2442af87307e)
Would you like to submit anonymous plugin usage to nbbpm? (yes)
Which database to use (mongo)
2021-12-27T05:51:41.129Z [1198] - info:
Now configuring mongo database:
MongoDB connection URI: (leave blank if you wish to specify host, port, username/password and database individually)
Format: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
Host IP or address of your MongoDB instance (127.0.0.1) 10.132.0.2
Host port of your MongoDB instance (27017)
MongoDB username nodebb
Password of your MongoDB database
MongoDB database name (nodebb)
2021-12-27T05:52:01.863Z [1198] - warn: NodeBB Setup Aborted.
MongoServerError: Authentication failed.
at MessageStream.messageHandler (/home/fsuzer/nodebb/node_modules/mongodb/lib/cmap/connection.js:467:30)
at MessageStream.emit (node:events:390:28)
at processIncomingData (/home/fsuzer/nodebb/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
at MessageStream._write (/home/fsuzer/nodebb/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at MessageStream.Writable.write (node:internal/streams/writable:334:10)
at Socket.ondata (node:internal/streams/readable:754:22)
at Socket.emit (node:events:390:28)
at addChunk (node:internal/streams/readable:315:12)
@baris Done. Thank you very much Baris.
@baris said in Is this a bug? (users ranking and reputation ):
db.objects.findOne({_key: "global"}).userCount;
> db.objects.findOne({_key: "global"}).userCount;
7935
> db.objects.count({_key: "users:joindate"});
7935
> db.objects.count({_key: "users:postcount"});
7959
> db.objects.count({_key: "users:reputation"});
7969
@baris said in Is this a bug? (users ranking and reputation ):
db.objects.find({_key: "users:reputation", value: "<uid_of_user>"});
Hi Baris,
Thank you for your support. Here's the output;
> db.objects.find({_key: "users:reputation", value: "967"});
{ "_id" : ObjectId("5afaf7cb955f6475f7b7119f"), "_key" : "users:reputation", "value" : "967", "score" : -60 }
@gotwf I truly miss zfs
@sharonyue said in Error while restarting the forum after several plugin update:
@crazycells said in Error while restarting the forum after several plugin update:
therefore we decided to re-install the forum with an automatic back up from several hours back.
How can you do this automaticly? I am using redis and I have to copy dump.rdb manually.
As just mentioned, mongodb is backed up and the archive is compressed via cron, then sent to an external volume. The older ones also deleted periodically again via cron. Redis is used for sessions.
I am looking into the option of taking multiple snapshots in a day via digitalocean API's to replace this system though. I did this succesfully for the data volumes however I have yet to come up with a way to do the same for the droplet itself as i don't see any digitalocean API for that.
@PitaJ said in Text Overlapping Issue:
What version of NodeBB and nodebb-theme-persona are you on? How you tried stopping nodebb, running
./nodebb build
, and starting it back up?
We are on Ver 1.12.2 and Persona. I’ve stopped and built from cli multiple times and result is the same. What should I be looking at?
We're having below issue. Some texts on the posts overlaps.
I was wondering if anyone could help us on how to prevent this, thanks.