NodeBB won't start anymore after installing theme.
-
NodeBB v1.1.2 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). 28/9 13:51 [1653] - verbose: * using configuration stored in: /root/nodebb/config.json 28/9 13:51 [1653] - info: Time: Wed Sep 28 2016 13:51:33 GMT-0400 (EDT) 28/9 13:51 [1653] - info: Initializing NodeBB v1.1.2 28/9 13:51 [1653] - verbose: * using mongo store at 127.0.0.1:27017 28/9 13:51 [1653] - verbose: * using themes stored in: /root/nodebb/node_modules 28/9 13:51 [1653] - warn: You have no mongo password setup! 28/9 13:51 [1653] - info: [database] Checking database indices. 28/9 13:51 [1653] - verbose: Checking dependencies for outdated modules 28/9 13:51 [1653] - verbose: [notifications.init] Registering jobs. 28/9 13:51 [1653] - error: SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 28/9 13:51 [1653] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 28/9 13:51 [1653] - info: [app] Database connection closed. 28/9 13:51 [1653] - info: [app] Web server closed to connections. 28/9 13:51 [1653] - info: [app] Shutdown complete. [cluster] Child Process (1653) has exited (code: 1, signal: null) [cluster] Spinning up another process... 28/9 13:51 [1666] - verbose: * using configuration stored in: /root/nodebb/config.json 28/9 13:51 [1666] - info: Time: Wed Sep 28 2016 13:51:37 GMT-0400 (EDT) 28/9 13:51 [1666] - info: Initializing NodeBB v1.1.2 28/9 13:51 [1666] - verbose: * using mongo store at 127.0.0.1:27017 28/9 13:51 [1666] - verbose: * using themes stored in: /root/nodebb/node_modules 28/9 13:51 [1666] - warn: You have no mongo password setup! 28/9 13:51 [1666] - info: [database] Checking database indices. 28/9 13:51 [1666] - verbose: Checking dependencies for outdated modules 28/9 13:51 [1666] - verbose: [notifications.init] Registering jobs. 28/9 13:51 [1666] - error: SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 28/9 13:51 [1666] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 28/9 13:51 [1666] - info: [app] Database connection closed. 28/9 13:51 [1666] - info: [app] Web server closed to connections. 28/9 13:51 [1666] - info: [app] Shutdown complete. [cluster] Child Process (1666) has exited (code: 1, signal: null) [cluster] Spinning up another process... 28/9 13:51 [1679] - verbose: * using configuration stored in: /root/nodebb/config.json 28/9 13:51 [1679] - info: Time: Wed Sep 28 2016 13:51:40 GMT-0400 (EDT) 28/9 13:51 [1679] - info: Initializing NodeBB v1.1.2 28/9 13:51 [1679] - verbose: * using mongo store at 127.0.0.1:27017 28/9 13:51 [1679] - verbose: * using themes stored in: /root/nodebb/node_modules 28/9 13:51 [1679] - warn: You have no mongo password setup! 28/9 13:51 [1679] - info: [database] Checking database indices. 28/9 13:51 [1679] - verbose: Checking dependencies for outdated modules 28/9 13:51 [1679] - verbose: [notifications.init] Registering jobs. 28/9 13:51 [1679] - error: SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 28/9 13:51 [1679] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 28/9 13:51 [1679] - info: [app] Database connection closed. 28/9 13:51 [1679] - info: [app] Web server closed to connections. 28/9 13:51 [1679] - info: [app] Shutdown complete. [cluster] Child Process (1679) has exited (code: 1, signal: null) [cluster] Spinning up another process... 28/9 13:51 [1692] - verbose: * using configuration stored in: /root/nodebb/config.json 28/9 13:51 [1692] - info: Time: Wed Sep 28 2016 13:51:43 GMT-0400 (EDT) 28/9 13:51 [1692] - info: Initializing NodeBB v1.1.2 28/9 13:51 [1692] - verbose: * using mongo store at 127.0.0.1:27017 28/9 13:51 [1692] - verbose: * using themes stored in: /root/nodebb/node_modules 28/9 13:51 [1692] - warn: You have no mongo password setup! 28/9 13:51 [1692] - info: [database] Checking database indices. 28/9 13:51 [1692] - verbose: Checking dependencies for outdated modules 28/9 13:51 [1692] - verbose: [notifications.init] Registering jobs. 28/9 13:51 [1692] - error: SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) SyntaxError: Unexpected string at Object.parse (native) at /root/nodebb/src/meta/themes.js:45:28 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 28/9 13:51 [1692] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 28/9 13:51 [1692] - info: [app] Database connection closed. 28/9 13:51 [1692] - info: [app] Web server closed to connections. 28/9 13:51 [1692] - info: [app] Shutdown complete. 3 restarts in 10 seconds, most likely an error on startup. Halting.
-
@MJ
theme.json
in one of your themes is invalid, I think. Try using http://jsonlint.com/ to check them. -
@MJ do you have any themes besides persona installed? Try reinstalling persona, first, with
npm remove nodebb-theme-persona
andnpm install nodebb-theme-persona
. If that doesn't work, try deleting thenode_modules
directory and reinstalling everything withnpm install
.If that doesn't work, try copying the contents of
node_modules/nodebb-plugin-persona/theme.json
into that JSON validator I linked and making sure it's all valid. -
@MJ yep. That's invalid JSON. It's missing a comma after the highlighted line.
-
@MJ probably just
npm remove nodebb-theme-hexadecimal
-
Hi all, today I just installed a cloud version and I can't change files myself. Faced with the same problem. I've changed the theme back to Persona and now can open no frontend nigher backend. It forwards me to the nodebb website and shows this message:
Service Unavailable
We couldn't reach the website you were looking to access. It may be offline temporarily, please try again later.How can I deal with it? Thanks