Error when adding Custom field - Temp file write failure

Getting the following error while trying to add a field via Custom Field. (on Purchase Receipt doctype)

Error Report
Traceback (innermost last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py”, line 69, in application
response = frappe.handler.handle()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 77, in handle
execute_cmd(cmd)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 94, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 788, in call
return fn(*args, **newargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 29, in runserverobj
frappe.desk.form.run_method.runserverobj(method, docs=docs, dt=dt, dn=dn, arg=arg, args=args)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/desk/form/run_method.py”, line 35, in runserverobj
r = doc.run_method(method)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 551, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 706, in composer
return composed(self, method, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 689, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 545, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/custom/doctype/customize_form/customize_form.py”, line 100, in save_customization
self.update_custom_fields()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/custom/doctype/customize_form/customize_form.py”, line 166, in update_custom_fields
self.update_in_custom_field(df)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/custom/doctype/customize_form/customize_form.py”, line 196, in update_in_custom_field
custom_field.save()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 254, in save
self.run_post_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 607, in run_post_save_methods
self.run_method(“on_update”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 551, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 706, in composer
return composed(self, method, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 689, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 545, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 48, in on_update
updatedb(self.dt)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 68, in updatedb
tab.sync()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 140, in sync
self.alter()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 322, in alter
raise e
OperationalError: (1296, “Got error 64 ‘Temp file write failure’ from InnoDB”)

1 Like