ERPNext Crashes on Naming Series Edit Attempt


I tried to edit naming series from Setup>Naming Series and my instance essentially crashes as errors begin to pop up on my page. The only way to get the system to function normally again is to essentially reboot the machine. Sometimes the edit options don’t show up before it crashes and even when they show up and i make changes, once i click update it crashes and the error “request timed out” and in the worst case scenario i get the following error “Server Error: Please check your server logs or contact tech support.”

When i run $ bench doctor this is what i get:

ubuntu@ip-172-31-21-199:/home/frappe/frappe-bench$ bench doctor
-----Checking scheduler status-----
Traceback (most recent call last):
File “/usr/lib/python2.7/”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 94, in
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 18, in main
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/”, line 121, in doctor
return _doctor(site=site)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 110, in doctor
if is_scheduler_disabled():
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 208, in is_scheduler_disabled
return not frappe.utils.cint(frappe.db.get_single_value(“System Settings”, “enable_scheduler”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 570, in get_single_value
tabSingles where doctype=%s and field=%s"“”, (doctype, fieldname))
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 123, in sql
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 69, in connect
use_unicode=True, charset=‘utf8mb4’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 86, in Connect
return Connection(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 204, in init
super(Connection, self).init(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, ‘Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 “Connection refused”)’)

How can i fix this?

I’m only guessing but the error signifies a more major fault than is caused by editing naming series. I think this is coincidental.

Check server related issues such as disk space and errors in your syslog or running out of memory.