Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@satishvm:~/frappe-bench# bench migrate-3to4 /home/erpnext/erpnext
- /home/erpnext/erpnext/public
- Executing execute:frappe.db.sql("""update `tabPatch Log` set patch=replace(patch, '.4_0.', '.v4_0.')""") #2014-05-12 in erpnext (acmestones)
- Success
- Executing execute:frappe.reload_doc('core', 'doctype', 'doctype', force=True) #2014-01-24 in erpnext (acmestones)
- Success
- Executing execute:frappe.reload_doc('core', 'doctype', 'docfield', force=True) #2014-03-01 in erpnext (acmestones)
- Success
- Executing execute:frappe.reload_doc('core', 'doctype', 'docperm') #2014-06-04 in erpnext (acmestones)
- Success
- Executing execute:frappe.reload_doc('core', 'doctype', 'page') #2013-13-26 in erpnext (acmestones)
- Success
- Executing execute:frappe.reload_doc('core', 'doctype', 'report') #2014-06-03 in erpnext (acmestones)
- Success
- Executing execute:frappe.reload_doc('core', 'doctype', 'version') #2014-02-21 in erpnext (acmestones)
- Traceback (most recent call last):
- File "/home/erpnext/erpnext/bench-repo/bench/migrate3to4.py", line 98, in <module>
- main(args.site)
- File "/home/erpnext/erpnext/bench-repo/bench/migrate3to4.py", line 38, in main
- migrate(site)
- File "/home/erpnext/erpnext/bench-repo/bench/migrate3to4.py", line 78, in migrate
- latest()
- File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
- return fn(*args, **new_kwargs)
- File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 420, in latest
- frappe.modules.patch_handler.run_all()
- File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
- if not run_single(patchmodule = patch):
- File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 50, in run_single
- return execute_patch(patchmodule, method, methodargs)
- File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 64, in execute_patch
- exec patchmodule.split("execute:")[1] in globals()
- File "<string>", line 1, in <module>
- File "/root/frappe-bench/apps/frappe/frappe/__init__.py", line 364, in reload_doc
- return frappe.modules.reload_doc(module, dt, dn, force=force)
- File "/root/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 35, in reload_doc
- return import_files(module, dt, dn, force=force)
- File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 17, in import_files
- return import_file(module, dt, dn, force=force)
- File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 22, in import_file
- ret = import_file_by_path(path, force)
- File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
- import_doc(doc, force=force)
- File "/root/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 111, in import_doc
- doc.insert()
- File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 153, in insert
- self.run_post_save_methods()
- File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 427, in run_post_save_methods
- self.run_method("on_update")
- File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 400, in run_method
- return Document.hook(fn)(self, *args, **kwargs)
- File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 476, in composer
- return composed(self, method, *args, **kwargs)
- File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in runner
- add_to_return_value(self, fn(self, *args, **kwargs))
- File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 394, in <lambda>
- fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
- File "/root/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 87, in on_update
- updatedb(self.name)
- File "/root/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 390, in updatedb
- tab.sync()
- File "/root/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 170, in sync
- self.create()
- File "/root/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 90, in create
- CHARACTER SET=utf8""" % (self.name, add_text))
- File "/root/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
- self._cursor.execute(query)
- File "/root/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
- self.errorhandler(self, exc, value)
- File "/root/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
- raise errorclass, errorvalue
- _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")
- Error: None
- 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/erpnext/erpnext/bench-repo/bench/cli.py", line 26, in cli
- return bench()
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
- self.invoke(ctx)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
- return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
- return cmd.invoke(cmd_ctx)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
- ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
- return callback(*args, **kwargs)
- File "/home/erpnext/erpnext/bench-repo/bench/cli.py", line 123, in migrate_3to4
- site=path))
- File "/home/erpnext/erpnext/bench-repo/bench/utils.py", line 56, in exec_cmd
- subprocess.check_call(cmd, cwd=cwd, shell=True)
- File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
- raise CalledProcessError(retcode, cmd)
- subprocess.CalledProcessError: Command 'env/bin/python /home/erpnext/erpnext/bench-repo/bench/migrate3to4.py /home/erpnext/erpnext' returned non-zero exit status 1
- root@satishvm:~/frappe-bench#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement