Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. mongodb
    Log in to post
    • B

      Using redis as a cache
      Feature Requests • cache mongodb nginx redis • • BuZz

      2
      0
      Votes
      2
      Posts
      34
      Views

      baris

      In your setup redis will be used for sessions, pubsub and socket.io will use it to pass around messages.

      Each nodejs process has it's own post cache, you can see the caches at /admin/advanced/cache.

      Redis pubsub is also used to clear cache on the other nodejs process when it is cleared on one nodejs process. For example when a post is edited it's cache will be cleared on the other nodes.

    • J

      Any tips for installing NodeBB on AWS Lightsail?
      General Discussion • aws installation lightsail mongodb nodebb • • jaycincotta

      11
      1
      Votes
      11
      Posts
      83
      Views

      scottalanmiller

      @PitaJ said in Any tips for installing NodeBB on AWS Lightsail?:

      As long as Lightsail doesn't limit the capabilities of their VPS, I don't see why it would be any different from a normal install on Ubuntu.

      yeah, it's identical. LightSail ends up being exactly like a DO or Vultr.

    • NoduleJS

      add new collections or mantain one collection
      NodeBB Development • collection mongodb • • NoduleJS

      3
      0
      Votes
      3
      Posts
      287
      Views

      NoduleJS

      Thank you for the explanation. I will probably use a third-party database (firebase) for payments.
      Using firebase, different operations can be done on the client side, without disturbing the main server. I think this is very useful for a smoother user experience.

    • MJ

      SOLVED Move MongoDB to clean NodeBB
      Technical Support • mongodb • • MJ

      1
      0
      Votes
      1
      Posts
      95
      Views

      MJ

      Hello, I'm hosting my NodeBB on Digital Ocean and I want to move everything to an other database. We use MongoDB and we have a few problems. We don't know the MongoDB admin password/username.

      Do you know a way to do this or is there a plugin that makes this easier to do?
      Any help/advice is welcome and are there things we should do and don't do?

    • Kryllis

      MongoDB Shard Key?
      Technical Support • azure mongodb support • • Kryllis

      1
      0
      Votes
      1
      Posts
      81
      Views

      Kryllis

      I'm looking to use Azure CosmosDB mongoDB API with more than 10GB, so I need a shard key to get unlimited storage. Is there anything I have to do with NodeBB for the shard key?

      Also, I couldn't find this anywhere and have no forum experience, but excluding media, how much storage does a moderate forum take up?

    • gotwf

      Mongodb or PostgreSQL? Ah, that is the question...
      Technical Support • mongodb postgresql • • gotwf

      33
      0
      Votes
      33
      Posts
      413
      Views

      scottalanmiller

      @gotwf Thanks.

      Sorry I was AWOL yesterday. I was in that Canton, TX tornado! Okay, not "in" it, but was in Canton when it happened.

    • fais3000

      Nodebb v1.11.1 suddenly started crashing
      Technical Support • database mongodb v1.11.x • • fais3000

      9
      1
      Votes
      9
      Posts
      252
      Views

      fais3000

      @scottalanmiller So unfortunately none of the versions worked with our database any more. We even tried 1.11.2 and went back to 1.10.2 on mongodb 3.2 as well.

      Now, we've updated mongodb to 3.4 and picked up an old database backup to migrate from 3.2 to 3.4 on the latest nodebb (1.11.2). Its working properly now.

      However, a warning for people on older versions of mongodb when updating to 1.11.x onward.

    • scottalanmiller

      New MongoDB Change with Strong NodeBB Implications
      General Discussion • licensing mongodb • • scottalanmiller

      1
      0
      Votes
      1
      Posts
      231
      Views

      scottalanmiller

      MongoDB changes licensing creating cascade of open source requirements.

      Take a look, if you are deploying NodeBB with MongoDB ever, or write any code for anything that touches it, be aware that you may be forced to open source anything and everything.

    • S

      Error when trying to start NodeBB
      Technical Support • help mongodb ubuntu • • SparaxVenator

      6
      0
      Votes
      6
      Posts
      2507
      Views

      PitaJ

      @SparaxVenator try running npm install

    • Pramvir Rathee

      When forum Get big big - Issues browsing forum with admin accounts. 503
      Bug Reports • 503 admin error mongod mongodb • • Pramvir Rathee

      4
      0
      Votes
      4
      Posts
      3417
      Views

      yariplus

      Does the forum logs give an error when it crashes?

      Do you have mongo and nginx logs on?

      There should be some useful information in one of the logs as to what is happening.

    • F

      Memory (MongoDB)
      Technical Support • memory mongodb nodebb • • Flemming Hansen

      8
      0
      Votes
      8
      Posts
      3480
      Views

      F

      @alff0x1f excellent! Thank you very much for those printouts. Swap it is, then 😃

    • Anthony Young

      Adding mongo with a custom URL (Modulus.io)
      NodeBB Development • config configuration mongo mongodb uri • • Anthony Young

      3
      0
      Votes
      3
      Posts
      1916
      Views

      Anthony Young

      @pichalite Thanks 🙂 Rookie mistake by me

    • Doppy

      How get the "score" value when I put an element in a sortedSet
      Plugin Development • mongo mongodb plugin sorted set • • Doppy

      4
      0
      Votes
      4
      Posts
      1911
      Views

      baris

      No they return the score of the value.

      db.sortedSetScore(set, data.name, function(err, score) { console.log(score); });
    • julian

      Error while building MongoDB/kerberos modules? Check here.
      NodeBB Development • kerberos mongodb npm • • Julian Lam

      2
      1
      Votes
      2
      Posts
      1799
      Views

      julian

      NodeBB w/ MongoDB still works just fine even though the kerberos dependency doesn't build, it just means you can't connect to MongoDB servers utilising kerberos authentication.

      Would prefer not to have to add libkrb5-dev to the list of dependencies, so investigating alternatives...

    • AtonB117

      Running into this: "warn: You have no mongo password setup!"
      Technical Support • authentication digital ocean installation mongo 3.0.1 mongodb • • AtonB117

      17
      0
      Votes
      17
      Posts
      4800
      Views

      AtonB117

      Well, damn. Didnt know that.

      Okay, Thanks for your phenomenal help, @pichalite.

      Gonna mess around with this proxying and nginx a bit now that everything is moving forward again.

    • Pilvinen

      How to export from Redis to MongoDB? (My database got wiped)
      Technical Support • database meltdown mongodb redis • • Pilvinen

      72
      0
      Votes
      72
      Posts
      24583
      Views

      Charly86

      I had back this problem a 2nd time 2 days ago, I don't know if it's related but I was doing iptables FW settings on the VM, I had nodeBB running, and also redis and from my computer desktop redis desktop manager connected to DB.
      Then I made a mistake in iptables, blocked all redis port (even local), saying nodebb unable to connect to redis (so as redis desktop manager) then when I openned back 6379 port, all data was gone, not sure if it's related, just an information.

    • Zig.gy

      SOLVED I am stuck on Step 5 through 7 of Installation using MongoDB
      Technical Support • failure installation mongodb • • Zig.gy

      4
      0
      Votes
      4
      Posts
      2262
      Views

      Zig.gy

      Thank you @markkus and @jarey for your replies. I did what you suggested about re-installation and the problem persisted. I then discovered something...

      ...the installation manual may be outdated. The file in question on Step 7 is mongod.conf instead of mongodb.conf.

      Step 7 Corrected.png

      step7.png

      Can @psychobunny or whoever in charge of the Doc double check this and make the proper correction?

    • JamesJ

      UNSOLVED MongoDB Structure
      NodeBB Development • mongodb • • JamesJ

      10
      0
      Votes
      10
      Posts
      5151
      Views

      S

      The structure looks not friendly at all.

    • J

      Minimongo instead of redis
      NodeBB Plugins • mongodb redis • • JonnyBlack

      1
      0
      Votes
      1
      Posts
      1339
      Views

      J

      Anyone know if Minimongo could be used in a plugin to enable redis-style caching to a full mongodb instance? The redis (live) to mongodb (persist) route looks daunting...

      JB

    • ludam

      Mongo vs Redis: which one is better for a huge community?
      NodeBB Development • mongodb redis • • ludam

      18
      1
      Votes
      18
      Posts
      12155
      Views

      JaredBusch

      @julian said in Mongo vs Redis: which one is better for a huge community?:

      64GB 😮 -- that is a lot of memory 😄

      We host larger databases on much less RAM (as we're using a cloud provider and high memory installs are crazy expensive)...

      There is definitely a speed difference though. Navigating between pages on here takes a split second longer than a Redis database... if you want to see NodeBB fly, use Redis.

      @scottalanmiller was replying to somebody talking about a 50 GB data community though.