Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 KB | None | 0 0
  1. Migrating rigpl.local
  2. Executing erpnext.patches.v5_4.update_purchase_cost_against_project in rigpl.local (040e7151bb)
  3. Traceback (most recent call last):
  4. File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
  5. "__main__", fname, loader, pkg_name)
  6. File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
  7. exec code in run_globals
  8. File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
  9. main()
  10. File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
  11. click.Group(commands=commands)(prog_name='bench')
  12. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
  13. return self.main(*args, **kwargs)
  14. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
  15. rv = self.invoke(ctx)
  16. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
  17. return _process_result(sub_ctx.command.invoke(sub_ctx))
  18. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
  19. return _process_result(sub_ctx.command.invoke(sub_ctx))
  20. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
  21. return ctx.invoke(self.callback, **ctx.params)
  22. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
  23. return callback(*args, **kwargs)
  24. File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
  25. ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  26. File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 214, in migrate
  27. frappe.modules.patch_handler.run_all()
  28. File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
  29. if not run_single(patchmodule = patch):
  30. File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
  31. return execute_patch(patchmodule, method, methodargs)
  32. File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
  33. frappe.get_attr(patchmodule.split()[0] + ".execute")()
  34. File "/home/aditya/frappe-bench/apps/erpnext/erpnext/patches/v5_4/update_purchase_cost_against_project.py", line 11, in execute
  35. project.save()
  36. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 225, in save
  37. self.run_before_save_methods()
  38. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 543, in run_before_save_methods
  39. self.run_method("validate")
  40. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 509, in run_method
  41. return Document.hook(fn)(self, *args, **kwargs)
  42. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 637, in composer
  43. return composed(self, method, *args, **kwargs)
  44. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 620, in runner
  45. add_to_return_value(self, fn(self, *args, **kwargs))
  46. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 503, in <lambda>
  47. fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  48. File "/home/aditya/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py", line 37, in validate
  49. self.sync_tasks()
  50. File "/home/aditya/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py", line 70, in sync_tasks
  51. task.save(ignore_permissions = True)
  52. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 222, in save
  53. self.check_if_latest()
  54. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 387, in check_if_latest
  55. self.check_docstatus_transition(tmp.docstatus)
  56. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 427, in check_docstatus_transition
  57. raise frappe.ValidationError, _("Cannot edit cancelled document")
  58. frappe.exceptions.ValidationError: Cannot edit cancelled document
  59. Traceback (most recent call last):
  60. File "/usr/local/bin/bench", line 9, in <module>
  61. load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  62. File "/home/aditya/bench-repo/bench/cli.py", line 60, in cli
  63. bench()
  64. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
  65. return self.main(*args, **kwargs)
  66. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
  67. rv = self.invoke(ctx)
  68. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
  69. return _process_result(sub_ctx.command.invoke(sub_ctx))
  70. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
  71. return ctx.invoke(self.callback, **ctx.params)
  72. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
  73. return callback(*args, **kwargs)
  74. File "/home/aditya/bench-repo/bench/cli.py", line 241, in _update
  75. update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
  76. File "/home/aditya/bench-repo/bench/cli.py", line 271, in update
  77. patch_sites(bench=bench_path)
  78. File "/home/aditya/bench-repo/bench/utils.py", line 158, in patch_sites
  79. run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
  80. File "/home/aditya/bench-repo/bench/utils.py", line 489, in run_frappe_cmd
  81. raise CommandFailedError(args)
  82. bench.utils.CommandFailedError: ('--site', 'all', 'migrate')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement