It seems that the Docker was not able to execute all parallel builds.
The solution I found is:
Run the setup with option: ./nodebb setup --skip-builds Manually run the build in serial mode: ./nodebb build --seriesThat solved the issue.
Yesterday NodeBB installation was successful, today i have this error:
> [email protected] install /home/forum-y/webapps/nodebb/node_modules/benchpressjs
> cd rust/benchpress-rs && npm install
Error installing dependencies!:safer-buffer: http fetch GET 200 https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz 28804ms
message: Command failed: npm install --production
stdout: null
stderr: null
/home/forum-y/webapps/nodebb/src/cli/package-install.js:54
throw e;
^
Error: Command failed: npm install --production
at checkExecSyncError (child_process.js:596:11)
at Object.execSync (child_process.js:633:13)
at Object.installAll (/home/forum-y/webapps/nodebb/src/cli/package-install.js:45:9)
at Object.<anonymous> (/home/forum-y/webapps/nodebb/src/cli/index.js:60:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
When again trying to reinstall NodeBB from the begining i got similar error
> [email protected] install /home/forum-y/webapps/nodebb/node_modules/benchpressjs
> cd rust/benchpress-rs && npm install
Error installing dependencies!
message: Command failed: npm install --production
stdout: null
stderr: null
/home/forum-y/webapps/nodebb/src/cli/package-install.js:54
throw e;
^
Error: Command failed: npm install --production
at checkExecSyncError (child_process.js:596:11)
at Object.execSync (child_process.js:633:13)
at Object.installAll (/home/forum-y/webapps/nodebb/src/cli/package-install.js:45:9)
at Object.<anonymous> (/home/forum-y/webapps/nodebb/src/cli/index.js:60:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
> [email protected] install /home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs
> neon build >> build.log 2>&1 || exit 0
npm notice created a lockfile as package-lock.json. You should commit this file.
added 87 packages in 7.803s
Don't know this might be important: cat ./nodebb/node_modules/benchpressjs/rust/benchpress-rs/build.log
neon ERR! Rust is not installed or rustc is not in your path.
Error: Rust is not installed or rustc is not in your path.
at Function.BuildSettings.current (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/build-settings.js:30:23)
at Project.<anonymous> (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/project.js:59:61)
at step (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/project.js:32:23)
at Object.next (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/project.js:13:53)
at /home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/project.js:7:71
at new Promise (<anonymous>)
at __awaiter (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/project.js:3:12)
at Project.build (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/project.js:53:16)
at Object.<anonymous> (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/ops/neon_build.js:46:50)
at step (/home/forum-y/webapps/nodebb/node_modules/benchpressjs/rust/benchpress-rs/node_modules/neon-cli/lib/ops/neon_build.js:32:23)
And installing again.
Error installing dependencies!-package-json:source-map: sill refresh-package-json /home/forum-y/webapps/nodebb/node_modules/lru-cache
And again.
Error installing dependencies!-package-json:ecc-jsbn: sill refresh-package-json /home/forum-y/webapps/nodebb/node_modules/prr
Now NodeBB shows:
2019-06-10T14:04:19.866Z [/home/forum-y/webapps/nodebb.sock/13638] - error: Your NodeBB schema is out-of-date. Please run the following command to bring your dataset up to spec:
2019-06-10T14:04:19.866Z [/home/forum-y/webapps/nodebb.sock/13638] - error: ./nodebb upgrade
[cluster] Child Process (13638) has exited (code: 0, signal: null)
After ./nodebb upgrade
2019-06-10T14:07:30.138Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] Building in parallel mode
2019-06-10T14:07:30.138Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] plugin static dirs build started
2019-06-10T14:07:30.140Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] requirejs modules build started
2019-06-10T14:07:30.141Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] client js bundle build started
2019-06-10T14:07:30.142Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] admin js bundle build started
2019-06-10T14:07:30.142Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] client side styles build started
2019-06-10T14:07:30.143Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] admin control panel styles build started
2019-06-10T14:07:30.143Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] templates build started
2019-06-10T14:07:30.143Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] languages build started
2019-06-10T14:07:30.143Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] sounds build started
2019-06-10T14:07:30.151Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] plugin static dirs build completed in 0.013sec
2019-06-10T14:07:30.244Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] sounds build completed in 0.101sec
2019-06-10T14:07:38.864Z [/home/forum-y/webapps/nodebb.sock/13652] - info: [build] languages build completed in 8.721sec
Killed
Now nodebb throws error:
2019-06-10T13:29:57.112Z [/home/forum-y/webapps/nodebb.sock/8789] - error: /categories
Failed to lookup view "categories" in views directory "/home/forum-y/webapps/nodebb/build/public/templates" {"view":{"defaultEngine":"tpl","ext":".tpl","name":"categories","root":"/home/forum-y/webapps/nodebb/build/public/templates"},"stack":"Error: Failed to lookup view \"categories\" in views directory \"/home/forum-y/webapps/nodebb/build/public/templates\"\n at Function.render (/home/forum-y/webapps/nodebb/node_modules/express/lib/application.js:580:17)\n at ServerResponse.render (/home/forum-y/webapps/nodebb/node_modules/express/lib/response.js:1012:7)\n at content (/home/forum-y/webapps/nodebb/src/middleware/render.js:84:15)\n at /home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:3880:24\n at replenish (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:1011:17)\n at /home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:1016:9\n at eachOfLimit (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:1041:24)\n at /home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:1046:16\n at eachOf (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:1117:5)\n at _parallel (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:3879:5)"}
Error: Failed to lookup view "header" in views directory "/home/forum-y/webapps/nodebb/build/public/templates"
at Function.render (/home/forum-y/webapps/nodebb/node_modules/express/lib/application.js:580:17)
at /home/forum-y/webapps/nodebb/src/middleware/header.js:222:13
at nextTask (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:5324:14)
at next (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:5331:9)
at /home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:969:16
at /home/forum-y/webapps/nodebb/src/middleware/header.js:214:4
at /home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:473:16
at next (/home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:5329:29)
at /home/forum-y/webapps/nodebb/node_modules/async/dist/async.js:969:16
at done (/home/forum-y/webapps/nodebb/src/plugins/hooks.js:95:5)
I just wonder how yesterday everything was working well and now i cant install NodeBB. I'm stuck and don't know how to go further.