Skip to content

MogoDB v6 to v7 upgrade

Solved Configure
5 2 2.4k 1
  • wrote on last edited by Panda
    #1

    Running nodeBB on v6 of MongoDB and tried to upgrade to v7
    Is there any benefit to upgrading?

    Anyway I did
    sudo apt update
    and saw these lines (which still references v6?)
    …https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 InRelease
    Hit:10 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 Release

    Then
    sudo apt upgrade mongodb
    didnt work

    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Package mongodb is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'mongodb' has no installation candidate
    

    Can anyone explain what failed there?

  • wrote on last edited by
    #2

    Just to add, the server is running Ubuntu. I read something once about Ubuntu having its own list of where it gets updates from?
    Im not sure if that is the case, and is relevant

  • Just to add, the server is running Ubuntu. I read something once about Ubuntu having its own list of where it gets updates from?
    Im not sure if that is the case, and is relevant

    wrote on last edited by
    #3

    @Panda yes, Ubuntu does have its own PPA repository for most software, but not for mongodb. This should help in terms of the upgrade

    https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/

  • @Panda yes, Ubuntu does have its own PPA repository for most software, but not for mongodb. This should help in terms of the upgrade

    https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/

    wrote on last edited by
    #4

    @phenomlab ok thanks, so any idea what caused it not to upgrade?

  • @phenomlab ok thanks, so any idea what caused it not to upgrade?

    wrote on last edited by
    #5

    @Panda if you used the Ubuntu PPA, I think this only goes as far as 6.x if I recall correctly.

  • Panda Panda has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • nodebb error logs

    Bugs nodebb
    6
    2
    4 Votes
    6 Posts
    2k Views
    ahmed
    I just wanted to ask because I don’t have much knowledge about the new installation. Thank you for the explanatory answer.
  • NodeBB: Upgrading to NodeBB v3.x

    Solved Configure nodebb v3.x
    6
    0 Votes
    6 Posts
    3k Views
    phenomlab
    @mventures You’d need to connect to the server and execute it directly - not on your local terminal. Review the guide below, which will show you how to gain access via SSH to your server https://docs.ovh.com/gb/en/dedicated/ssh-introduction/ Once you have access, you’ll need to navigate to the actual folder where NodeBB is installed You’ll then need to change to the directory as shown below /home/unbuntu/nodebb [image: fdffe673-bf63-4b6d-a728-5506fddc1aff-image.png] In most cases, initial access takes you to the root of the file system. You can always issue pwd in a Linux terminal which will show you the Present Working Directory. From there, you can issue the command cd /home/ubuntu/nodebb Once in the NodeBB directory, you’d use the below commands ./nodebb stop git fetch && git checkout develop && git reset --hard origin/develop ./nodebb upgrade ./nodebb start Line 1 stops the NodeBB instance Line 2 gets the latest files from GIT (repository) and then checks out the development branch. It then resets the version you are using to the development branch ready for v3 Line 3 Runs the upgrade once the new branch is set, and code pulled Line 4 Restarts the NodeBB instance after the upgrade has completed Note that when you restart NodeBB and log back in, things will look very different to what you had in v2.
  • NodeBB v3

    Announcements nodebb v3 nodebb
    2
    3 Votes
    2 Posts
    1k Views
    phenomlab
    @cagatay JS will work fine - no changes there, and there are no plans to drop support for jQuery. More of an issue is the CSS - for which there are quite a few breaking changes. Keep an eye on sudonix.dev (my development site) where you can see progress in relation to how I am tackling the compatibility issues.
  • NodeBB Theme/Skin Switcher

    Solved Customisation nodebb
    38
    7 Votes
    38 Posts
    18k Views
    phenomlab
    @Teemberland great spot ! You should create a PR for that so they can include it in the official repository. Just be aware that any subsequent releases will overwrite your fix without the PR.
  • [NodeBB] greeting message

    Solved Customisation css nodebb javascript
    2
    1
    3 Votes
    2 Posts
    2k Views
    phenomlab
    @pwsincd welcome to sudonix, and thanks for the comments. What your looking for is here https://sudonix.com/topic/195/nodebb-welcome-message/3?_=1648295651358
  • is "night mode" shifting the forum several pixels up?

    Solved Configure nodebb
    8
    4 Votes
    8 Posts
    3k Views
    phenomlab
    @crazycells hmm. Good point. I actually use my own version of the dark mode plugin, so not entirely sure. However, I think the CSS is probably the same. I’m not at my PC currently but can check and advise later.
  • Adjusting the size of boxes in posts-list class

    Solved Customisation nodebb
    3
    3 Votes
    3 Posts
    2k Views
    crazycells
    @phenomlab thanks a lot, this combination works best .posts-list .posts-list-item .content { overflow: auto; max-height: 600px; }
  • RSS parser script [NodeBB]

    Customisation nodebb rss script
    47
    9 Votes
    47 Posts
    23k Views
    JAC
    @phenomlab said in RSS parser script [NodeBB]: @jac Not yet. Sorry. Have some other work commitments I need to prioritise. Hoping to get to this over the weekend. No worries at all mate, thanks