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!