Bench Migrate ERROR - Your system is being updated. Please refresh again after a few moments

Hi,
After running Bench Migrate i got this error in console,

[root@localhost frappe-bench]# bench migrate
Migrating erpnext
Updating DocTypes for frappe        : [========================================]
Updating DocTypes for erpnext       : [=========                               ]                    Traceback (most recent call last):
  File "/opt/bitnami/python/lib/python2.7/runpy.py", line 174, in _run_module_as                    _main
    "__main__", fname, loader, pkg_name)
  File "/opt/bitnami/python/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/b                    ench_helper.py", line 94, in <module>
    main()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/b                    ench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-pac                    kages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/command                    s/__init__.py", line 24, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/command                    s/site.py", line 222, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/migrate                    .py", line 33, in migrate
    frappe.model.sync.sync_all(verbose=verbose)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/s                    ync.py", line 19, in sync_all
    sync_for(app, force, verbose=verbose, reset_permissions=reset_permissions)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/s                    ync.py", line 45, in sync_for
    reset_permissions=reset_permissions, for_sync=True)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules                    /import_file.py", line 58, in import_file_by_path
    ignore_version=ignore_version, reset_permissions=reset_permissions)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules                    /import_file.py", line 132, in import_doc
    doc.insert()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    ocument.py", line 245, in insert
    self.run_post_save_methods()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    ocument.py", line 887, in run_post_save_methods
    self.run_method("on_update")
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    ocument.py", line 755, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    ocument.py", line 1024, in composer
    return composed(self, method, *args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    ocument.py", line 1007, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    ocument.py", line 749, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/do                    ctype/doctype/doctype.py", line 206, in on_update
    updatedb(self.name, self)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    b_schema.py", line 76, in updatedb
    tab.sync()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    b_schema.py", line 155, in sync
    self.alter()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/d                    b_schema.py", line 354, in alter
    raise e
pymysql.err.InternalError: (1118, u'Row size too large. The maximum row size for                     the used table type, not counting BLOBs, is 65535. This includes storage overhe                    ad, check the manual. You have to change some columns to TEXT or BLOBs')
[root@localhost frappe-bench]#

And Getting this error on Browser.

Your system is being updated. Please refresh again after a few moments

Please help.

This might explain your problem Row size too large - update error

On a separate note: No need to run ERPNext as root; apparently that defeats Linux security and invites problems with ERPNext too security - Why is it bad to log in as root? - Ask Ubuntu

1 Like

Solved by deleting custom fields in tabCustomer.