Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- Switched to develop
- Please run `bench update --patch` to be safe from any differences in database schema
- nuco@ubu:~/frappe-bench$ bench update --patch
- Migrating erpnext
- Executing frappe.patches.v6_1.rename_file_data in erpnext (76cf18db07)
- Success
- ...
- And it went fine until...
- Success
- Executing erpnext.patches.v6_4.fix_expense_included_in_valuation in erpnext (76cf18db07)
- BILL00018
- BILL00021
- BILL00022
- BILL00004-1
- 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/nuco/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
- main()
- File "/home/nuco/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
- click.Group(commands=commands)(prog_name='bench')
- File "/home/nuco/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
- return self.main(*args, **kwargs)
- File "/home/nuco/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
- rv = self.invoke(ctx)
- File "/home/nuco/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/home/nuco/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/home/nuco/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/home/nuco/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
- return callback(*args, **kwargs)
- File "/home/nuco/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
- ret = f(frappe._dict(ctx.obj), *args, **kwargs)
- File "/home/nuco/frappe-bench/apps/frappe/frappe/commands.py", line 213, in migrate
- frappe.modules.patch_handler.run_all()
- File "/home/nuco/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
- if not run_single(patchmodule = patch):
- File "/home/nuco/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
- return execute_patch(patchmodule, method, methodargs)
- File "/home/nuco/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
- frappe.get_attr(patchmodule.split()[0] + ".execute")()
- File "/home/nuco/frappe-bench/apps/erpnext/erpnext/patches/v6_4/fix_expense_included_in_valuation.py", line 52, in execute
- purchase_invoice.make_gl_entries()
- File "/home/nuco/frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py", line 394, in make_gl_entries
- make_gl_entries(gl_entries, cancel=(self.docstatus == 2))
- File "/home/nuco/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 19, in make_gl_entries
- save_entries(gl_map, adv_adj, update_outstanding)
- File "/home/nuco/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 83, in save_entries
- round_off_debit_credit(gl_map)
- File "/home/nuco/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 125, in round_off_debit_credit
- make_round_off_gle(gl_map, debit_credit_diff)
- File "/home/nuco/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 131, in make_round_off_gle
- frappe.throw(_("Please mention Round Off Account in Company"))
- File "/home/nuco/frappe-bench/apps/frappe/frappe/__init__.py", line 257, in throw
- msgprint(msg, raise_exception=exc)
- File "/home/nuco/frappe-bench/apps/frappe/frappe/__init__.py", line 250, in msgprint
- _raise_exception()
- File "/home/nuco/frappe-bench/apps/frappe/frappe/__init__.py", line 235, in _raise_exception
- raise raise_exception, encode(msg)
- frappe.exceptions.ValidationError: Please mention Round Off Account in Company
- 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/nuco/bench-repo/bench/cli.py", line 60, in cli
- bench()
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __call__
- 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 invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invoke
- return callback(*args, **kwargs)
- File "/home/nuco/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/nuco/bench-repo/bench/cli.py", line 273, in update
- patch_sites(bench=bench_path)
- File "/home/nuco/bench-repo/bench/utils.py", line 157, in patch_sites
- run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
- File "/home/nuco/bench-repo/bench/utils.py", line 488, in run_frappe_cmd
- raise CommandFailedError(args)
- bench.utils.CommandFailedError: ('--site', 'all', 'migrate')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement