I got the output as below:-
Traceback (most recent call last):
File β/usr/lib64/python2.7/runpy.pyβ, line 162, in _run_module_as_main
βmainβ, fname, loader, pkg_name)
File β/usr/lib64/python2.7/runpy.pyβ, line 72, in _run_code
exec code in run_globals
File β/home/bench/frappe-bench/apps/frappe/frappe/utils/bench_helper.pyβ, line 97, in
main()
File β/home/bench/frappe-bench/apps/frappe/frappe/utils/bench_helper.pyβ, line 18, in main
click.Group(commands=commands)(prog_name=βbenchβ)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/core.pyβ, line 722, in call
return self.main(*args, **kwargs)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/core.pyβ, line 697, in main
rv = self.invoke(ctx)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/core.pyβ, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/core.pyβ, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/core.pyβ, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/core.pyβ, line 535, in invoke
return callback(*args, **kwargs)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/click/decorators.pyβ, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File β/home/bench/frappe-bench/apps/frappe/frappe/commands/init.pyβ, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File β/home/bench/frappe-bench/apps/frappe/frappe/commands/site.pyβ, line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File β/home/bench/frappe-bench/apps/frappe/frappe/migrate.pyβ, line 39, in migrate
frappe.modules.patch_handler.run_all()
File β/home/bench/frappe-bench/apps/frappe/frappe/modules/patch_handler.pyβ, line 29, in run_all
if not run_single(patchmodule = patch):
File β/home/bench/frappe-bench/apps/frappe/frappe/modules/patch_handler.pyβ, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File β/home/bench/frappe-bench/apps/frappe/frappe/modules/patch_handler.pyβ, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + β.executeβ)()
File β/home/bench/frappe-bench/apps/erpnext/erpnext/patches/v11_0/update_total_qty_field.pyβ, line 34, in execute
βββ % (doctype, " β.join(when_then)))
File β/home/bench/frappe-bench/apps/frappe/frappe/database.pyβ, line 209, in sql
self._cursor.execute(query)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/cursors.pyβ, line 170, in execute
result = self._query(query)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/cursors.pyβ, line 328, in _query
conn.query(q)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.pyβ, line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.pyβ, line 1103, in _read_query_result
result.read()
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.pyβ, line 1396, in read
first_packet = self.connection._read_packet()
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.pyβ, line 1059, in _read_packet
packet.check_error()
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.pyβ, line 384, in check_error
err.raise_mysql_exception(self._data)
File β/home/bench/frappe-bench/env/lib/python2.7/site-packages/pymysql/err.pyβ, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1064, u"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ββ at line 2β)
[bench@engerp frappe-bench]$
No idea