[new installation] im getting an error when trying to start nodebb.service
-
So im following the nodebb installation for ubuntu step by step and when i reached to the step where you start the nodebb service, i first ran
sudo service nodebb start
and received no errors whatsoever. But when i ransudo service nodebb status
This is what i got:
Any idea on what's going on?
-
It's works now ? Have you tried visit your url?
-
@a632079 said in [new installation] im getting an error when trying to start nodebb.service:
It's works now ? Have you tried visit your url?
I cant at the moment since I didn't add the nginx config file for nodebb (which could be a bit challenging since im not that experienced with such things)
I will give it a try though
-
@apple-pro cd to your nodebb directory and try
./nodebb log
If you did't see any errors be throwed, you just have already started it . -
@a632079 said in [new installation] im getting an error when trying to start nodebb.service:
It's works now ? Have you tried visit your url?
Ok when i visit the url, i get the 502 bad gateway error which shows that nodebb is indeed not running.
I think there's something wrong in my nodebb.service file, can you please send me what should be in there
like this
-
@a632079 said in [new installation] im getting an error when trying to start nodebb.service:
@apple-pro cd to your nodebb directory and try
./nodebb log
If you did't see any errors be throwed, you just have already started it .tail: cannot open './logs/output.log' for reading: No such file or directory
-
Ok so i bypassed systemd and just ran ./nodebb start and the forum worked..... But as soon as I restarted nodebb from the admin dashboard, i kept getting this when visiting the forum:
Error: Failed to lookup view "500" in views directory "/var/www/vexforum.gq/build/public/templates"
at EventEmitter.render (/var/www/vexforum.gq/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/var/www/vexforum.gq/node_modules/express/lib/response.js:971:7)
at content (/var/www/vexforum.gq/src/middleware/render.js:82:15)
at /var/www/vexforum.gq/node_modules/async/dist/async.js:3830:24
at replenish (/var/www/vexforum.gq/node_modules/async/dist/async.js:946:17)
at /var/www/vexforum.gq/node_modules/async/dist/async.js:950:9
at eachOfLimit (/var/www/vexforum.gq/node_modules/async/dist/async.js:975:24)
at /var/www/vexforum.gq/node_modules/async/dist/async.js:980:16
at eachOf (/var/www/vexforum.gq/node_modules/async/dist/async.js:1051:5)
at _parallel (/var/www/vexforum.gq/node_modules/async/dist/async.js:3829:5)
at Object.parallelLimit [as parallel] (/var/www/vexforum.gq/node_modules/async/dist/async.js:3912:5)
at async.waterfall.str (/var/www/vexforum.gq/src/middleware/render.js:77:12)
at nextTask (/var/www/vexforum.gq/node_modules/async/dist/async.js:5273:14)
at next (/var/www/vexforum.gq/node_modules/async/dist/async.js:5280:9)
at /var/www/vexforum.gq/node_modules/async/dist/async.js:906:16
at /var/www/vexforum.gq/node_modules/async/dist/async.js:421:16 -
Have you tried run
./nodebb setup
or./nodebb build
? It seems that it did't build the static files.