The entire error below. I've been searching for some clues, but coming up empty handed and hoping someone can help. This is a fresh install on a debian 10 server.
2020-04-17T16:33:02.636Z [26376] - error: [build] admin control panel styles build failed 2020-04-17T16:33:02.639Z [26376] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error: Error: socket hang up {"type":"File","filename":"/var/www/nodebb/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]} ==================================================================================================================================== 2020-04-17T16:33:02.647Z [26376] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error: Error: socket hang up {"type":"File","filename":"/var/www/nodebb/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]} (node:26376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:26376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.Wrong path on startup: no such file or directory, scandir '/opt/app-root/src/build/public/language'
-
I've install NodeBB on OpenShift using the Node 4 S2I process. This worked fine so far, but after configuring the application NodeBB can't start because of a wrong path:
$ ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb restart" to restart NodeBB 3/4 15:41:51 [28] - info: Time: Mon Apr 03 2017 15:41:51 GMT+0000 (UTC) 3/4 15:41:51 [28] - info: Initializing NodeBB v1.4.5 3/4 15:41:56 [28] - warn: [cache-buster] could not read cache buster: ENOENT: no such file or directory, open '/opt/app-root/src/build/cache-buster' 3/4 15:41:58 [28] - info: [socket.io] Restricting access to origin: http://localhost:* 3/4 15:41:58 [28] - error: [plugins] NodeBB encountered a problem while loading plugins ENOENT: no such file or directory, scandir '/opt/app-root/src/build/public/language' 3/4 15:41:58 [28] - error: Error: ENOENT: no such file or directory, scandir '/opt/app-root/src/build/public/language' at Error (native)
The files are available under
/opt/app-root/src/public/language
, the path from the error message above withoutbuild
.Does anyone know what I can do here?
-
@tobru run
./nodebb build
then try again -
@PitaJ said in Wrong path on startup: no such file or directory, scandir '/opt/app-root/src/build/public/language':
./nodebb build
Thanks, that helped. I documented the steps for S2I here: https://github.com/appuio/nodebb-s2i