Upgrade Problem from 1.12.2 to 1.13.3 build process never ends

Technical Support
  • Hi guys,
    I tried to upgrade Nodebb from v1.12.2 to v1.13.3. After ./nodebb upgrade everything is fine except the build process, see screenshot for details. The process never ends after templates. I had a look in the folder and the data is there, but if I stop the process the frontend is broken.

    Bildschirmfoto 2020-10-28 um 21.41.30.png

    The road to this point was quite bumpy. It took 3-4 attempts to come to this points. I had to clear a few npm-errors with missing dependencies. I tried to roll back completely from a backup, but the result is the same. I tried to upgrade to v1.14.x but the result is still the same.

    System data:
    OS: CentOS 7
    Node v12.19.0
    npm 6.14.8

    Does anybody know how to resolve this problem?

    Thanks for any help!
    Christian

  • Does it build if you use persona theme?

    Did you try building in series mode with ./nodebb build --series.

    Does the server have enough ram?

  • Hi @baris!
    Great, the build fininshed with ./nodebb build --series. Thanks!

    I will keep this command. After that I tried again ./nodebb upgrade and monitored with top the ram an CPU usage. The build process broke with an error
    Error occurred during upgrade: Error: ENOMEM: not enough memory, read
    I got this error the first time. In all my other attemps no error occured.

    How much ram is recommended for the usage of nodebb?

  • @suparomana Define "Usage" 😜

    How much provisioning did you allocate? In my experience, one needs a fair bit more RAM for builds than day to day operations. Ditto CPU horsepower. The --series flag is news to me as well. If that still takes too long to build: Do you have the ability to scale up provisioning for builds and then scale back down for day to day operations?

  • 1gb ram with some swap is usually fine to run ./nodebb build

  • @baris 1gb ram is a lot.. we are running our forum on a shared host, so I can not increase the amount of ram.

    Nodebb is running very smoothly and super fast there and we get a lot of positive feedback from our users. Our complete userbase is about 600 users big and we never had a performance issue in about 3 years.

    I assume that the needed ram could be a problem for a lot of nodebb users. Do you think it would be possible to make the --series option available for the build function ./nodebb build --series ? If yes, where should I place this request? 😊

  • @suparomana what are you asking for? Doesn't ./nodebb build --series already work?

    If you're asking to make it the default, there's also the option of placing "series": true in your config.json

  • @pitaj great! This is what I am looking for. 😉 And you understood it even though I wrote it wrong. 🤦 Actually I would ask for ./nodebb upgrade --series but a config option is much better. Thank you! 🙏 It would be great if you could include this option in the documentation.


Suggested Topics


  • 0 Votes
    1 Posts
    194 Views

    The entire error below. I've been searching for some clues, but coming up empty handed and hoping someone can help. This is a fresh install on a debian 10 server.

    2020-04-17T16:33:02.636Z [26376] - error: [build] admin control panel styles build failed 2020-04-17T16:33:02.639Z [26376] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error: Error: socket hang up {"type":"File","filename":"/var/www/nodebb/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]} ==================================================================================================================================== 2020-04-17T16:33:02.647Z [26376] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error: Error: socket hang up {"type":"File","filename":"/var/www/nodebb/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]} (node:26376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:26376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  • 0 Votes
    10 Posts
    573 Views

    @baris

    New error, hope it's okay:

    4. Updating NodeBB data store schema... Parsing upgrade scripts... 2018-11-30T15:21:24.425Z [24448] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-import-smf-1`. Skipping. OK | 1 script(s) found, 67 skipped → [2019/1/26] Changing dbsearch mongodb search schema to use _id... 2018-11-30T15:21:24.509Z [24448] - error: ns not found MongoError: ns not found at /var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:581:63 at authenticateStragglers (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:504:16) at Connection.messageHandler (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:540:5) at emitMessageHandler (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:310:10) at Socket.<anonymous> (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:453:17) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) {"ok":0,"errmsg":"ns not found","code":26,"codeName":"NamespaceNotFound","name":"MongoError"} 2018-11-30T15:21:24.512Z [24448] - error: ns not found MongoError: ns not found at /var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:581:63 at authenticateStragglers (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:504:16) at Connection.messageHandler (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:540:5) at emitMessageHandler (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:310:10) at Socket.<anonymous> (/var/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:453:17) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) {"ok":0,"errmsg":"ns not found","code":26,"codeName":"NamespaceNotFound","name":"MongoError"}

    Thanks for the help BTW.

  • Fresh install of 1.6.0

    Solved Technical Support
    0 Votes
    3 Posts
    1k Views

    @baris Thank you

  • 0 Votes
    30 Posts
    5k Views

    Cyberian.pk
    a11adac4-f118-4ba4-858c-f49c0228fb74-image.png
    nodebb.com
    09a9b011-a660-499e-8b79-fed209e2c44e-image.png

  • Group Chat problem...

    Technical Support
    0 Votes
    4 Posts
    1k Views

    Thank you 🙂
    I use Persona theme in version 5.0.11
    Edit : I find the code I solved it in my forum and I created Pull request : https://github.com/NodeBB/nodebb-theme-persona/pull/369 🙂