Error after update in V6

Hi, there is my error :

remote: Counting objects: 31, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 31 (delta 10), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (31/31), done.
Depuis https://github.com/frappe/frappe
   d01dc8c..12ee803  develop    -> upstream/develop
Already up-to-date.
Depuis https://github.com/frappe/frappe
 * branch            develop    -> FETCH_HEAD
Mise à jour d01dc8c..12ee803
Fast-forward
 frappe/core/doctype/page/page.py                      | 12 ++++++++++++
 frappe/patches.txt                                    |  2 +-
 frappe/public/js/frappe/ui/page.js                    |  2 +-
 frappe/public/js/frappe/views/reports/query_report.js |  2 +-
 4 files changed, 15 insertions(+), 3 deletions(-)
remote: Counting objects: 66, done.
remote: Total 66 (delta 58), reused 58 (delta 58), pack-reused 8
Unpacking objects: 100% (66/66), done.
Depuis https://github.com/frappe/erpnext
 * branch            develop    -> FETCH_HEAD
   f7e6eb4..b6ec680  develop    -> upstream/develop
Mise à jour f7e6eb4..b6ec680
Fast-forward
 .../payment_reconciliation.js                      |  6 +-
 .../payment_reconciliation.json                    |  4 +-
 .../payment_reconciliation.py                      | 12 +++-
 .../payment_reconciliation_payment.json            | 64 ++++------------------
 .../accounts/doctype/payment_tool/payment_tool.py  |  2 +-
 erpnext/accounts/utils.py                          | 10 ++--
 .../doctype/purchase_order/purchase_order_list.js  |  8 +--
 erpnext/controllers/accounts_controller.py         |  3 +
 erpnext/hr/doctype/employee/employee.py            |  2 +-
 .../patches/v4_0/reset_permissions_for_masters.py  |  2 +-
 erpnext/patches/v5_0/execute_on_doctype_update.py  |  2 +-
 erpnext/patches/v5_4/fix_missing_item_images.py    | 14 ++---
 .../doctype/sales_order/sales_order_list.js        | 10 ++--
 .../material_request/material_request_list.js      |  4 +-
 14 files changed, 56 insertions(+), 87 deletions(-)
Depuis https://github.com/saurabh6790/loyalty_point
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Depuis https://github.com/frappe/shopping_cart
 * branch            develop    -> FETCH_HEAD
Already up-to-date.
Database backed up /home/phil/frappe-bench/sites/www.boutiquextension.com/privat                                                                                       e/backups/20150922_45342076_database.sql.gz
Database backed up /home/phil/frappe-bench/sites/www.liquidationdrummond.com/pri                                                                                       vate/backups/20150922_23800087_database.sql.gz
Migrating www.boutiquextension.com
Executing frappe.patches.v6_1.rename_file_data in www.boutiquextension.com (a460                                                                                       03081c)
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/phil/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line                                                                                        79, in <module>
    main()
  File "/home/phil/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line                                                                                        16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 590, in main
    rv = self.invoke(ctx)
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/phil/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _fu                                                                                       nc
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/phil/frappe-bench/apps/frappe/frappe/commands.py", line 214, in mi                                                                                       grate
    frappe.modules.patch_handler.run_all()
  File "/home/phil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", li                                                                                       ne 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/phil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", li                                                                                       ne 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/phil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", li                                                                                       ne 74, in execute_patch
    frappe.db.rollback()
  File "/home/phil/frappe-bench/apps/frappe/frappe/database.py", line 683, in ro                                                                                       llback
    obj.on_rollback()
  File "/home/phil/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py", l                                                                                       ine 140, in on_rollback
    self.on_trash()
  File "/home/phil/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py", l                                                                                       ine 109, in on_trash
    super(File, self).on_trash()
  File "/home/phil/frappe-bench/apps/frappe/frappe/utils/nestedset.py", line 194                                                                                       , in on_trash
    frappe.throw(_("Root {0} cannot be deleted").format(_(self.doctype)))
  File "/home/phil/frappe-bench/apps/frappe/frappe/__init__.py", line 257, in th                                                                                       row
    msgprint(msg, raise_exception=exc)
  File "/home/phil/frappe-bench/apps/frappe/frappe/__init__.py", line 250, in ms                                                                                       gprint
    _raise_exception()
  File "/home/phil/frappe-bench/apps/frappe/frappe/__init__.py", line 235, in _r                                                                                       aise_exception
    raise raise_exception, encode(msg)
frappe.exceptions.ValidationError: Root File cannot be deleted
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/phil/bench-repo/bench/cli.py", line 60, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __ca                                                                                       ll__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invo                                                                                       ke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invo                                                                                       ke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invo                                                                                       ke
    return callback(*args, **kwargs)
  File "/home/phil/bench-repo/bench/cli.py", line 240, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no                                                                                       _backup, upgrade, force=force)
  File "/home/phil/bench-repo/bench/cli.py", line 270, in update
    patch_sites(bench=bench_path)
  File "/home/phil/bench-repo/bench/utils.py", line 158, in patch_sites
    run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
  File "/home/phil/bench-repo/bench/utils.py", line 489, in run_frappe_cmd
    raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')

This has now been fixed. Can you run bench update again?

Now is it this error :

    remote: Counting objects: 43, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 43 (delta 10), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (43/43), done.
Depuis https://github.com/frappe/frappe
   12ee803..8a57ff6  develop    -> upstream/develop
Already up-to-date.
Depuis https://github.com/frappe/frappe
 * branch            develop    -> FETCH_HEAD
Mise à jour 12ee803..8a57ff6
Fast-forward
 frappe/core/doctype/file/file.py        |  4 +++-
 frappe/model/document.py                |  5 ++---
 frappe/patches/v6_1/rename_file_data.py |  2 ++
 frappe/public/build.json                |  1 +
 frappe/public/html/print_template.html  |  2 ++
 frappe/public/js/frappe/request.js      |  2 +-
 frappe/templates/base.html              |  2 ++
 frappe/templates/pages/desk.html        |  2 ++
 frappe/templates/pages/desk.py          |  3 ++-
 frappe/test_runner.py                   |  9 ++++++++-
 frappe/website/js/website.js            |  1 +
 frappe/website/render.py                | 13 +++++++++++++
 12 files changed, 39 insertions(+), 7 deletions(-)
remote: Counting objects: 217, done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 217 (delta 116), reused 63 (delta 63), pack-reused 36
Réception d'objets: 100% (217/217), 74.45 KiB | 0 bytes/s, done.
Résolution des deltas: 100% (126/126), complété avec 42 objets locaux.
Depuis https://github.com/frappe/erpnext
 * branch            develop    -> FETCH_HEAD
   b6ec680..6e4f5a2  develop    -> upstream/develop
Mise à jour b6ec680..6e4f5a2
Fast-forward
 .../doctype/sales_invoice/sales_invoice.js         |  17 +-
 .../doctype/sales_invoice/sales_invoice.py         |  33 +-
 .../sales_taxes_and_charges_template.js            |   3 -
 .../sales_taxes_and_charges_template.json          |  27 +-
 .../sales_taxes_and_charges_template.py            |   5 -
 .../test_records.json                              |  56 +-
 .../doctype/shipping_rule/shipping_rule.js         |   5 -
 .../doctype/shipping_rule/shipping_rule.json       | 705 +++++++++++----------
 .../doctype/shipping_rule/shipping_rule.py         |   6 +
 .../doctype/shipping_rule/test_records.json        | 156 ++---
 .../doctype/shipping_rule_country}/__init__.py     |   0
 .../shipping_rule_country.json}                    |  23 +-
 .../shipping_rule_country.py}                      |  10 +-
 erpnext/accounts/doctype/tax_rule/tax_rule.py      |  38 +-
 erpnext/accounts/party.py                          |  21 +-
 erpnext/controllers/website_list_for_contact.py    |  54 +-
 erpnext/hooks.py                                   |  23 +-
 erpnext/manufacturing/doctype/bom/bom.js           |   2 +-
 erpnext/patches.txt                                |   2 +
 .../v6_3}/__init__.py                              |   0
 .../patches/v6_3/convert_applicable_territory.py   |  17 +
 erpnext/public/css/website.css                     |   2 +
 erpnext/public/js/shopping_cart.js                 |   2 +-
 erpnext/public/js/utils.js                         |  16 +-
 erpnext/public/less/website.less                   |   2 +
 .../doctype/sales_order/sales_order_list.js        |  16 +-
 erpnext/setup/page/setup_wizard/setup_wizard.py    |   9 +-
 erpnext/shopping_cart/__init__.py                  | 101 ---
 erpnext/shopping_cart/cart.py                      | 217 +++----
 .../shopping_cart_price_list.py                    |  12 -
 .../shopping_cart_settings.json                    | 101 +--
 .../shopping_cart_settings.py                      |  92 +--
 .../test_shopping_cart_settings.py                 |  50 +-
 erpnext/shopping_cart/test_shopping_cart.py        | 168 ++---
 erpnext/stock/doctype/item/item.py                 |   1 +
 erpnext/stock/doctype/price_list/price_list.js     |   6 +-
 erpnext/stock/doctype/price_list/price_list.json   |  18 +-
 erpnext/stock/doctype/price_list/price_list.py     |  13 -
 erpnext/stock/doctype/price_list/test_records.json |  89 +--
 .../stock/doctype/price_list_country/__init__.py   |   0
 .../price_list_country/price_list_country.json}    |  22 +-
 .../price_list_country/price_list_country.py       |  10 +
 erpnext/stock/doctype/stock_entry/stock_entry.py   | 114 ++--
 erpnext/templates/form_grid/item_grid.html         |   8 +-
 erpnext/templates/generators/item.html             |  41 +-
 erpnext/templates/includes/address_row.html        |  19 +-
 erpnext/templates/includes/cart.css                |  25 +
 erpnext/templates/includes/cart.js                 | 238 ++-----
 erpnext/templates/includes/cart/cart_address.html  |  24 +
 erpnext/templates/includes/cart/cart_items.html    |  23 +
 erpnext/templates/includes/cart/cart_macros.html   |  21 +
 erpnext/templates/includes/issue_row.html          |  24 +-
 erpnext/templates/includes/macros.html             |  15 +-
 erpnext/templates/includes/order/order.css         |  25 +
 erpnext/templates/includes/order/order_macros.html |  15 +
 erpnext/templates/includes/order/order_taxes.html  |  22 +
 erpnext/templates/includes/product_page.js         |  27 +-
 erpnext/templates/includes/transaction_row.html    |  23 +-
 erpnext/templates/pages/cart.html                  |  98 +--
 erpnext/templates/pages/cart.py                    |  10 +-
 erpnext/templates/pages/order.html                 |  72 +++
 erpnext/templates/pages/order.py                   |  18 +
 erpnext/templates/pages/user.py                    |  23 +-
 erpnext/utilities/doctype/address/address.py       |   3 +
 64 files changed, 1373 insertions(+), 1665 deletions(-)
 rename erpnext/{setup/doctype/applicable_territory => accounts/doctype/shipping                                                                                       _rule_country}/__init__.py (100%)
 rename erpnext/{setup/doctype/applicable_territory/applicable_territory.json =>                                                                                        accounts/doctype/shipping_rule_country/shipping_rule_country.json} (66%)
 rename erpnext/{setup/doctype/applicable_territory/applicable_territory.py => a                                                                                       ccounts/doctype/shipping_rule_country/shipping_rule_country.py} (52%)
 rename erpnext/{shopping_cart/doctype/shopping_cart_price_list => patches/v6_3}                                                                                       /__init__.py (100%)
 create mode 100644 erpnext/patches/v6_3/convert_applicable_territory.py
 delete mode 100644 erpnext/shopping_cart/doctype/shopping_cart_price_list/shopp                                                                                       ing_cart_price_list.py
 create mode 100644 erpnext/stock/doctype/price_list_country/__init__.py
 rename erpnext/{shopping_cart/doctype/shopping_cart_price_list/shopping_cart_pr                                                                                       ice_list.json => stock/doctype/price_list_country/price_list_country.json} (67%)
 create mode 100644 erpnext/stock/doctype/price_list_country/price_list_country.                                                                                       py
 create mode 100644 erpnext/templates/includes/cart.css
 create mode 100644 erpnext/templates/includes/cart/cart_address.html
 create mode 100644 erpnext/templates/includes/cart/cart_items.html
 create mode 100644 erpnext/templates/includes/cart/cart_macros.html
 create mode 100644 erpnext/templates/includes/order/order.css
 create mode 100644 erpnext/templates/includes/order/order_macros.html
 create mode 100644 erpnext/templates/includes/order/order_taxes.html
 create mode 100644 erpnext/templates/pages/order.html
 create mode 100644 erpnext/templates/pages/order.py
Depuis https://github.com/saurabh6790/loyalty_point
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Depuis https://github.com/frappe/shopping_cart
 * branch            develop    -> FETCH_HEAD
Already up-to-date.
Database backed up /home/phil/frappe-bench/sites/www.boutiquextension.com/privat                                                                                       e/backups/20150923_15495846_database.sql.gz
Database backed up /home/phil/frappe-bench/sites/www.liquidationdrummond.com/pri                                                                                       vate/backups/20150923_64014108_database.sql.gz
Migrating www.boutiquextension.com
Executing frappe.patches.v6_1.rename_file_data in www.boutiquextension.com (a460                                                                                       03081c)
Success
Executing erpnext.patches.v5_8.tax_rule in www.boutiquextension.com (a46003081c)
Success
Executing erpnext.patches.v6_3.convert_applicable_territory in www.boutiquextens                                                                                       ion.com (a46003081c)
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/phil/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line                                                                                        79, in <module>
    main()
  File "/home/phil/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line                                                                                        16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 590, in main
    rv = self.invoke(ctx)
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/phil/frappe-bench/env/local/lib/python2.7/site-packages/click/core                                                                                       .py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/phil/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _fu                                                                                       nc
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/phil/frappe-bench/apps/frappe/frappe/commands.py", line 214, in mi                                                                                       grate
    frappe.modules.patch_handler.run_all()
  File "/home/phil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", li                                                                                       ne 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/phil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", li                                                                                       ne 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/phil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", li                                                                                       ne 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/phil/frappe-bench/apps/erpnext/erpnext/patches/v6_3/convert_applic                                                                                       able_territory.py", line 12, in execute
    if not parent.countries:
AttributeError: 'ShippingRule' object has no attribute 'countries'
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/phil/bench-repo/bench/cli.py", line 60, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __ca                                                                                       ll__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invo                                                                                       ke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invo                                                                                       ke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invo                                                                                       ke
    return callback(*args, **kwargs)
  File "/home/phil/bench-repo/bench/cli.py", line 240, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no                                                                                       _backup, upgrade, force=force)
  File "/home/phil/bench-repo/bench/cli.py", line 270, in update
    patch_sites(bench=bench_path)
  File "/home/phil/bench-repo/bench/utils.py", line 158, in patch_sites
    run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
  File "/home/phil/bench-repo/bench/utils.py", line 489, in run_frappe_cmd
    raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')

Same here… My is giving a slightly different error, perhaps surrounding "frappe.exceptions.DoesNotExistError: DocType File Data not found"

I have determined this to be a bug in Jasper Reports, but after removing the custom field, it keeps saying it is there… tried flushing the bench cache, no luck. Unfortunately I can’t even remove the app, but this isn’t your problem… that said, I would happily take any advice.

FYI I believe my issue (and perhaps this poster) is due to the renaming of File Data to File. I was using the Jasper Reports add-on and it is still using the file data table. I was able to get around it but thought this might help.

1 Like

Fixed thank you :slight_smile: