NodeBB shuts down
Unsolved
Technical Support
-
Everything was working fine, suddenly out of the blue, my forum throws a 502 error.
when I start NodeBB I get this
Starting NodeBB with logging output Hit Ctrl-C to exit The NodeBB process will continue to run in the background Use "./nodebb stop" to stop the NodeBB server Clustering enabled: Spinning up 1 process(es). 2021-07-05T12:25:04.278Z [4567/3494] - info: Initializing NodeBB v1.17.1 https://example.com 2021-07-05T12:25:05.952Z [4567/3494] - warn: [outdated] nodebb-plugin-google-analytics installed v0.6.0, package.json requires ^0.5.11 2021-07-05T12:25:05.954Z [4567/3494] - warn: [outdated] nodebb-plugin-ns-embed installed v5.0.0, package.json requires ^4.0.0 2021-07-05T12:25:05.961Z [4567/3494] - error: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: 2021-07-05T12:25:05.961Z [4567/3494] - error: ./nodebb upgrade [cluster] Child Process (3494) has exited (code: 0, signal: null) NodeBB v1.17.1 Copyright (C) 2013-2014 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 1 process(es). 2021-07-05T12:25:48.826Z [4567/3562] - info: Initializing NodeBB v1.17.1 https://example.com 2021-07-05T12:25:50.684Z [4567/3562] - warn: [outdated] nodebb-plugin-google-analytics installed v0.6.0, package.json requires ^0.5.11 2021-07-05T12:25:50.686Z [4567/3562] - warn: [outdated] nodebb-plugin-ns-embed installed v5.0.0, package.json requires ^4.0.0 2021-07-05T12:25:50.699Z [4567/3562] - error: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: 2021-07-05T12:25:50.699Z [4567/3562] - error: ./nodebb upgrade [cluster] Child Process (3562) has exited (code: 0, signal: null)
I am running,
version: 1.17.1 Node ver: v14.16.0 git hash: 902da5402918dbe99c5f298ce769b0b1994739b5 database: mongo version: 4.0.13 engine: wiredTiger
When getting the
journalctl
of NodeBB PID, I getJul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: events.js:292 Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: throw er; // Unhandled 'error' event Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: ^ Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: Error: EACCES: permission denied, open '/var/www/nodebb/logs/output.log' Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: Emitted 'error' event on LogStream instance at: Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: at WriteStream.<anonymous> (/var/www/nodebb/node_modules/logrotate-stream/index.js:37:48) Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: at WriteStream.emit (events.js:315:20) Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: at /var/www/nodebb/node_modules/graceful-fs/graceful-fs.js:322:14 Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: at /var/www/nodebb/node_modules/graceful-fs/graceful-fs.js:352:16 Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: at FSReqCallback.oncomplete (fs.js:171:23) { Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: errno: -13, Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: code: 'EACCES', Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: syscall: 'open', Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: path: '/var/www/nodebb/logs/output.log' Jul 05 14:51:11 vmi311828.contaboserver.net nodebb[4361]: }
Any ideas?
-
-
-
I'm not sure how you managed to install packages without modifying package.json, maybe some kind of privilege issue, but you need to modify package.json so it has the versions specified in the error message.
Maybe your installed NodeBB as root or something? Try changing the permissions of your install with chown.
Copyright © 2024 NodeBB | Contributors