Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error updating via bench update #369

Open
2 of 6 tasks
MrFastDie opened this issue Sep 24, 2024 · 0 comments
Open
2 of 6 tasks

Error updating via bench update #369

MrFastDie opened this issue Sep 24, 2024 · 0 comments

Comments

@MrFastDie
Copy link

I already opened this over at bench but it might be a problem with CRM.

Issue: Bug report

Please make sure your issue is reproducible on the latest bench version. The currently supported branches are:

  • PyPI latest
  • master (minor bug fixes)
  • v5.x (Merged with develop on every release)
  • develop (all updates)

Do the checklist before filing an issue:

  • Can you replicate the issue on the supported bench versions?
  • Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome

Describe the bug 📉
When I am trying to update my erpnext setup the vite build fails leaving me with a broken install of erpnext.

To Reproduce 📃
Having these packages installed:

frappe   15.41.0   version-15
erpnext  15.36.1   version-15
hrms     15.29.0   version-15
wiki     2.0.0     master
crm      2.0.0-dev develop
helpdesk 0.10.0    develop

Expected behavior 📈
Expected is to be able to update with bench update

Screenshots 🔮
If applicable, add screenshots to help explain your problem.

OS (please complete the following information): 🌀

  • Linux: debian:Linux erpnext 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
  • macOS: version
  • Windows version
  • Others? haros:distro:version

Version Information

Can be found out by running bench version in your respective bench folder.

crm 2.0.0-dev
erpnext 15.36.1
frappe 15.41.0
helpdesk 0.10.0
hrms 15.29.0
wiki 2.0.0

Additional context 📄

 DONE  Total Build Time: 36.291s


Running build command for crm
$ cd frontend && yarn build
$ vite build --base=/assets/crm/frontend/ && yarn copy-html-entry
vite v4.5.3 building for production...
transforming (45) ../node_modules/frappe-ui/src/components/Breadcrumbs.vueBrowserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
transforming (168) ../node_modules/socket.io-parser/build/esm/index.js
Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/crm/frontend/src/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
transforming (687) ../node_modules/@twilio/voice-sdk/es5/twilio/deferred.js
Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/crm/frontend/src/index.css?used&inline didn't resolve at build time, it will remain unchanged to be resolved at runtime
✓ 785 modules transformed.
rendering chunks (83)...Killed
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:890:11)
    at execSync (node:child_process:962:15)
    at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:448:5)
    at execute (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:125:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 137,
  signal: null,
  output: [ null, null, null ],
  pid: 576319,
  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 "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
    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 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1688, 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 1688, 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 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 783, 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 254, 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 --run-build-command' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant