Hi all,
Yesterday, I set up a new ERPNext (Ubuntu 18.04 LTS) instance, and migrated my old database to this new one. As the develop
branch was causing me lots of troubles, I switched to the master
branch, and was able to run ERPNext perfectly for one time. After rebooting the instance this morning, I can’t seem to login with the console error message:
Traceback (most recent call last):
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/app.py", line 59, in application
init_request(request)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/app.py", line 121, in init_request
frappe.local.http_request = frappe.auth.HTTPRequest()
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/auth.py", line 53, in __init__
frappe.local.login_manager = LoginManager()
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/auth.py", line 107, in __init__
if self.login()==False: return
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/auth.py", line 126, in login
self.authenticate(user=user, pwd=pwd)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/auth.py", line 206, in authenticate
self.user = self.check_password(user, pwd)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/auth.py", line 218, in check_password
return check_password(user, pwd)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/utils/password.py", line 35, in check_password
)""",{ 'doctype': doctype, 'name': user, 'fieldname': fieldname, 'pwd': pwd }, as_dict=True)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/database.py", line 166, in sql
self._cursor.execute(query, values)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1103, in _read_query_result
result.read()
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1059, in _read_packet
packet.check_error()
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 384, in check_error
err.raise_mysql_exception(self._data)
File "/home/user/.erpnext/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 'salt' in 'field list'")
The same error occurs in logs/frappe.log
.
I saw some earlier queries regarding the same, one of which suggested to switch to develop
branch. I would like to stay away from the develop
branch for a while for stability. Another one suggested to run bench setup-admin-password password
(with password
appropriately changed), but I got the following error:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, 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/user/.erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 94, in <module>
main()
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/commands/site.py", line 423, in set_admin_password
update_password(user='Administrator', pwd=admin_password, logout_all_sessions=logout_all_sessions)
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/utils/password.py", line 66, in update_password
{ 'doctype': doctype, 'name': user, 'fieldname': fieldname, 'pwd': pwd, 'salt': salt })
File "/home/user/.erpnext/frappe-bench/apps/frappe/frappe/database.py", line 166, in sql
self._cursor.execute(query, values)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1103, in _read_query_result
result.read()
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1059, in _read_packet
packet.check_error()
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 384, in check_error
err.raise_mysql_exception(self._data)
File "/home/user/.erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1054, u"Unknown column 'salt' in 'field list'")
Can someone please guide me in resolving this? Seems like a bug in the current master branch.