Hi All,
I am installing erpnext on Centos 7. When I execute command “bench --site erp.itd.com install-app erpnext”, I get below screen. Can someone tell me what is this. Thanks in advance.
[bench@localhost erpnext]$ bench --site erp.itd.com install-app erpnext
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/bench/erpnext/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
main()
File "/opt/bench/erpnext/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/opt/bench/erpnext/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/opt/bench/erpnext/apps/frappe/frappe/commands/site.py", line 175, in install_app
_install_app(app, verbose=context.verbose)
File "/opt/bench/erpnext/apps/frappe/frappe/installer.py", line 51, in install_app
frappe.clear_cache()
File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 576, in clear_cache
frappe.cache_manager.clear_user_cache()
File "/opt/bench/erpnext/apps/frappe/frappe/cache_manager.py", line 42, in clear_user_cache
clear_global_cache()
File "/opt/bench/erpnext/apps/frappe/frappe/cache_manager.py", line 48, in clear_global_cache
clear_website_cache()
File "/opt/bench/erpnext/apps/frappe/frappe/website/render.py", line 301, in clear_cache
for method in frappe.get_hooks("website_clear_cache"):
File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 958, in get_hooks
hooks = _dict(cache().get_value("app_hooks", load_app_hooks))
File "/opt/bench/erpnext/apps/frappe/frappe/utils/redis_wrapper.py", line 79, in get_value
val = generator()
File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 932, in load_app_hooks
for app in [app_name] if app_name else get_installed_apps(sort=True):
File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 896, in get_installed_apps
installed = json.loads(db.get_global("installed_apps") or "[]")
File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 702, in get_global
return self.get_default(key, user)
File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 706, in get_default
d = self.get_defaults(key, parent)
File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 724, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File "/opt/bench/erpnext/apps/frappe/frappe/defaults.py", line 77, in get_defaults
globald = get_defaults_for()
File "/opt/bench/erpnext/apps/frappe/frappe/defaults.py", line 204, in get_defaults_for
where parent = %s order by creation""", (parent,), as_dict=1)
File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 122, in sql
self.connect()
File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 75, in connect
self._conn = self.get_connection()
File "/opt/bench/erpnext/apps/frappe/frappe/database/mariadb/database.py", line 90, in get_connection
local_infile = frappe.conf.local_infile)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/__init__.py", line 94, in Connect
return Connection(*args, **kwargs)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py", line 325, in __init__
self.connect()
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py", line 599, in connect
self._request_authentication()
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py", line 861, in _request_authentication
auth_packet = self._read_packet()
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet
packet.check_error()
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, "Access denied for user '_5c7050106469806'@'localhost' (using password: YES)")
[bench@localhost erpnext]$