Error In Ubuntu

Hello,

M facing the below problem while accessing through url

http://139.59.71.63:8000/

pymysql.err.InternalError

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

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

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

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

return self.app(environ, start_response)

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

return self.app(environ, start_response)

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

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

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

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

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

response = handle_exception(e)

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

http_status_code=http_status_code)

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

resolve_redirect(path)

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

redirects = frappe.get_hooks('website_redirects')

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

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

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

val = generator()

File "/opt/erpnext1/erpnext1/apps/frappe/frappe/__init__.py", 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/__init__.py", line 853, in get_installed_apps

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

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

return self.get_default(key, user)

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

d = self.get_defaults(key, parent)

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

defaults = frappe.defaults.get_defaults(parent)

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

globald = get_defaults_for()

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

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

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

self.connect()

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

self._conn = self.get_connection()

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

local_infile = frappe.conf.local_infile)

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

return Connection(*args, **kwargs)

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

self.connect()

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

self._request_authentication()

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

auth_packet = self._read_packet()

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

packet.check_error()

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

err.raise_mysql_exception(self._data)

File "/opt/erpnext1/erpnext1/env/lib/python2.7/site-packages/pymysql/err.py", 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:

BTW,

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