Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. Executing frappe.patches.v5_0.update_shared in rigplv5 (b1ede4ec9a)
  2. Traceback (most recent call last):
  3. File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
  4. "__main__", fname, loader, pkg_name)
  5. File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
  6. exec code in run_globals
  7. File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
  8. main()
  9. File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
  10. click.Group(commands=commands)(prog_name='bench')
  11. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
  12. return self.main(*args, **kwargs)
  13. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
  14. rv = self.invoke(ctx)
  15. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
  16. return _process_result(sub_ctx.command.invoke(sub_ctx))
  17. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
  18. return _process_result(sub_ctx.command.invoke(sub_ctx))
  19. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
  20. return ctx.invoke(self.callback, **ctx.params)
  21. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
  22. return callback(*args, **kwargs)
  23. File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 28, in _func
  24. ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  25. File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 202, in migrate
  26. frappe.modules.patch_handler.run_all()
  27. File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
  28. if not run_single(patchmodule = patch):
  29. File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
  30. return execute_patch(patchmodule, method, methodargs)
  31. File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
  32. frappe.get_attr(patchmodule.split()[0] + ".execute")()
  33. File "/home/aditya/frappe-bench/apps/frappe/frappe/patches/v5_0/update_shared.py", line 18, in execute
  34. frappe.share.add("Event", event.parent, event.person, write=1)
  35. File "/home/aditya/frappe-bench/apps/frappe/frappe/share.py", line 37, in add
  36. doc.save(ignore_permissions=True)
  37. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 214, in save
  38. self.insert()
  39. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 176, in insert
  40. self.run_before_save_methods()
  41. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 540, in run_before_save_methods
  42. self.run_method("validate")
  43. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 506, in run_method
  44. return Document.hook(fn)(self, *args, **kwargs)
  45. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 619, in composer
  46. return composed(self, method, *args, **kwargs)
  47. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 602, in runner
  48. add_to_return_value(self, fn(self, *args, **kwargs))
  49. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 500, in <lambda>
  50. fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  51. File "/home/aditya/frappe-bench/apps/frappe/frappe/core/doctype/docshare/docshare.py", line 14, in validate
  52. self.check_share_permission()
  53. File "/home/aditya/frappe-bench/apps/frappe/frappe/core/doctype/docshare/docshare.py", line 31, in check_share_permission
  54. not frappe.has_permission(self.share_doctype, "share", self.get_doc())):
  55. File "/home/aditya/frappe-bench/apps/frappe/frappe/core/doctype/docshare/docshare.py", line 26, in get_doc
  56. self._doc = frappe.get_doc(self.share_doctype, self.share_name)
  57. File "/home/aditya/frappe-bench/apps/frappe/frappe/__init__.py", line 470, in get_doc
  58. return frappe.model.document.get_doc(arg1, arg2)
  59. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 45, in get_doc
  60. return controller(arg1, arg2)
  61. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 76, in __init__
  62. self.load_from_db()
  63. File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 104, in load_from_db
  64. d = frappe.db.get_value(self.doctype, self.name, "*", as_dict=1)
  65. File "/home/aditya/frappe-bench/apps/frappe/frappe/database.py", line 390, in get_value
  66. ret = self.get_values(doctype, filters, fieldname, ignore, as_dict, debug)
  67. File "/home/aditya/frappe-bench/apps/frappe/frappe/database.py", line 425, in get_values
  68. return self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
  69. File "/home/aditya/frappe-bench/apps/frappe/frappe/database.py", line 516, in _get_values_from_table
  70. conditions, order_by), values, as_dict=as_dict, debug=debug, update=update)
  71. File "/home/aditya/frappe-bench/apps/frappe/frappe/database.py", line 129, in sql
  72. self._cursor.execute(query, values)
  73. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
  74. self.errorhandler(self, exc, value)
  75. File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  76. raise errorclass, errorvalue
  77. ValueError: month must be in 1..12
  78. Traceback (most recent call last):
  79. File "/usr/local/bin/bench", line 9, in <module>
  80. load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  81. File "/home/aditya/bench-repo/bench/cli.py", line 55, in cli
  82. bench()
  83. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
  84. return self.main(*args, **kwargs)
  85. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
  86. rv = self.invoke(ctx)
  87. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
  88. return _process_result(sub_ctx.command.invoke(sub_ctx))
  89. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
  90. return ctx.invoke(self.callback, **ctx.params)
  91. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
  92. return callback(*args, **kwargs)
  93. File "/home/aditya/bench-repo/bench/cli.py", line 247, in update
  94. patch_sites()
  95. File "/home/aditya/bench-repo/bench/utils.py", line 118, in patch_sites
  96. run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
  97. File "/home/aditya/bench-repo/bench/utils.py", line 427, in run_frappe_cmd
  98. subprocess.check_call((f, '-m', 'frappe.utils.bench_helper', 'frappe') + args, cwd=sites_dir)
  99. File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
  100. raise CalledProcessError(retcode, cmd)
  101. subprocess.CalledProcessError: Command '('/home/aditya/frappe-bench/env/bin/python', '-m', 'frappe.utils.bench_helper', 'frappe', '--site', 'all', 'migrate')' returned non-zero exit status 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement