Helpdesk setup with ERPnext / 404 page not found

Hello,

I’m trying to setup Helpdesk in conjunction with ERPNext but I’m not sure I understand how it should be setup. I installed the app but when I go to Helpdesk in ERPNext and click go to site I get a 404 page not found instead of Helpdesk. Did I need to do something special during the install to get the Helpdesk url setup?

Thanks,

1 Like

same here. I have been able to access it and I always forget the URL. I am watching to see if someone responds

Migrate the site

bench --site [sitename] clear-cache
bench --site [sitename] clear-website-cache
bench --site [sitename] migrate

if not works then

bench update --patch
bench build

Thank You!

I tried to migrate the site and did a bench update and bench build but still have the 404 error.

Although the bench build failed the error below but I dont really understand the error.

Running build command for helpdesk
$ cd desk && yarn build
$ vite build --base=/assets/helpdesk/desk/ && yarn copy-html-entry
vite v4.1.4 building for production...
transforming (240) node_modules/socket.io-client/build/esm/manager.js
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
transforming (401) node_modules/frappe-ui/node_modules/@headlessui/vue/dist/hooks/use-text-value.jsKilled
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed: yarn build
    at checkExecSyncError (node:child_process:828:11)
    at execSync (node:child_process:899:15)
    at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5)
    at /home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 137,
  signal: null,
  output: [ null, null, null ],
  pid: 1646,
  stdout: null,
  stderr: null
}
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: Command failed: yarn build
    at checkExecSyncError (node:child_process:828:11)
    at execSync (node:child_process:899:15)
    at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5)
    at /home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 137,
  signal: null,
  output: [ null, null, null ],
  pid: 1646,
  stdout: null,
  stderr: null
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run 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/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 86, in build
    bundle(mode, apps=apps, hard_link=hard_link, verbose=verbose, skip_frappe=skip_frappe)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/build.py", line 257, 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 98, in popen
    raise subprocess.CalledProcessError(return_, command)
subprocess.CalledProcessError: Command 'yarn run production --run-build-command' returned non-zero exit status 1.

Thanks for the help!

I solved my issue by adding a swap file to the server. It seams that I was running out of memory when doing a bench build.

My helpdesk is installed in frappe cloud. What should I do in this case?

Can you help me like how you added swap file to the server.
because me too facing same error.