Forum down after restart
-
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 removednodebb-plugin-question-and-answer
but now have this error on startup2021-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
-
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: * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled)
-
@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.
-
Try deleting node_modules and running
npm i
to reinstall. Try disabling all plugins. Try rebooting your server. -
Try downgrading persona to 11.2.6
-
@pitaj Same issue. Installed with
npm i [email protected]
but no difference. Error still persists. -
Can you capture the output of
./nodebb dev
just so we have a full log of the startup sequence?