An error occurs when performing an upgrade

frappe@ecs-c983:~/frappe-bench$ bench update --no-backup --reset
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
来自 https://gitee.com/mirrors/frappe

  • branch version-15 → FETCH_HEAD
    Updating apps source…
    $ git fetch --depth=1 --no-tags upstream version-15
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    来自 https://gitee.com/mirrors/frappe
  • branch version-15 → FETCH_HEAD
    $ git reset --hard upstream/version-15
    HEAD 现在位于 82a52cc chore(release): Bumped to Version 15.9.0
    $ git reflog expire --all
    $ git gc --prune=all
    枚举对象中: 3374, 完成.
    对象计数中: 100% (3374/3374), 完成.
    压缩对象中: 100% (2674/2674), 完成.
    写入对象中: 100% (3374/3374), 完成.
    总共 3374(差异 585),复用 3374(差异 585),包复用 0
    $ find . -name “*.pyc” -delete
    $ git fetch --depth=1 --no-tags upstream version-15-beta
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    来自 https://gitee.com/phipsoft/hrms
  • branch version-15-beta → FETCH_HEAD
    $ git reset --hard upstream/version-15-beta
    HEAD 现在位于 04433d4 Merge pull request #959 from frappe/develop
    $ git reflog expire --all
    $ git gc --prune=all
    枚举对象中: 1327, 完成.
    对象计数中: 100% (1327/1327), 完成.
    压缩对象中: 100% (991/991), 完成.
    写入对象中: 100% (1327/1327), 完成.
    总共 1327(差异 273),复用 1327(差异 273),包复用 0
    $ find . -name “*.pyc” -delete
    $ git fetch --depth=1 --no-tags upstream main
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    来自 https://gitee.com/linuxx123/print_designer
  • branch main → FETCH_HEAD
    $ git reset --hard upstream/main
    HEAD 现在位于 44f504b fix(misc): don’t save format with missing table (#122)
    $ git reflog expire --all
    $ git gc --prune=all
    枚举对象中: 142, 完成.
    对象计数中: 100% (142/142), 完成.
    压缩对象中: 100% (113/113), 完成.
    写入对象中: 100% (142/142), 完成.
    总共 142(差异 24),复用 142(差异 24),包复用 0
    $ find . -name “*.pyc” -delete
    $ git fetch --depth=1 --no-tags upstream master
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    来自 https://gitee.com/yuzelin/erpnext_chinese
  • branch master → FETCH_HEAD
    $ git reset --hard upstream/master
    HEAD 现在位于 bf43a29 固定资产相关
    $ git reflog expire --all
    $ git gc --prune=all
    枚举对象中: 56, 完成.
    对象计数中: 100% (56/56), 完成.
    压缩对象中: 100% (38/38), 完成.
    写入对象中: 100% (56/56), 完成.
    总共 56(差异 6),复用 56(差异 6),包复用 0
    $ find . -name “*.pyc” -delete
    $ git fetch --depth=1 --no-tags upstream version-15
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    来自 CODING | 一站式软件研发管理平台
  • branch version-15 → FETCH_HEAD
    $ git reset --hard upstream/version-15
    HEAD 现在位于 8a356cb chore(release): Bumped to Version 15.10.1
    $ git reflog expire --all
    $ git gc --prune=all
    枚举对象中: 4916, 完成.
    对象计数中: 100% (4916/4916), 完成.
    压缩对象中: 100% (3392/3392), 完成.
    写入对象中: 100% (4916/4916), 完成.
    总共 4916(差异 1306),复用 4916(差异 1306),包复用 0
    $ find . -name “*.pyc” -delete
    $ git fetch --depth=1 --no-tags upstream develop
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    来自 https://gitee.com/phipsoft/payments
  • branch develop → FETCH_HEAD
    $ git reset --hard upstream/develop
    HEAD 现在位于 523b184 Merge pull request #54 from saullo/develop
    $ git reflog expire --all
    $ git gc --prune=all
    枚举对象中: 109, 完成.
    对象计数中: 100% (109/109), 完成.
    压缩对象中: 100% (84/84), 完成.
    写入对象中: 100% (109/109), 完成.
    总共 109(差异 19),复用 109(差异 19),包复用 0
    $ find . -name “*.pyc” -delete
    Setting up requirements…
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
    Installing 6 applications…
    Installing frappe
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe
    $ yarn install
    yarn install v1.22.19
    warning …/…/…/package.json: No license field
    [1/5] Validating package.json…
    [2/5] Resolving packages…
    success Already up-to-date.
    Done in 0.39s.
    Installing hrms
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/hrms
    $ yarn install
    yarn install v1.22.19
    warning …/…/…/package.json: No license field
    [1/4] Resolving packages…
    success Already up-to-date.
    Done in 0.07s.
    Installing print_designer
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/print_designer
    $ yarn install
    yarn install v1.22.19
    warning …/…/…/package.json: No license field
    [1/4] Resolving packages…
    success Already up-to-date.
    Done in 0.16s.
    Installing erpnext_chinese
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/erpnext_chinese
    Installing erpnext
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/erpnext
    $ yarn install
    yarn install v1.22.19
    warning …/…/…/package.json: No license field
    [1/4] Resolving packages…
    success Already up-to-date.
    Done in 0.06s.
    Installing payments
    $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/payments
    Patching sites…
    Migrating erpnext
    Updating DocTypes for frappe : [========================================] 100%
    Updating DocTypes for payments : [========================================] 100%
    Updating DocTypes for erpnext : [========================================] 100%
    Updating DocTypes for hrms : [========================================] 100%
    Updating DocTypes for print_designer: [========================================] 100%
    Updating Dashboard for frappe
    Updating Dashboard for payments
    Updating Dashboard for erpnext
    Updating Dashboard for erpnext_chinese
    Updating Dashboard for hrms
    Updating Dashboard for print_designer
    Updating customizations for Address
    Updating customizations for Contact
    Queued rebuilding of search index for erpnext

Building assets…
Assets for Commit 82a52cc97372b92fe9510ef6ad363be90f2b5472 don’t exist
:heavy_check_mark: Application Assets Linked

yarn run v1.22.19
warning …/…/…/package.json: No license field
$ node esbuild --production --run-build-command
ERROR There were some problems during build

Error: The service was stopped
at /home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1356:25
at /home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:678:9
at Socket.afterClose (/home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:656:7)
at Socket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Terminated
error Command failed with exit code 143.
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/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.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.10/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.10/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.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.10/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 72, in build
bundle(
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 97, in popen
raise subprocess.CalledProcessError(return
, command)
subprocess.CalledProcessError: Command ‘yarn run production --run-build-command’ returned non-zero exit status 143.

Try bench setup requirements and then rerun the bench update --no-backup --reset

测试了问题依旧 Tested and the problem persists






Seems like something in the packages.json file is not matching. You can try
yarn cache clean

试过了问题依旧 都试过了 问题依旧