Rebuild error

Technical Support
  • 2018-06-04T15:52:25.066Z [21699] - error: /service-worker-d3b8b71a01031300e2681e9938384e7f02ce03444a3735ed51ddf8e75571c8b5.js
    Error: ENOENT: no such file or directory, open '/root/nodebb/build/public/templates/404.tpl'
    2018-06-04T15:52:25.154Z [21699] - info: [build] plugin static dirs build completed in 9.536sec
    Error: Failed to lookup view "500" in views directory "/root/nodebb/build/public/templates"
    at Function.render (/root/nodebb/node_modules/express/lib/application.js:580:17)
    at ServerResponse.render (/root/nodebb/node_modules/express/lib/response.js:1008:7)
    at content (/root/nodebb/src/middleware/render.js:82:15)
    at /root/nodebb/node_modules/async/dist/async.js:3866:24
    at replenish (/root/nodebb/node_modules/async/dist/async.js:998:17)
    at /root/nodebb/node_modules/async/dist/async.js:1002:9
    at eachOfLimit (/root/nodebb/node_modules/async/dist/async.js:1027:24)
    at /root/nodebb/node_modules/async/dist/async.js:1032:16
    at eachOf (/root/nodebb/node_modules/async/dist/async.js:1103:5)
    at _parallel (/root/nodebb/node_modules/async/dist/async.js:3865:5)
    at Object.parallelLimit [as parallel] (/root/nodebb/node_modules/async/dist/async.js:3948:5)
    at async.waterfall.str (/root/nodebb/src/middleware/render.js:77:12)
    at nextTask (/root/nodebb/node_modules/async/dist/async.js:5310:14)
    at next (/root/nodebb/node_modules/async/dist/async.js:5317:9)
    at /root/nodebb/node_modules/async/dist/async.js:958:16
    at /root/nodebb/node_modules/async/dist/async.js:473:16

    When ever i rebuild i get the error as stated above

  • The error message says where to start looking at first:
    no such file or directory, open '/root/nodebb/build/public/templates/404.tpl'

    The file is either not there (I doubt that) or owner/permissions are not correctly set. You should check that!

  • I have followed the guide as per the docs.nodebb.org on a vultr server , did it twice still getting this issue

  • This is when you rebuild from the ACP, right? What if you just rebuild with ./nodebb build


Suggested Topics