ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

[Version 11] Build breaks due to Yarn


#21

Hi antiquark100

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

KR
Fasil


#22

Yes, not as root


#23

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