ERPNext.com Frappe Cloud Support Partners Foundation

Executing erpnext.patches.v12_0.add_einvoice_status_field #2021-03-17

While running bench update --patch I am facing this error

Executing erpnext.patches.v12_0.add_einvoice_status_field #2021-03-17 in erp.jmf.coop (_4804c87065592321)
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/opt/erpnext/erpnext/apps/frappe/frappe/utils/bench_helper.py”, line 104, in
main()
File “/opt/erpnext/erpnext/apps/frappe/frappe/utils/bench_helper.py”, line 19, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/commands/init.py”, line 27, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/commands/site.py”, line 309, in migrate
skip_search_index=skip_search_index
File “/opt/erpnext/erpnext/apps/frappe/frappe/migrate.py”, line 67, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File “/opt/erpnext/erpnext/apps/frappe/frappe/modules/patch_handler.py”, line 41, in run_all
run_patch(patch)
File “/opt/erpnext/erpnext/apps/frappe/frappe/modules/patch_handler.py”, line 30, in run_patch
if not run_single(patchmodule = patch):
File “/opt/erpnext/erpnext/apps/frappe/frappe/modules/patch_handler.py”, line 71, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/modules/patch_handler.py”, line 91, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/opt/erpnext/erpnext/apps/erpnext/erpnext/patches/v12_0/add_einvoice_status_field.py”, line 41, in execute
create_custom_fields(custom_fields, update=True)
File “/opt/erpnext/erpnext/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 169, in create_custom_fields
custom_field.save()
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 285, in save
return self._save(*args, **kwargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 337, in _save
self.run_post_save_methods()
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 994, in run_post_save_methods
self.run_method(“on_update”)
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 859, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 1148, in composer
return composed(self, method, *args, **kwargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 1131, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/opt/erpnext/erpnext/apps/frappe/frappe/model/document.py”, line 853, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/opt/erpnext/erpnext/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 80, in on_update
frappe.db.updatedb(self.dt)
File “/opt/erpnext/erpnext/apps/frappe/frappe/database/mariadb/database.py”, line 282, in updatedb
db_table.sync()
File “/opt/erpnext/erpnext/apps/frappe/frappe/database/schema.py”, line 40, in sync
self.alter()
File “/opt/erpnext/erpnext/apps/frappe/frappe/database/mariadb/schema.py”, line 88, in alter
raise e
File “/opt/erpnext/erpnext/apps/frappe/frappe/database/mariadb/schema.py”, line 75, in alter
frappe.db.sql(query)
File “/opt/erpnext/erpnext/apps/frappe/frappe/database/database.py”, line 152, in sql
self._cursor.execute(query)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/cursors.py”, line 148, in execute
result = self._query(query)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/cursors.py”, line 310, in _query
conn.query(q)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 548, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 775, in _read_query_result
result.read()
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 1156, in read
first_packet = self.connection._read_packet()
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 725, in _read_packet
packet.raise_for_error()
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File “/opt/erpnext/erpnext/env/lib/python3.6/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1118, ‘Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs’)
INFO: A newer version of bench is available: 5.4.0 → 5.4.1