The server was rebooted, and since then I am getting Internal Server Error on ERPNext login page. I have already confirmed that mysql/MariaDB is running.
~$ bench run-tests
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/username/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/username/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/username/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/username/frappe-bench/apps/frappe/frappe/commands.py", line 790, in run_tests
force=context.force, profile=profile)
File "/home/username/frappe-bench/apps/frappe/frappe/test_runner.py", line 25, in main
frappe.clear_cache()
File "/home/username/frappe-bench/apps/frappe/frappe/__init__.py", line 425, in clear_cache
for fn in frappe.get_hooks("clear_cache"):
File "/home/username/frappe-bench/apps/frappe/frappe/__init__.py", line 721, in get_hooks
hooks = _dict(cache().get_value("app_hooks", load_app_hooks))
File "/home/username/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 68, in get_value
val = generator()
File "/home/username/frappe-bench/apps/frappe/frappe/__init__.py", line 689, in load_app_hooks
for app in [app_name] if app_name else get_installed_apps(sort=True):
File "/home/username/frappe-bench/apps/frappe/frappe/__init__.py", line 669, in get_installed_apps
installed = json.loads(db.get_global("installed_apps") or "[]")
File "/home/username/frappe-bench/apps/frappe/frappe/database.py", line 642, in get_global
return self.get_default(key, user)
File "/home/username/frappe-bench/apps/frappe/frappe/database.py", line 654, in get_default
d = self.get_defaults(key, parent)
File "/home/username/frappe-bench/apps/frappe/frappe/database.py", line 660, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File "/home/username/frappe-bench/apps/frappe/frappe/defaults.py", line 72, in get_defaults
globald = get_defaults_for()
File "/home/username/frappe-bench/apps/frappe/frappe/defaults.py", line 179, in get_defaults_for
where parent = %s order by creation""", (parent,), as_dict=1)
File "/home/username/frappe-bench/apps/frappe/frappe/database.py", line 106, in sql
self.connect()
File "/home/username/frappe-bench/apps/frappe/frappe/database.py", line 52, in connect
use_unicode=True, charset='utf8')
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/home/username/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, 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\' (2 "No such file or directory")')
also:
~$ bench start
Traceback (most recent call last):
File "/usr/local/bin/honcho", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/honcho/command.py", line 266, in main
COMMANDS[args.command](args)
File "/usr/local/lib/python2.7/dist-packages/honcho/command.py", line 202, in command_start
manager = Manager()
File "/usr/local/lib/python2.7/dist-packages/honcho/manager.py", line 42, in __init__
self.events = multiprocessing.Queue()
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 218, in Queue
return Queue(maxsize)
File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
self._rlock = Lock()
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 30] Read-only file system