[Version 11] Build breaks due to Yarn

Hi antiquark100

I am using Centos 7.
So need to run all commands as user frappe?

KR
Fasil

Yes, not as root

Hi All,

Unfortunately i could not resolve my problem.

This is still the error what I am getting after trying the latest bench update

[frappe@erp frappe-bench]$ bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 3), reused 3 (delta 3), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/frappe/bench
   d55d29b..ae9cef3  master     -> origin/master
   efb75f2..a82f9e5  develop    -> origin/develop
Updating d55d29b..ae9cef3
Fast-forward
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
remote: Enumerating objects: 721, done.
remote: Counting objects: 100% (721/721), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 1437 (delta 693), reused 702 (delta 686), pack-reused 716
Receiving objects: 100% (1437/1437), 221.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1149/1149), completed with 121 local objects.
From https://github.com/frappe/frappe
   f7da1a7..e3be9b3  master     -> upstream/master
   fcaadf7..052b0b7  develop    -> upstream/develop
   f7da1a7..a94a429  hotfix     -> upstream/hotfix
 * [new tag]         v11.1.9    -> v11.1.9
From https://github.com/frappe/frappe
 * [new tag]         v11.1.7    -> v11.1.7
 * [new tag]         v11.1.8    -> v11.1.8
INFO:bench.utils:./env/bin/pip install Pillow
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages (5.3.0)
You are using pip version 19.0.2, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
INFO:bench.app:pulling frappe
INFO:bench.utils:git pull  upstream master
From https://github.com/frappe/frappe
 * branch            master     -> FETCH_HEAD
Updating f7da1a7..e3be9b3
Fast-forward
 frappe/__init__.py                                     |  11 +++++++---
 frappe/chat/doctype/chat_profile/chat_profile.py       | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------
 frappe/contacts/address_and_contact.py                 |  12 +++++------
 frappe/custom/doctype/customize_form/customize_form.js |   2 +-
 frappe/email/receive.py                                |  12 +++++------
 frappe/public/js/frappe/form/controls/geolocation.js   |   2 +-
 frappe/public/js/frappe/form/controls/link.js          |   2 +-
 frappe/public/js/frappe/form/controls/multiselect.js   |  25 ++++++++++++++++++++++
 frappe/public/js/frappe/form/controls/signature.js     |   9 +++++++-
 frappe/public/js/frappe/form/quick_entry.js            |   3 ---
 frappe/public/js/frappe/list/base_list.js              |   4 +++-
 frappe/public/js/frappe/list/list_view.js              |   2 +-
 frappe/public/js/frappe/router.js                      |  11 ++++++++--
 frappe/public/js/frappe/ui/dialog.js                   |   1 +
 frappe/utils/jinja.py                                  |  10 +++++++--
 15 files changed, 140 insertions(+), 98 deletions(-)
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git pull  upstream master
remote: Enumerating objects: 390, done.
remote: Counting objects: 100% (390/390), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 490 (delta 367), reused 388 (delta 367), pack-reused 100
Receiving objects: 100% (490/490), 110.27 KiB | 0 bytes/s, done.
Resolving deltas: 100% (392/392), completed with 135 local objects.
From https://github.com/frappe/erpnext
 * branch            master     -> FETCH_HEAD
Updating 58dda68..539c77c
Fast-forward
 erpnext/__init__.py                                                                  |   2 +-
 erpnext/accounts/doctype/cashier_closing/cashier_closing.json                        |  37 ++++++++--
 erpnext/accounts/doctype/cashier_closing_payments/cashier_closing_payments.json      |  12 +++-
 erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json            |   5 +-
 erpnext/accounts/doctype/payment_entry/payment_entry.py                              |   6 +-
 erpnext/accounts/doctype/payment_request/payment_request.json                        |   5 +-
 erpnext/accounts/doctype/pricing_rule/pricing_rule.py                                |   3 +-
 erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js                        |   9 ++-
 erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json            |   8 +--
 erpnext/accounts/doctype/sales_invoice/sales_invoice.js                              |   3 +-
 erpnext/accounts/doctype/sales_invoice/sales_invoice.json                            |   4 +-
 erpnext/accounts/doctype/sales_invoice/sales_invoice.py                              |   7 +-
 erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json                  |   6 +-
 erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json            |  36 ++++++----
 erpnext/accounts/doctype/sales_invoice_timesheet/sales_invoice_timesheet.json        |  23 +++++--
 erpnext/accounts/report/accounts_receivable/accounts_receivable.py                   |   9 ++-
 erpnext/accounts/report/financial_statements.py                                      |   2 +-
 erpnext/accounts/report/gross_profit/gross_profit.py                                 |   8 +--
 erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json          |   4 +-
 erpnext/controllers/accounts_controller.py                                           |   6 ++
 erpnext/hooks.py                                                                     |   9 ++-
 erpnext/hr/doctype/leave_application/leave_application.py                            |  23 +++++--
 erpnext/hr/doctype/salary_slip/salary_slip.json                                      |  10 +--
 erpnext/hr/doctype/salary_slip_timesheet/salary_slip_timesheet.json                  |  27 ++++++--
 erpnext/hr/doctype/salary_structure/salary_structure.json                            |   5 +-
 erpnext/hub_node/doctype/marketplace_settings/marketplace_settings.json              |   5 +-
 erpnext/maintenance/doctype/maintenance_visit/maintenance_visit.py                   |  15 ++--
 erpnext/manufacturing/doctype/bom/bom.py                                             |   2 +-
 erpnext/manufacturing/doctype/job_card/job_card.py                                   |   6 --
 erpnext/patches.txt                                                                  |   4 +-
 erpnext/patches/v10_0/item_barcode_childtable_migrate.py                             |  25 ++++---
 erpnext/patches/v11_0/make_italian_localization_fields.py                            |  28 ++++++++
 erpnext/patches/v11_0/remove_barcodes_field_from_copy_fields_to_variants.py          |   7 ++
 erpnext/projects/doctype/timesheet_detail/timesheet_detail.json                      |  41 +++++++++--
 erpnext/public/js/hub/PageContainer.vue                                              |   7 +-
 erpnext/public/js/hub/Sidebar.vue                                                    |   5 ++
 erpnext/public/js/hub/components/DetailHeaderItem.vue                                |  14 ++--
 erpnext/public/js/hub/components/EmptyState.vue                                      |   2 +-
 erpnext/public/js/hub/pages/FeaturedItems.vue                                        | 118 +++++++++++++++++++++++++++++++
 erpnext/public/js/hub/pages/Item.vue                                                 |  26 ++++++-
 erpnext/public/js/hub/pages/Profile.vue                                              |  81 ----------------------
 erpnext/public/js/hub/pages/Seller.vue                                               | 127 ++++++++++++++++++++++++++++++----
 erpnext/public/js/hub/pages/SellerItems.vue                                          |  57 +++++++++++++++
 erpnext/public/js/utils.js                                                           |   9 ++-
 erpnext/regional/italy/__init__.py                                                   |  79 +++++++++++++++++++++
 erpnext/regional/italy/e-invoice.xml                                                 | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 erpnext/regional/italy/setup.py                                                      | 158 ++++++++++++++++++++++++++++++++++++++++++
 erpnext/regional/italy/utils.py                                                      | 310 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 erpnext/regional/report/electronic_invoice_register/__init__.py                      |   0
 erpnext/regional/report/electronic_invoice_register/electronic_invoice_register.js   |  53 ++++++++++++++
 erpnext/regional/report/electronic_invoice_register/electronic_invoice_register.json |  21 ++++++
 erpnext/regional/report/electronic_invoice_register/electronic_invoice_register.py   |   8 +++
 erpnext/selling/doctype/quotation_item/quotation_item.json                           |   4 +-
 erpnext/selling/doctype/sales_order_item/sales_order_item.json                       |   4 +-
 erpnext/selling/page/point_of_sale/point_of_sale.js                                  |   2 +-
 erpnext/setup/doctype/company/test_company.py                                        |   2 +-
 erpnext/setup/doctype/setup_progress/setup_progress.py                               |   5 +-
 erpnext/stock/dashboard/item_dashboard.py                                            |   9 ++-
 erpnext/stock/doctype/delivery_note/delivery_note.py                                 |  38 ++++++++--
 erpnext/stock/doctype/delivery_note/test_delivery_note.py                            |  29 +++++++-
 erpnext/stock/doctype/delivery_note_item/delivery_note_item.json                     |   6 +-
 erpnext/stock/doctype/item/item.json                                                 |  90 +++++++++++++++---------
 erpnext/stock/doctype/item_variant_settings/item_variant_settings.py                 |  17 ++++-
 erpnext/stock/doctype/material_request/material_request.js                           |   2 +-
 erpnext/stock/doctype/purchase_receipt/purchase_receipt.py                           |  54 +++++++++++++--
 erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py                      |  38 ++++++++++
 erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json               |   4 +-
 67 files changed, 1714 insertions(+), 275 deletions(-)
 create mode 100644 erpnext/patches/v11_0/make_italian_localization_fields.py
 create mode 100644 erpnext/patches/v11_0/remove_barcodes_field_from_copy_fields_to_variants.py
 create mode 100644 erpnext/public/js/hub/pages/FeaturedItems.vue
 delete mode 100644 erpnext/public/js/hub/pages/Profile.vue
 create mode 100644 erpnext/public/js/hub/pages/SellerItems.vue
 create mode 100644 erpnext/regional/italy/__init__.py
 create mode 100644 erpnext/regional/italy/e-invoice.xml
 create mode 100644 erpnext/regional/italy/setup.py
 create mode 100644 erpnext/regional/italy/utils.py
 create mode 100644 erpnext/regional/report/electronic_invoice_register/__init__.py
 create mode 100644 erpnext/regional/report/electronic_invoice_register/electronic_invoice_register.js
 create mode 100644 erpnext/regional/report/electronic_invoice_register/electronic_invoice_register.json
 create mode 100644 erpnext/regional/report/electronic_invoice_register/electronic_invoice_register.py
INFO:bench.utils:find . -name "*.pyc" -delete
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 7.5MB/s 
Installing collected packages: pip
  Found existing installation: pip 19.0.2
    Uninstalling pip-19.0.2:
      Successfully uninstalled pip-19.0.2
Successfully installed pip-19.0.3
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
INFO:bench.app:installing frappe
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/frappe 
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/erpnext 
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.13.0
node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
Traceback (most recent call last):
  File "/usr/bin/bench", line 9, in <module>
    load_entry_point('bench==4.0.0', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/commands/update.py", line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
  File "/home/frappe/bench-repo/bench/commands/update.py", line 77, in _update
    update_node_packages(bench_path=bench_path)
  File "/home/frappe/bench-repo/bench/utils.py", line 449, in update_node_packages
    update_yarn_packages(bench_path)
  File "/home/frappe/bench-repo/bench/utils.py", line 462, in update_yarn_packages
    exec_cmd('yarn install', cwd=app_path)
  File "/home/frappe/bench-repo/bench/utils.py", line 159, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: yarn install

Hi All,

Finally…resolved the problem.

I have updated openssl with

[root@erp frappe-bench]# yum update openssl

After that run the bench update as user frappe

[frappe@erp frappe-bench]$ bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages (5.3.0)
INFO:bench.app:pulling frappe
INFO:bench.utils:git pull  upstream master
From https://github.com/frappe/frappe
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git pull  upstream master
From https://github.com/frappe/erpnext
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name "*.pyc" -delete
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages (19.0.3)
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
INFO:bench.app:installing frappe
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/frappe 
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/erpnext 
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "rollup-plugin-vue > @vue/component-compiler@3.4.4" has unmet peer dependency "postcss@>=6.0".
[4/4] Building fresh packages...
Done in 39.42s.
Backing up sites...
Patching sites...
Migrating erp.cubixys.com
Executing frappe.patches.v11_0.set_missing_creation_and_modified_value_for_user_permissions in erp.cubixys.com (884f6bb404)
Success: Done in 0.109s
Executing execute:frappe.delete_doc('DocType', 'Notification Control') in erp.cubixys.com (884f6bb404)
Success: Done in 0.151s
Executing erpnext.patches.v11_0.remove_barcodes_field_from_copy_fields_to_variants in erp.cubixys.com (884f6bb404)
Success: Done in 0.281s
Executing erpnext.patches.v10_0.item_barcode_childtable_migrate # 16-02-2019 in erp.cubixys.com (884f6bb404)
Success: Done in 0.801s
Executing erpnext.patches.v11_0.make_italian_localization_fields in erp.cubixys.com (884f6bb404)
Success: Done in 0.076s
Updating DocTypes for frappe        : [========================================]
Updating DocTypes for erpnext       : [========================================]
yarn run v1.13.0
$ FRAPPE_ENV=production node rollup/build.js
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js

Building frappe assets...

✔ Built js/print_format_v3.min.js
✔ Built js/dialog.min.js
✔ Built js/web_form.min.js
✔ Built js/form.min.js
✔ Built js/list.min.js
✔ Built js/chat.js
✔ Built js/desk.min.js
✔ Built css/frappe-rtl.css
✔ Built css/report.min.css
✔ Built css/form.min.css
✔ Built css/list.min.css
✔ Built css/module.min.css
✔ Built frappe/css/email.css
✔ Built css/web_form.css
✔ Built css/frappe-web.css
✔ Built css/desk.min.css
✔ Built js/control.min.js
✔ Built js/frappe-web.min.js
✔ Built js/report.min.js
✨  Done in 25.711s

Building erpnext assets...

✔ Built js/erpnext-web.min.js
✔ Built js/item-dashboard.min.js
✔ Built js/erpnext.min.js
✔ Built css/erpnext-web.css
✔ Built js/marketplace.min.js
✔ Built css/marketplace.css
✔ Built css/erpnext.css
✨  Done in 9.686s
Done in 36.54s.
INFO:bench.utils:sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
________________________________________________________________________________
Bench: Deployment tool for Frappe and ERPNext (https://erpnext.org).
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community
()

Thank you all for your support.

KR Fasil.