Advertisement
Guest User

erpnext migrate error

a guest
Aug 5th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. root@satishvm:~/frappe-bench# bench migrate-3to4 /home/erpnext/erpnext
  2. /home/erpnext/erpnext/public
  3. Executing execute:frappe.db.sql("""update `tabPatch Log` set patch=replace(patch, '.4_0.', '.v4_0.')""") #2014-05-12 in erpnext (acmestones)
  4. Success
  5. Executing execute:frappe.reload_doc('core', 'doctype', 'doctype', force=True) #2014-01-24 in erpnext (acmestones)
  6. Success
  7. Executing execute:frappe.reload_doc('core', 'doctype', 'docfield', force=True) #2014-03-01 in erpnext (acmestones)
  8. Success
  9. Executing execute:frappe.reload_doc('core', 'doctype', 'docperm') #2014-06-04 in erpnext (acmestones)
  10. Success
  11. Executing execute:frappe.reload_doc('core', 'doctype', 'page') #2013-13-26 in erpnext (acmestones)
  12. Success
  13. Executing execute:frappe.reload_doc('core', 'doctype', 'report') #2014-06-03 in erpnext (acmestones)
  14. Success
  15. Executing execute:frappe.reload_doc('core', 'doctype', 'version') #2014-02-21 in erpnext (acmestones)
  16. Traceback (most recent call last):
  17. File "/home/erpnext/erpnext/bench-repo/bench/migrate3to4.py", line 98, in <module>
  18. main(args.site)
  19. File "/home/erpnext/erpnext/bench-repo/bench/migrate3to4.py", line 38, in main
  20. migrate(site)
  21. File "/home/erpnext/erpnext/bench-repo/bench/migrate3to4.py", line 78, in migrate
  22. latest()
  23. File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
  24. return fn(*args, **new_kwargs)
  25. File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 420, in latest
  26. frappe.modules.patch_handler.run_all()
  27. File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
  28. if not run_single(patchmodule = patch):
  29. File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 50, in run_single
  30. return execute_patch(patchmodule, method, methodargs)
  31. File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 64, in execute_patch
  32. exec patchmodule.split("execute:")[1] in globals()
  33. File "<string>", line 1, in <module>
  34. File "/root/frappe-bench/apps/frappe/frappe/__init__.py", line 364, in reload_doc
  35. return frappe.modules.reload_doc(module, dt, dn, force=force)
  36. File "/root/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 35, in reload_doc
  37. return import_files(module, dt, dn, force=force)
  38. File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 17, in import_files
  39. return import_file(module, dt, dn, force=force)
  40. File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 22, in import_file
  41. ret = import_file_by_path(path, force)
  42. File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
  43. import_doc(doc, force=force)
  44. File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 111, in import_doc
  45. doc.insert()
  46. File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 153, in insert
  47. self.run_post_save_methods()
  48. File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 427, in run_post_save_methods
  49. self.run_method("on_update")
  50. File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 400, in run_method
  51. return Document.hook(fn)(self, *args, **kwargs)
  52. File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 476, in composer
  53. return composed(self, method, *args, **kwargs)
  54. File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in runner
  55. add_to_return_value(self, fn(self, *args, **kwargs))
  56. File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 394, in <lambda>
  57. fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  58. File "/root/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 87, in on_update
  59. updatedb(self.name)
  60. File "/root/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 390, in updatedb
  61. tab.sync()
  62. File "/root/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 170, in sync
  63. self.create()
  64. File "/root/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 90, in create
  65. CHARACTER SET=utf8""" % (self.name, add_text))
  66. File "/root/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
  67. self._cursor.execute(query)
  68. File "/root/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
  69. self.errorhandler(self, exc, value)
  70. File "/root/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  71. raise errorclass, errorvalue
  72. _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6),\n\t\t\tmodified datetime(6),\n\t\t\tmodified_by varchar(255),\n\t\t\towner varchar(255)' at line 3")
  73. Error: None
  74. Traceback (most recent call last):
  75. File "/usr/local/bin/bench", line 9, in <module>
  76. load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  77. File "/home/erpnext/erpnext/bench-repo/bench/cli.py", line 26, in cli
  78. return bench()
  79. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
  80. return self.main(*args, **kwargs)
  81. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
  82. self.invoke(ctx)
  83. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
  84. return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
  85. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
  86. return cmd.invoke(cmd_ctx)
  87. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
  88. ctx.invoke(self.callback, **ctx.params)
  89. File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
  90. return callback(*args, **kwargs)
  91. File "/home/erpnext/erpnext/bench-repo/bench/cli.py", line 123, in migrate_3to4
  92. site=path))
  93. File "/home/erpnext/erpnext/bench-repo/bench/utils.py", line 56, in exec_cmd
  94. subprocess.check_call(cmd, cwd=cwd, shell=True)
  95. File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
  96. raise CalledProcessError(retcode, cmd)
  97. subprocess.CalledProcessError: Command 'env/bin/python /home/erpnext/erpnext/bench-repo/bench/migrate3to4.py /home/erpnext/erpnext' returned non-zero exit status 1
  98. root@satishvm:~/frappe-bench#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement