Error In Ubuntu


M facing the below problem while accessing through url


InternalError: (1698, u"Access denied for user ‘_86cf82546fc743f4’@‘localhost’")
Traceback (most recent call last)

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 15, in __call__

return super(StaticDataMiddleware, self).__call__(environ, start_response)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/werkzeug/", line 766, in __call__

return, start_response)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/werkzeug/", line 766, in __call__

return, start_response)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/werkzeug/", line 228, in application

return ClosingIterator(app(environ, start_response), self.cleanup)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/werkzeug/", line 308, in application

resp = f(*args[:-2] + (request,))

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 81, in application

response = handle_exception(e)

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 187, in handle_exception


File "/opt/erpnext1/erpnext1/apps/frappe/frappe/website/", line 33, in render


File "/opt/erpnext1/erpnext1/apps/frappe/frappe/website/", line 22, in resolve_redirect

redirects = frappe.get_hooks('website_redirects')

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 911, in get_hooks

hooks = _dict(cache().get_value("app_hooks", load_app_hooks))

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/utils/", line 72, in get_value

val = generator()

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 889, in load_app_hooks

for app in [app_name] if app_name else get_installed_apps(sort=True):

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 853, in get_installed_apps

installed = json.loads(db.get_global("installed_apps") or "[]")

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/database/", line 683, in get_global

return self.get_default(key, user)

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/database/", line 687, in get_default

d = self.get_defaults(key, parent)

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/database/", line 705, in get_defaults

defaults = frappe.defaults.get_defaults(parent)

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 71, in get_defaults

globald = get_defaults_for()

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/", line 196, in get_defaults_for

where parent = %s order by creation""", (parent,), as_dict=1)

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/database/", line 120, in sql


File "/opt/erpnext1/erpnext1/apps/frappe/frappe/database/", line 73, in connect

self._conn = self.get_connection()

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/database/mariadb/", line 85, in get_connection

local_infile = frappe.conf.local_infile)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 94, in Connect

return Connection(*args, **kwargs)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 327, in __init__


File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 598, in connect


File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 852, in _request_authentication

auth_packet = self._read_packet()

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 683, in _read_packet


File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 220, in check_error


File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/", line 109, in raise_mysql_exception

raise errorclass(errno, errval)

InternalError: (1698, u"Access denied for user '_86cf82546fc743f4'@'localhost'")

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.

To switch between the interactive traceback and the plaintext one, you can click on the “Traceback” headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

Brought to you by DON’T PANIC, your friendly Werkzeug powered traceback interpreter.

Kindly guide us to resolve the above problem.

Thanks in advance

Regards Vaibhav

See if the solution mentioned here solves your problem:


_86cf82546fc743f4 is your MySQL user name and currentsite’s database name.