• Hi. I've restarted by NodeBB instance, and am now being met with the below error when trying to build (I can't even start)

    2021-09-22T16:57:49.874Z [4567/1847] - info: [build] Building in parallel mode
    2021-09-22T16:57:49.875Z [4567/1847] - info: [build]         plugin static dirs  build started
    2021-09-22T16:57:49.878Z [4567/1847] - info: [build]          requirejs modules  build started
    2021-09-22T16:57:49.879Z [4567/1847] - info: [build]           client js bundle  build started
    2021-09-22T16:57:49.920Z [4567/1847] - info: [build]            admin js bundle  build started
    2021-09-22T16:57:49.920Z [4567/1847] - info: [build]         client side styles  build started
    2021-09-22T16:57:49.921Z [4567/1847] - info: [build] admin control panel styles  build started
    2021-09-22T16:57:49.921Z [4567/1847] - info: [build]                  templates  build started
    2021-09-22T16:57:49.922Z [4567/1847] - info: [build]                  languages  build started
    2021-09-22T16:57:50.355Z [4567/1847] - error: [build]           client js bundle  build failed
    2021-09-22T16:57:50.356Z [4567/1847] - error: [build] Encountered error during build step
    Error: Unknown system error -122: Unknown system error -122, write
    2021-09-22T16:57:50.356Z [4567/1847] - error: Error: Unknown system error -122: Unknown system error -122, write
    sudonix@vps:~/nodebb$ node:events:371
          throw er; // Unhandled 'error' event
          ^
    
    Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
        at new NodeError (node:internal/errors:371:5)
        at process.target.send (node:internal/child_process:721:16)
        at /home/sudonix/nodebb/src/meta/minifier.js:125:13
        at processTicksAndRejections (node:internal/process/task_queues:83:21)
    Emitted 'error' event on process instance at:
        at node:internal/child_process:725:35
        at processTicksAndRejections (node:internal/process/task_queues:78:11) {
      code: 'ERR_IPC_CHANNEL_CLOSED'
    }
    node:events:371
          throw er; // Unhandled 'error' event
          ^
    
    Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
        at new NodeError (node:internal/errors:371:5)
        at process.target.send (node:internal/child_process:721:16)
        at /home/sudonix/nodebb/src/meta/minifier.js:125:13
        at processTicksAndRejections (node:internal/process/task_queues:83:21)
    Emitted 'error' event on process instance at:
        at node:internal/child_process:725:35
        at processTicksAndRejections (node:internal/process/task_queues:78:11) {
      code: 'ERR_IPC_CHANNEL_CLOSED'
    }
    
    

    Anyone seen this before ? This appears to be after a recent update to nodebb-theme-persona


  • @PitaJ Sorry I'm a little late responding here. I've used systemd as defined below, which works fine, and survives a rebuilt and restart

    [Unit]
    Description=Sudonix
    Documentation=https://docs.nodebb.org
    After=system.slice multi-user.target mongod.service
    
    [Service]
    Type=forking
    User=sudonix
    
    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=nodebb
    
    WorkingDirectory=/home/sudonix/nodebb
    PIDFile=/home/sudonix/nodebb/pidfile
    ExecStart=/usr/bin/env node loader.js
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    

    Many thanks for all the help and support. Greatly appreciated.


  • I also cannot remove plugins - similar error

    sudonix@vps:~/nodebb$ npm remove nodebb-plugin-question-and-answer
    npm ERR! code Unknown system error -122
    npm ERR! syscall mkdir
    npm ERR! path /home/sudonix/nodebb/node_modules/@apidevtools/json-schema-ref-parser
    npm ERR! errno -122
    npm ERR! Unknown system error -122: Unknown system error -122, mkdir '/home/sudonix/nodebb/node_modules/@apidevtools/json-schema-ref-parser'
    sudonix@vps:~/nodebb$ 
    

  • Ran an npm cache clean and am now able to uninstall plugins (have temporarily removed nodebb-plugin-question-and-answer but now have this error on startup

    2021-09-22T05:51:58.210Z [4567/148235] - error: [emailer.send] Error: Sendmail exited with code 75
        at ChildProcess.<anonymous> (/home/sudonix/nodebb/node_modules/nodemailer/lib/sendmail-transport/index.js:142:27)
        at Object.onceWrapper (node:events:514:26)
        at ChildProcess.emit (node:events:394:28)
        at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
        at Process.callbackTrampoline (node:internal/async_ho
    
  • NodeBB

    Sounds like you are exceeding some limit on your system. Could be disk or memory. Is this shared hosting?


  • @baris No, it's my own VPS, but uses Webmin so I think you're right on the nail with quotas. Going to increase it now.

  • NodeBB

    ./nodebb build writes a lot of files especially language files so there is quite a bit of IO going on.


  • @baris I've removed the quotas, and rebuilt, but still the same error on startup

  • Global Moderator Plugin & Theme Dev

    Try ./nodebb build --series. Also try chowning the files to make sure permissions aren't the issue.

    Oh was the build successful this time?


  • @pitaj said in Forum down after restart:

    Try ./nodebb build --series. Also try chowning the files to make sure permissions aren't the issue.

    Oh was the build successful this time?

    Yes, it was. No issues with the build, but unable to start NodeBB because of the error I mentioned above.


  • @PitaJ this is the error message

    sudonix@vps:~/nodebb$ ./nodebb log
    
    Hit Ctrl-C to exit
    
    
       61 |   <div widget-area="contentbetween"><!-- BEGIN widgets.contentbetween -->{widgets.contentbetween.html}<!-- END widgets.contentbetween --></div>
          |                                                ^^^^^^^^^^^^^^^^^^^^^^ `widgets.contentbetween` could refer to the top-level value `widgets.contentbetween` or the `.widgets.contentbetween` property of the current element, so compiler must emit code for both cases
          | note: Migrate to modern syntax to avoid the ambiguity. This will become an error in the future.
    
    2021-09-22T05:51:58.210Z [4567/148235] - error: [emailer.send] Error: Sendmail exited with code 75
        at ChildProcess.<anonymous> (/home/sudonix/nodebb/node_modules/nodemailer/lib/sendmail-transport/index.js:142:27)
        at Object.onceWrapper (node:events:514:26)
        at ChildProcess.emit (node:events:394:28)
        at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
        at Process.callbackTrampoline (node:internal/async_ho
    
    

  • A list of active plugins in case this is of any use

    Active plugins:
            * nodebb-plugin-2factor@2.9.7 (installed, enabled)
            * nodebb-plugin-cards@0.2.3 (installed, enabled)
            * nodebb-plugin-composer-default@7.0.2 (installed, enabled)
            * nodebb-plugin-custom-pages@1.3.1 (installed, enabled)
            * nodebb-plugin-customize@2.0.2 (installed, enabled)
            * nodebb-plugin-dbsearch@5.0.3 (installed, enabled)
            * nodebb-plugin-desktop-notifications@0.3.3 (installed, enabled)
            * nodebb-plugin-embed@3.0.19 (installed, enabled)
            * nodebb-plugin-emoji@3.5.3 (installed, enabled)
            * nodebb-plugin-emoji-android@2.0.5 (installed, enabled)
            * nodebb-plugin-emoji-apple@2.0.5 (installed, enabled)
            * nodebb-plugin-featured-topics-extended@0.5.1 (installed, enabled)
            * nodebb-plugin-gdpr@1.0.12 (installed, enabled)
            * nodebb-plugin-gravatar@2.3.0 (installed, enabled)
            * nodebb-plugin-lightbox@0.0.3 (installed, enabled)
            * nodebb-plugin-markdown@8.14.3 (installed, enabled)
            * nodebb-plugin-mentions@2.13.11 (installed, enabled)
            * nodebb-plugin-night-mode@1.0.7 (installed, enabled)
            * nodebb-plugin-poll@2.0.1 (installed, enabled)
            * nodebb-plugin-recent-cards@2.0.19 (installed, enabled)
            * nodebb-plugin-reputation-rules@1.2.3 (installed, enabled)
            * nodebb-plugin-soundpack-default@2.0.0 (installed, enabled)
            * nodebb-plugin-spam-be-gone@0.7.9 (installed, enabled)
            * nodebb-plugin-sso-google@2.5.5 (installed, enabled)
            * nodebb-plugin-sso-twitter@2.5.11 (installed, enabled)
            * nodebb-plugin-twitter-netdata@1.0.0 (installed, enabled)
            * nodebb-plugin-user-level@0.4.3 (installed, enabled)
            * nodebb-rewards-essentials@0.1.5 (installed, enabled)
            * nodebb-theme-lavender@5.2.1 (installed, disabled)
            * nodebb-theme-persona@11.2.8 (installed, enabled)
            * nodebb-theme-slick@1.4.12 (installed, disabled)
            * nodebb-theme-vanilla@12.1.3 (installed, disabled)
            * nodebb-widget-board-stats@1.2.3 (installed, enabled)
            * nodebb-widget-essentials@5.0.4 (installed, enabled)
    

  • Unable to start no matter what I try. @baris @PitaJ any suggestions please ? This is a production forum.

    Thanks

  • NodeBB

    Did you check memory usage? Make sure you have enough free memory and setup swap.


  • @baris That's not the issue. I have 16gb RAM with 4 cpu cores. I also have another forum called https://hostrisk.com running on the same box with no issues.

    Screenshot_20210922-195851.jpg

  • Global Moderator Plugin & Theme Dev

    Try deleting node_modules and running npm i to reinstall. Try disabling all plugins. Try rebooting your server.


  • @pitaj tried all of this. Exact same error. Pretty frustrated right now by this - still not working.


  • All plugins are disabled, so it's not that.

  • Global Moderator Plugin & Theme Dev

    Try downgrading persona to 11.2.6


  • @pitaj Same issue. Installed with npm i nodebb-theme-persona@11.2.6 but no difference. Error still persists.

  • Global Moderator Plugin & Theme Dev

    Can you capture the output of ./nodebb dev just so we have a full log of the startup sequence?

  • Topic has been marked as solved  phenomlab phenomlab 

Suggested Topics

| |