Why do I even bother upgrading??


  • GNU/Linux

    I know I should probably cool off before posting but I am getting really fed up with this project. Every single time I do an upgrade I end up having to wipe everything and start over. Thankfully I get to keep my redis database and the user posts and stuff but half the damn plugins dont work anymore, the templates are broken, things are randomly missing settings... Like why should I even bother. Once I get it working I'm never EVER upgrading again. I'd switch to a different platform if it wasn't too late :(

    To add some specific complaints instead of just ranting:

    • Why is there no way to roll back once you upgrade?
    • Why is there no way to record what version of plugins you have installed besides copying the entire node_modules directory (that is ignored from source control btw)?
    • Why do half the plugins and all my templates break when I upgrade? And to be clear I don't mean half the plugins are disabled because they are incompatible, oh no, i would be fine with that, instead they are enabled and upgraded but just don't work, or they lose their settings, or worst of all they break the rest of the application so I only get half a page to load in the browser or something.
    • Why do I get copious javascript errors in the console when I try to view the new version? Clearing cache isn't enough, I have to manually purge the files from the public directory and re-generate them..

    This all seems very shoddy. The cynic in me thinks this is an effort to drive people toward the paid version of nodebb but I refuse to believe that. I've interacted with some of the main devs here on the forums and they always seemed very helpful and open. But this application is an absolute minefield to maintain. At this point I need to make a full backup of the entire directory in addition to the database to be safe while upgrading (which is not the recommended process, they recommend you use the nodebb git repo, check out a new tag and run the ./nodebb upgrade script). I'm going to have to treat nodebb like it's nitroglycerin from now on.

    If I'm doing something wrong or there's a new accepted way please enlighten me but for now I'm going to return to smashing my face into my keyboard while I figure out a way to recover this disaster.


  • Global Moderator

    Why is there no way to roll back once you upgrade?

    Well, it is mostly possible. The only time it isn't is when we make a database change that isn't backwards compatible. Writing a second version of upgrade scripts for every database change we make would be twice as much maintenance for something most people wouldn't use.

    Why is there no way to record what version of plugins you have installed besides copying the entire node_modules directory (that is ignored from source control btw)?

    ./nodebb plugins will list out all active plugins on your forum

    Why do half the plugins and all my templates break when I upgrade?

    We try to avoid breaking changes but NodeBB is still under heavy active development. We try to warn people to always check their site setup in a staging instance before upgrading, especially if that upgrade is marked as breaking. We also tell people to backup their NodeBB install and database before upgrading. Our versions are kinda weird and don't really follow the conventions but we're working on that. For now, our versioning works like this:

    for X.Y.Z

    • X is the named version, we increment it when we feel that NodeBB is significantly different than before
    • Y is the major version, we increment it when we make breaking changes
    • Z is the minor version, we increment it when we make bug fixes and improvements

    In the future we plan on moving to Semver where

    • X is the major version, which is incremented on breaking changes
    • Y is the minor version, which is incremented on improvements and additions
    • Z is the patch version, which is incremented on bug fixes

    Breaking changes are a part of life, and while we try to minimize them, sometimes they are necessary to implement features that people want. Other times, they slip in accidentally.
    We have a very large API surface and imperfect tests and documentation, which we are working on to improve.

    Why do I get copious javascript errors in the console when I try to view the new version?

    I'm not sure. Please share how you normally upgrade. Also, if you'll share what version you upgraded from and to I'd appreciate it.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.