I've just installed a fresh NodeBB on a DigitalOcean box. My issue is when selecting a theme in Appearance > Themes and restarting NodeBB everything seems to work. However, the theme does not actually load. Homepage remains unchanged but everything seems to work on the frontend. When checking Plugins > [theme] to change options for the theme, however, I get a 404. So far i've gottan 404s on:
/assets/templates/admin/plugins/material.tpl
/admin/plugins/material
/api/admin/plugins/lavender
/assets/templates/admin/plugins/lavender.tpl
No errors occur on NodeBB startup. While in ./nodebb dev an error occurs after trying to load Plugins > [theme]
Error: Failed to lookup view "admin/plugins/lavender" in views directory "/opt/nodebb/build/public/templates"
at EventEmitter.render (/opt/nodebb/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/opt/nodebb/node_modules/express/lib/response.js:966:7)
at content (/opt/nodebb/src/middleware/render.js:70:15)
at /opt/nodebb/node_modules/async/lib/async.js:718:13
at async.forEachOf.async.eachOf (/opt/nodebb/node_modules/async/lib/async.js:233:13)
at _parallel (/opt/nodebb/node_modules/async/lib/async.js:717:9)
at Object.async.parallel (/opt/nodebb/node_modules/async/lib/async.js:731:9)
at async.waterfall.str (/opt/nodebb/src/middleware/render.js:65:12)
at fn (/opt/nodebb/node_modules/async/lib/async.js:746:34)
at /opt/nodebb/node_modules/async/lib/async.js:1213:16
at /opt/nodebb/node_modules/async/lib/async.js:166:37
at /opt/nodebb/node_modules/async/lib/async.js:706:43
at /opt/nodebb/node_modules/async/lib/async.js:167:37
at Immediate.<anonymous> (/opt/nodebb/node_modules/async/lib/async.js:1206:34)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
My setup is running Mongo and Redis and I followed the instructions from https://nodebb.readthedocs.io/en/latest/scaling/index.html so other than the server name and directories for nodebb in my nodebb.conf everything is copied and pasted.
Same issue occurs when running sudo ./nodebb start
and accessing the site with the port# with nginx stopped.
Any tips on locating the source of this issue would be greatly appreciated.