Issue in Onprimise Setup of Frappe HelpDesk

Hi Team,

I’m setting up Frappe Cloud locally and trying to build the Helpdesk app.

I get the following error in the output:

Command: bench get-app file:///home/frappe/context/apps/helpdesk
command Output:
Getting helpdesk
$ git clone file:///home/frappe/context/apps/helpdesk --depth 1 --origin upstream
Cloning into ‘helpdesk’…
Ignoring dependencies of file:///home/frappe/context/apps/helpdesk. To install dependencies use --resolve-deps
Installing helpdesk
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/helpdesk
$ yarn install --check-files
yarn install v1.22.22
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
warning “workspace-aggregator-0758a22f-fb81-4260-b217-4550055f2c41 > helpdesk-ui > @tiptap/core@2.26.1” has unmet peer dependency “@tiptap/pm@^2.7.0”.
warning “workspace-aggregator-0758a22f-fb81-4260-b217-4550055f2c41 > helpdesk-ui > vite-plugin-pwa@0.20.5” has unmet peer dependency “workbox-build@^7.1.0”.
warning “workspace-aggregator-0758a22f-fb81-4260-b217-4550055f2c41 > helpdesk-ui > vite-plugin-pwa@0.20.5” has unmet peer dependency “workbox-window@^7.1.0”.
[4/4] Building fresh packages…
success Saved lockfile.
$ cd desk && yarn install
yarn install v1.22.22
[1/4] Resolving packages…
success Already up-to-date.
Done in 0.61s.
Done in 24.32s.
$ bench build --app helpdesk
Linking /home/frappe/frappe-bench/apps/frappe/frappe/public to ./assets/frappe
/home/frappe/frappe-bench/apps/frappe/node_modules to ./assets/frappe/node_modules
/home/frappe/frappe-bench/apps/helpdesk/helpdesk/public to ./assets/helpdesk
/home/frappe/frappe-bench/apps/helpdesk/node_modules to ./assets/helpdesk/node_modules
Application Assets Linked

yarn run v1.22.22
$ node esbuild --production --apps helpdesk --run-build-command
File Size

DONE Total Build Time: 324.396ms

Running build command for helpdesk
$ cd desk && yarn build
$ vite build
[unplugin-vue-components] component “Autocomplete”(/home/frappe/frappe-bench/apps/helpdesk/desk/src/components/frappe-ui/Autocomplete.vue) has naming conflicts with other components, ignored.
[unplugin-vue-components] component “Autocomplete”(/home/frappe/frappe-bench/apps/helpdesk/desk/src/components/frappe-ui/Autocomplete.vue) has naming conflicts with other components, ignored.
vite v4.5.14 building for production…
transforming…

Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/helpdesk/desk/src/index.css didn’t resolve at build time, it will remain unchanged to be resolved at runtime

Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/helpdesk/desk/src/index.css?used&inline didn’t resolve at build time, it will remain unchanged to be resolved at runtime
✓ 2735 modules transformed.
Export “ImageExtension” of module “…/node_modules/frappe-ui/src/components/TextEditor/extensions/image/image-extension.ts” was reexported through module “…/node_modules/frappe-ui/src/components/TextEditor/extensions/image/index.ts” while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in “…/node_modules/frappe-ui/src/components/TextEditor/TextEditor.vue?vue&type=script&setup=true&lang.ts” to point directly to the exporting module or reconfigure “output.manualChunks” to ensure these modules end up in the same chunk.
rendering chunks…
Killed
error Command failed with exit code 137.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 137.
info Visit yarn run | Yarn for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:885:11)
at execSync (node:child_process:957:15)
at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:453:5)
at execute (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:125:23) {
status: 137,
signal: null,
output: [ null, null, null ],
pid: 147,
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 “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1442, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1363, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1830, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 794, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/home/frappe/frappe-bench/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/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 97, in popen
raise subprocess.CalledProcessError(return
, command)
subprocess.CalledProcessError: Command ‘yarn run production --apps helpdesk --run-build-command’ returned non-zero exit status 1.
ERROR: bench build --app helpdesk
subprocess.CalledProcessError: Command ‘bench build --app helpdesk’ returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 7, in
sys.exit(cli())
^^^^^
File “/home/frappe/.local/lib/python3.11/site-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/home/frappe/.local/lib/python3.11/site-packages/bench/commands/make.py”, line 181, in get_app
get_app(
File “/home/frappe/.local/lib/python3.11/site-packages/bench/app.py”, line 778, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.local/lib/python3.11/site-packages/bench/app.py”, line 253, in install
install_app(
File “/home/frappe/.local/lib/python3.11/site-packages/bench/app.py”, line 940, in install_app
build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/bench.py”, line 384, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/init.py”, line 181, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app helpdesk

INFO: A newer version of bench is available: 5.25.1 → 5.25.11
process “/bin/sh -c bench get-app file:///home/frappe/context/apps/helpdesk #stage-apps-helpdesk” did not complete successfully: exit code: 1

[stage-0 26/29] RUN --mount=type=cache,sharing=locked,target=/home/frappe/.cache,uid=1000,gid=1000 --mount=type=bind,source=apps/helpdesk,target=/home/frappe/context/apps/helpdesk bench get-app file:///home/frappe/context/apps/helpdesk #stage-apps-helpdesk:
install_app(
File “/home/frappe/.local/lib/python3.11/site-packages/bench/app.py”, line 940, in install_app
build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/bench.py”, line 384, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/init.py”, line 181, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app helpdesk
132.0
INFO: A newer version of bench is available: 5.25.1 → 5.25.11

failed to build: failed to solve: process “/bin/sh -c bench get-app file:///home/frappe/context/apps/helpdesk #stage-apps-helpdesk” did not complete successfully: exit code: 1

Could anyone please guide what might be missing or misconfigured in the Helpdesk app build setup?

Thanks in advance for your help.

Sanket