Hi All,
try install it on VM with:
ubuntu 22.04 LTS
bench-frappe@vps-c6c53df8:~/bench-frappe/sites$ bench version
erpnext 15.70.2
frappe 15.74.1
payments 0.0.1
I try make new installation on new VM but get same error.
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: Sass: Breaking Change: Legacy JS API
<— Last few GCs —>
[11234:0x350edeb0] 155927 ms: Mark-Compact 1419.1 (1457.2) → 1417.1 (1459.2) MB, 9592.01 / 0.00 ms (average mu = 0.398, current mu = 0.010) allocation failure; scavenge might not succeed
[11234:0x350edeb0] 162951 ms: Mark-Compact 1421.2 (1459.2) → 1418.8 (1460.7) MB, 6908.60 / 0.00 ms (average mu = 0.249, current mu = 0.016) allocation failure; scavenge might not succeed
<— JS stacktrace —>
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xb8cf03 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
2: 0xf060d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
3: 0xf063b7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
4: 0x1118005 [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
5: 0x112fe88 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
6: 0x1105fa1 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
7: 0x1107135 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
8: 0x10e4786 v8::internal::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
9: 0x15402c6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
10: 0x1979ef6 [/home/bench-frappe/.nvm/versions/node/v20.19.4/bin/node]
Aborted (core dumped)
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
Error: Command failed: yarn build
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at run_build_command_for_apps (/home/bench-frappe/bench-frappe/apps/frappe/esbuild/esbuild.js:448:5)
at execute (/home/bench-frappe/bench-frappe/apps/frappe/esbuild/esbuild.js:125:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 134,
signal: null,
output: [ null, null, null ],
pid: 11209,
stdout: null,
stderr: null
}
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/bench-frappe/bench-frappe/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/bench-frappe/bench-frappe/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/bench-frappe/bench-frappe/env/lib/python3.10/site-packages/click/core.py”, line 1442, in call
return self.main(*args, **kwargs)
File “/home/bench-frappe/bench-frappe/env/lib/python3.10/site-packages/click/core.py”, line 1363, in main
rv = self.invoke(ctx)
File “/home/bench-frappe/bench-frappe/env/lib/python3.10/site-packages/click/core.py”, line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/bench-frappe/bench-frappe/env/lib/python3.10/site-packages/click/core.py”, line 1830, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/bench-frappe/bench-frappe/env/lib/python3.10/site-packages/click/core.py”, line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/bench-frappe/bench-frappe/env/lib/python3.10/site-packages/click/core.py”, line 794, in invoke
return callback(*args, **kwargs)
File “/home/bench-frappe/bench-frappe/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/home/bench-frappe/bench-frappe/apps/frappe/frappe/build.py”, line 255, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/home/bench-frappe/bench-frappe/apps/frappe/frappe/commands/init.py”, line 97, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command ‘yarn run production --apps insights --run-build-command’ returned non-zero exit status 1.
ERROR: bench build --app insights
subprocess.CalledProcessError: Command ‘bench build --app insights’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 181, in get_app
get_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 781, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 253, in install
install_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 948, in install_app
build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py”, line 404, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 184, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app insights