Random crash after upgraded from 1.5.x to 1.8.2

Technical Support
  • After neglecting upgrades so long I upgraded to newest versions, to fix broken bootstrap links. All went better than last update from 1.1.2 to 1.5.x. First I did backups, and test upgrade, and then live version, all ok. Now about 12 hours later forum crashed.

    I also upgraded Node to newest LTS version (8.11.1), previous version was running with 6.x.

    At log I have 4 of these:

    2018-04-07T11:10:49.148Z [39] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-04-07T11:10:49.147Z [39] - error:  TypeError: Cannot read property 'hasOwnProperty' of null
        at postParse (/nodebb/node_modules/nodebb-plugin-markdown/index.js:181:15)
        at /nodebb/node_modules/async/dist/async.js:66:19
        at nextTask (/nodebb/node_modules/async/dist/async.js:5310:14)
        at next (/nodebb/node_modules/async/dist/async.js:5317:9)
        at /nodebb/node_modules/async/dist/async.js:958:16
        at _combinedTickCallback (internal/process/next_tick.js:138:11)
        at process._tickCallback (internal/process/next_tick.js:180:9)
    2018-04-07T11:10:49.160Z [39] - info: [app] Web server closed to connections.
    2018-04-07T11:10:49.169Z [39] - info: [app] Database connection closed.
    2018-04-07T11:10:49.170Z [39] - info: [app] Shutdown complete.
    [cluster] Child Process (39) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    

    followed with 3 restarts in 10 seconds, most likely an error on startup. Halting.

  • What others Plugins are you using? You can use ./nodebb plugins to print out a list. Try disabling them, as it seems one is passing an invalid value to markdown.

  • Only default? plugins, haven't installed or deactivated any, default set was also used with 1.5.0

    • nodebb-plugin-composer-default
    • nodebb-theme-persona
    • nodebb-plugin-markdown
    • nodebb-plugin-mentions
    • nodebb-widget-essentials
    • nodebb-rewards-essentials
    • nodebb-plugin-soundpack-default
    • nodebb-plugin-emoji
    • nodebb-plugin-emoji-extended
    • nodebb-plugin-emoji-android
    • nodebb-plugin-emoji-one
    • nodebb-plugin-ns-awards
    • nodebb-plugin-spam-be-gone
    • nodebb-plugin-google-analytics
    • nodebb-plugin-dbsearch
  • At least emojis in link do not crash markdown (i tested this at own local installation first 😻).

    Should this be reported to GitHub as separated issue?

    # Example for markdown :smile: 
    [test](http://www:heart:com)
    
  • After last restart forum has been up almost 2 days without crash, no plugin has been disabled. Actually I didn't do anything else, just started NodeBB again.


Suggested Topics


  • 0 Votes
    1 Posts
    45 Views

    Hi, I switched from docker install to normal install and I wonder if i can automate updates because I will 100% forget to apply them in the long term

    I tried to create a script to run once a month to do this:

    delete everything except config.json, packages.json and uploads

    get latest source for the 3.x branch from github

    run ./nodebb upgrade as node user, then start it

    but then I noticed that ./nodebb upgrade can ask "do you want to upgrade this plugin Y/N?", and so it can't be run attended in a script

    I checked in the help and I did not see a command to make it unattended, so I resorted to just run it as ./nodebb upgrade -mib && ./nodebb start, which looks like it does not ask questions

    What do you think?

  • 0 Votes
    3 Posts
    874 Views

    Hi @RogerLevy -- the import process should be fine, there aren't any major breaking changes.

    In fact, if you really want, our upgrade scripts are supposed to be idempotent, so you can run them again (by deleting the schemaLog value from the database) so that ./nodebb upgrade runs them all again.

    Alternatively, delete individual items from that sorted set.

    Alternatively, run individual upgrades by executing ./nodebb upgrade upgrade_script_name 😄

    Lots of options!

  • NodeBB Crashing?

    Solved Technical Support
    4
    0 Votes
    4 Posts
    1k Views

    @baris Seems to not be happening anymore after updating to 1.5.1

  • Error starting NodeBB after upgrade

    Solved Technical Support
    8
    0 Votes
    8 Posts
    4k Views

    @zipang yes of course we'll support Node 8 but to do so we have to drop support for all Node versions prior to v6. You can understand why we'd be hesitant to do so so quickly after our last major version release.

  • 0 Votes
    13 Posts
    5k Views

    And when I install ehe extended emoji plugin now, bot the skype- and the whatsapp smileys work?

    e: yes, they do! bravo!