Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Migrating rigpl.local
- Executing erpnext.patches.v5_4.update_purchase_cost_against_project in rigpl.local (040e7151bb)
- 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/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
- main()
- File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
- click.Group(commands=commands)(prog_name='bench')
- File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
- return self.main(*args, **kwargs)
- File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
- rv = self.invoke(ctx)
- File "/home/aditya/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/aditya/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/aditya/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/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
- return callback(*args, **kwargs)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
- ret = f(frappe._dict(ctx.obj), *args, **kwargs)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 214, in migrate
- frappe.modules.patch_handler.run_all()
- File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
- if not run_single(patchmodule = patch):
- File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
- return execute_patch(patchmodule, method, methodargs)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
- frappe.get_attr(patchmodule.split()[0] + ".execute")()
- File "/home/aditya/frappe-bench/apps/erpnext/erpnext/patches/v5_4/update_purchase_cost_against_project.py", line 11, in execute
- project.save()
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 225, in save
- self.run_before_save_methods()
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 543, in run_before_save_methods
- self.run_method("validate")
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 509, in run_method
- return Document.hook(fn)(self, *args, **kwargs)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 637, in composer
- return composed(self, method, *args, **kwargs)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 620, in runner
- add_to_return_value(self, fn(self, *args, **kwargs))
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 503, in <lambda>
- fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
- File "/home/aditya/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py", line 37, in validate
- self.sync_tasks()
- File "/home/aditya/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py", line 70, in sync_tasks
- task.save(ignore_permissions = True)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 222, in save
- self.check_if_latest()
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 387, in check_if_latest
- self.check_docstatus_transition(tmp.docstatus)
- File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 427, in check_docstatus_transition
- raise frappe.ValidationError, _("Cannot edit cancelled document")
- frappe.exceptions.ValidationError: Cannot edit cancelled document
- 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/aditya/bench-repo/bench/cli.py", line 60, in cli
- bench()
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
- return callback(*args, **kwargs)
- File "/home/aditya/bench-repo/bench/cli.py", line 241, in _update
- update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
- File "/home/aditya/bench-repo/bench/cli.py", line 271, in update
- patch_sites(bench=bench_path)
- File "/home/aditya/bench-repo/bench/utils.py", line 158, in patch_sites
- run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
- File "/home/aditya/bench-repo/bench/utils.py", line 489, in run_frappe_cmd
- raise CommandFailedError(args)
- bench.utils.CommandFailedError: ('--site', 'all', 'migrate')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement