I’m getting this error when I try login:
Traceback (most recent call last):
File "/home/vagrant/frappe-bench/apps/frappe/frappe/app.py", line 52, in application
init_request(request)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/app.py", line 116, in init_request
frappe.local.http_request = frappe.auth.HTTPRequest()
File "/home/vagrant/frappe-bench/apps/frappe/frappe/auth.py", line 51, in __init__
frappe.local.login_manager = LoginManager()
File "/home/vagrant/frappe-bench/apps/frappe/frappe/auth.py", line 105, in __init__
if self.login()==False: return
File "/home/vagrant/frappe-bench/apps/frappe/frappe/auth.py", line 126, in login
self.authenticate(user=user, pwd=pwd)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/auth.py", line 209, in authenticate
self.check_if_enabled(user)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/auth.py", line 220, in check_if_enabled
self.fail('User disabled or missing', user=user)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/auth.py", line 235, in fail
add_authentication_log(message, user, status="Failed")
File "/home/vagrant/frappe-bench/apps/frappe/frappe/core/doctype/activity_log/activity_log.py", line 44, in add_authentication_log
}).insert(ignore_permissions=True, ignore_links=True)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/document.py", line 211, in insert
self._set_defaults()
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/document.py", line 602, in _set_defaults
new_doc = frappe.new_doc(self.doctype, as_dict=True)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/__init__.py", line 659, in new_doc
return get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/create_new.py", line 21, in get_new_doc
frappe.local.new_doc_templates[doctype] = make_new_doc(doctype)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/create_new.py", line 42, in make_new_doc
set_user_and_static_default_values(doc)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/create_new.py", line 52, in set_user_and_static_default_values
user_permissions = get_user_permissions()
File "/home/vagrant/frappe-bench/apps/frappe/frappe/core/doctype/user_permission/user_permission.py", line 70, in get_user_permissions
filters=dict(user=user)):
File "/home/vagrant/frappe-bench/apps/frappe/frappe/__init__.py", line 1282, in get_all
return get_list(doctype, *args, **kwargs)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/__init__.py", line 1255, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/db_query.py", line 94, in execute
result = self.build_and_run()
File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/db_query.py", line 124, in build_and_run
return frappe.db.sql(query, as_dict=not self.as_list, debug=self.debug, update=self.update)
File "/home/vagrant/frappe-bench/apps/frappe/frappe/database/database.py", line 166, in sql
self._cursor.execute(query)
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 732, in _read_query_result
result.read()
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1075, in read
first_packet = self.connection._read_packet()
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 684, in _read_packet
packet.check_error()
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/home/vagrant/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
InternalError: (1054, u"Unknown column 'applicable_for' in 'field list'")