When Creating New site Shows Error

erpnext@erpnext-vm:~/frappe-bench$ bench new-site nishta
MySQL root password:
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, 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/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 77, in
main()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 14, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/commands.py”, line 65, in new_site
_new_site(db_name, site, mariadb_root_username=mariadb_root_username, mariadb_root_password=mariadb_root_password, admin_password=admin_password, verbose=verbose, install_apps=install_app, source_sql=source_sql, force=force)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/commands.py”, line 83, in _new_site
install_db(root_login=mariadb_root_username, root_password=mariadb_root_password, db_name=db_name, admin_password=admin_password, verbose=verbose, source_sql=source_sql,force=force, reinstall=reinstall)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, line 31, in install_db
create_database_and_user(force, verbose)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, line 49, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 394, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line 98, in sql
self.connect()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line 48, in connect
use_unicode=True, charset=‘utf8’)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 193, in init
super(Connection, self).init(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, “Access denied for user ‘root’@‘localhost’ (using password: YES)”)
erpnext@erpnext-vm:~/frappe-bench$

I have taken MySQL root password from site_config.json

mysql root password is not mentioned on site_config.json.If you have done the production setup then you can find the MySQL root password in frappe_password.txt file.

Thanks,
Makarand

Hi I have download the ova file from the https://erpnext.com/download. and working with VM For this i didn’t get production setup

Hi @Dhamu,

username: frappe
password: frappe
MySQL root password: frappe

credentials are mentioned on the same link. If this doesn’t work then try MySQL root password : erpnext.

Thanks,
Makarand

Hi thanks for your reply i have noticed and got it
I have did all these steps:

bench new-site vasantha
bench --site vasantha install-app erpnext
bench set-nginx-port vasantha 82
bench setup nginx
sudo service nginx reload

But It shows like this.

Hi I am Running these in VM the another site shows not available. Shall we set every site as default. Opening each site and set as default. Whether it will work