Traceback (most recent call last): bench new-site ip_address

This is my first time, trying to install new site on the Cloud server Ubuntu 16.04 and here I am stuck! I run “bench new-site ip_adress”, the following outcome appears!
Looking forward to your help!

MySQL root password:
Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ahmadi/frappe-benchV12/env/lib/python3.5/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/ahmadi/frappe-benchV12/env/lib/python3.5/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/ahmadi/frappe-benchV12/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ahmadi/frappe-benchV12/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ahmadi/frappe-benchV12/env/lib/python3.5/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ahmadi/frappe-benchV12/env/lib/python3.5/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/commands/site.py”, line 34, in new_site
no_mariadb_socket=no_mariadb_socket, db_type=db_type, db_host=db_host, db_password=db_password, db_port=db_port)
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/commands/site.py”, line 75, in _new_site
source_sql=source_sql, force=force, reinstall=reinstall, db_type=db_type, db_host=db_host, db_port=db_port, db_password=db_password, no_mariadb_socket=no_mariadb_socket)
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/installer.py”, line 35, in install_db
setup_database(force, source_sql, verbose, no_mariadb_socket)
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/database/init.py”, line 16, in setup_database
return frappe.database.mariadb.setup_db.setup_database(force, source_sql, verbose, no_mariadb_socket=no_mariadb_socket)
File “/home/ahmadi/frappe-benchV12/apps/frappe/frappe/database/mariadb/setup_db.py”, line 45, in setup_database
raise Exception(“Database %s already exists” % (db_name,))
Exception: Database _b0dc45fbb4ea8dcd already exists

bench new-site --help will give you the available options with that command.

bench new-site ip_adress --force should help.

1 Like

Thank you so much @gavindsouza