PermissionError: [Errno 13] Permission denied: './apps' when trying to bench initiate ERPNEXT

Greetings Everyone, Please i would need your help. Following Synbricks tutorials @

when trying to run command, bench init frappe-bench --verbose --frappe-branch version-13

this error message comes up,

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
File “/usr/local/lib/python3.8/dist-packages/bench/”, line 71, in cli
cmd_from_sys = get_cmd_from_sysargv()
File “/usr/local/lib/python3.8/dist-packages/bench/utils/”, line 55 4, in get_cmd_from_sysargv
if sys_argv.index(arg) == 0 and arg in Bench(“.”).apps:
File “/usr/local/lib/python3.8/dist-packages/bench/”, line 67, in in it
self.apps = BenchApps(self)
File “/usr/local/lib/python3.8/dist-packages/bench/”, line 174, in i nit
File “/usr/local/lib/python3.8/dist-packages/bench/”, line 278, in ini tialize_apps
for x in os.listdir(os.path.join(, “apps”))
PermissionError: [Errno 13] Permission denied: ‘./apps’

can anyone help. thanks

Change the permissions of the user’s directory with the following command:
chmod -R o+rx /home/[frappe-user]/

Thank you Sir.

But i got issues when i run this command,
bench new-site [your site], even when i reset my mysql password and i run the bench new-site this error appears,

Traceback (most recent call last):
File “/usr/lib/python3.10/”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/”, line 86, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 109, in
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 18, in main
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/”, line 829, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/”, line 782, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/”, line 74, in new_site
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 80, in _new_site
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 156, in install_db
setup_database(force, source_sql, verbose, no_mariadb_socket)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/”, line 20, in setup_database
return frappe.database.mariadb.setup_db.setup_database(
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/”, line 41, in setup_database
if force or (db_name not in dbman.get_database_list()):
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/”, line 49, in get_database_list
return self.db.sql(“SHOW DATABASES”, pluck=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/”, line 199, in sql
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/”, line 113, in connect
self._conn = self.get_connection()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/”, line 98, in get_connection
conn = self._get_connection()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/”, line 104, in _get_connection
return self.create_connection()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/”, line 107, in create_connection
return pymysql.connect(**self.get_connection_settings())
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/pymysql/”, line 353, in init
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/pymysql/”, line 633, in connect
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/pymysql/”, line 907, in _request_authentication
auth_packet = self._read_packet()
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/pymysql/”, line 725, in _read_packet
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/pymysql/”, line 221, in raise_for_error
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/pymysql/”, line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, “Access denied for user ‘root’@‘localhost’ (using password: YES)”)

please can you help me. that where am stucked.

if when i run bench site on the site i was trying to create, it says site already exist. But i can’t use the site since that errors above occurs which don’t allow me to setup up password admin password to login my created from bench new site

And When i ran this command, SELECT user,authentication_string,plugin,host FROM mysql.user;

i find out that my mysql localhost authentication string is invalid, while my mariadb localhost has no authentication string, but my root localhost has authentication string. what should i do?