I can not create a site in frappe

hey, guys
I was installing frappe from this docs in git-hub

It was working fine till create a site in frappe bench by using this command.

bench new-site dcode.com

It asks me for mysql root password, when wrote it it gives me this error:

MySQL root password:
Traceback (most recent call last):
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/commands/site.py”, line 109, in new_site
_new_site(
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/installer.py”, line 83, in _new_site
install_db(
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/installer.py”, line 166, in install_db
setup_database(force, verbose, mariadb_user_host_login_scope)
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/init.py”, line 21, in setup_database
return frappe.database.mariadb.setup_db.setup_database(force, verbose, mariadb_user_host_login_scope)
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/mariadb/setup_db.py”, line 34, in setup_database
dbman.create_user(db_user, frappe.conf.db_password, **dbman_kwargs)
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/db_manager.py”, line 17, in create_user
host = host or self.get_current_host()
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/db_manager.py”, line 14, in get_current_host
return self.db.sql(“select user()”)[0][0].split(“@”)[1]
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/database.py”, line 213, in sql
self.connect()
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/database.py”, line 118, in connect
self._conn: “MariadbConnection” | “PostgresConnection” = self.get_connection()
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 107, in get_connection
conn = self._get_connection()
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 113, in _get_connection
return self.create_connection()
File “/home/saifsabry/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 116, in create_connection
return pymysql.connect(**self.get_connection_settings())
File “/home/saifsabry/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py”, line 361, in init
self.connect()
File “/home/saifsabry/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py”, line 669, in connect
self._request_authentication()
File “/home/saifsabry/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py”, line 957, in _request_authentication
auth_packet = self._read_packet()
File “/home/saifsabry/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py”, line 775, in _read_packet
packet.raise_for_error()
File “/home/saifsabry/frappe-bench/env/lib/python3.10/site-packages/pymysql/protocol.py”, line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File “/home/saifsabry/frappe-bench/env/lib/python3.10/site-packages/pymysql/err.py”, line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1698, “Access denied for user ‘root’@‘localhost’”)
Site creation failed, do you want to rollback the site? [y/N]: y

so idk what is that it was working fine so please if anyone knew what is this plz help me .
thank you

Hi,

You are entering mysql password wrong.

Please enter correct mysql password.

Regards,

Divyesh M.

Hi,where can I change this password ?
By the way I was putting one password for all of the things I don’t think it wrong.
One more question is there is any external command out of this document that well make the frappe framework works.

Regards,
Saif Sabry.

Refer this link all commands and step by step installation in new instance

3 Likes

this error shows up when I start initialization of the frappe project

bench init --frappe-branch version-15 frappe-bench

Cloning into ‘frappe’…
remote: Enumerating objects: 3313, done.
remote: Counting objects: 100% (3313/3313), done.
remote: Compressing objects: 100% (2990/2990), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 6833 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
subprocess.CalledProcessError: Command ‘git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-15 --depth 1 --origin upstream’ returned non-zero exit status 128.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 75, in init
init(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/system.py”, line 87, in init
get_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 770, in get_app
app.get()
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 203, in get
self.bench.run(
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 178, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-15 --depth 1 --origin upstream

Remove your all bench u have created and format packages if possible then try my link all commands it will work for installation 100%

1 Like

Is there is a command the remove all packages automatically or shall i do it manually??

remove your bench and setup all requirements with document all setup enter in your terminal and then try it is work

1 Like

I have same problem
Can you help me to resolve it?