@pdvyas @peterschmidler
I have same problem, restart the droplet will fix the problem, it is definitely the MariaDB problem because the database is failed. My web.error log file showing that the database is not able to connect. If I run service mysqld start it will show me the database is failed to start with error code.
Is it due to memory not enough problem? How should I fix the problem?
[2017-03-24 05:04:17 +0000] [712] [ERROR] Error handling request / Traceback (most recent call last): File "/home/john/frappe-bench/env/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle self.handle_request(listener, req, client, addr) File "/home/john/frappe-bench/env/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/home/john/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application return ClosingIterator(app(environ, start_response), self.cleanup) File "/home/john/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 291, in application return f(*args[:-2] + (request,))(*args[-2:]) File "/home/john/frappe-bench/apps/frappe/frappe/app.py", line 88, in application frappe.db.rollback() File "/home/john/frappe-bench/apps/frappe/frappe/database.py", line 732, in rollback self.sql("rollback") File "/home/john/frappe-bench/apps/frappe/frappe/database.py", line 106, in sql self.connect() File "/home/john/frappe-bench/apps/frappe/frappe/database.py", line 52, in connect use_unicode=True, charset='utf8') File "/home/john/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/john/frappe-bench/env/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/lib/mysql/mysql.sock\' (111 "Connection refused")') [2017-03-24 05:04:18 +0000] [712] [ERROR] Error handling request / Traceback (most recent call last): File "/home/john/frappe-bench/env/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle self.handle_request(listener, req, client, addr) File "/home/john/frappe-bench/env/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/home/john/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application return ClosingIterator(app(environ, start_response), self.cleanup) File "/home/john/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 291, in application return f(*args[:-2] + (request,))(*args[-2:]) File "/home/john/frappe-bench/apps/frappe/frappe/app.py", line 88, in application frappe.db.rollback() File "/home/john/frappe-bench/apps/frappe/frappe/database.py", line 732, in rollback self.sql("rollback") File "/home/john/frappe-bench/apps/frappe/frappe/database.py", line 106, in sql self.connect() File "/home/john/frappe-bench/apps/frappe/frappe/database.py", line 52, in connect use_unicode=True, charset='utf8') File "/home/john/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/john/frappe-bench/env/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/lib/mysql/mysql.sock\' (111 "Connection refused")')