Here are the log records from frappelog, Actually having DNS based multitenancy setup.
[ERROR] 2017-04-07 08:01:10,218 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: gamma.domain.com Exception in Enqueue Events for Site gcc.aaimaa.in Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, 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/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')
[ERROR] 2017-04-07 08:01:10,219 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: site1.local Exception in Enqueue Events for Site site1.local Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, 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/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')
[ERROR] 2017-04-07 08:05:10,505 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: beta.domain.com Exception in Enqueue Events for Site beta.aaimaa.in Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, 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/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')
[ERROR] 2017-04-07 08:05:10,506 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: alpha.domain.com Exception in Enqueue Events for Site gcc.aaimaa.in Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, 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/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')
[ERROR] 2017-04-07 08:05:10,507 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: site1.local Exception in Enqueue Events for Site site1.local Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, 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/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')