Try ERPNext Buy Support Partners Foundation

Bench new-site testsite is throwing error

Everything installed properly. At the final step, when i run the command bench new-site testsite, I am getting the following error -
MySQL root password:
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helpe r.py”, line 97, in
main()
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helpe r.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/clic k/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/clic k/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/clic k/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/clic k/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/clic k/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/clic k/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py” , line 34, in new_site
verbose=verbose, install_apps=install_app, source_sql=source_sql, force=forc e)
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py” , line 65, in _new_site
admin_password=admin_password, verbose=verbose, source_sql=source_sql,force= force, reinstall=reinstall)
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, li ne 38, in install_db
create_database_and_user(force, verbose)
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, li ne 62, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.p y”, line 555, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/database.py”, lin e 165, in sql
self.connect()
File “/home/prasanna/erpnext/frappe-bench/apps/frappe/frappe/database.py”, lin e 115, in connect
charset=‘utf8mb4’, use_unicode = True, conv = conversions, local_infile = se lf.local_infile)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/init.py”, line 94, in Connect
return Connection(*args, **kwargs)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/connections.py”, line 325, in init
self.connect()
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/connections.py”, line 599, in connect
self._request_authentication()
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/connections.py”, line 861, in _request_authentication
auth_packet = self._read_packet()
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/connections.py”, line 684, in _read_packet
packet.check_error()
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/protocol.py”, line 220, in check_error
err.raise_mysql_exception(self._data)
File “/home/prasanna/erpnext/frappe-bench/env/lib/python3.6/site-packages/pymy sql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1698, “Access denied for user ‘root’@‘localhost’”)

P.S: I am running this in AWS and I am entering the correct root password also, still this error.

Please help me resolve this error.

Please check if this helps.

Thanks

Jay

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.