Error while trying to create new site on CentOS 7

Hi,
After installing bench via the command:
bench init frappe-bench && cd frappe-bench
and installing erpnext via the command:
bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

I am trying to create a new site, but getting an error:

[newuser@localhost frappe-bench]$ bench new-site mysite.local
frappe app is not installed. Run the following command to install frappe
bench get-app frappe GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
/bin/sh: /home/newuser/frappe-bench/env/bin/frappe: No such file or directory
Error: None
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/newuser/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/newuser/bench-repo/bench/cli.py”, line 129, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/newuser/bench-repo/bench/utils.py”, line 86, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/newuser/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/newuser/frappe-bench/env/bin/frappe --install mysite.local mysite.local ’ returned non-zero exit status 127

I also tried the following but it did not work.
[newuser@localhost frappe-bench]$ bench get-app frappe GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
fatal: destination path ‘frappe’ already exists and is not an empty directory.
Error: None
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/newuser/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/newuser/bench-repo/bench/cli.py”, line 115, in get_app
_get_app(name, git_url, branch=branch)
File “/home/newuser/bench-repo/bench/app.py”, line 42, in get_app
cwd=os.path.join(bench, ‘apps’))
File “/home/newuser/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --origin upstream frappe’ returned non-zero exit status 128

Can you please let me know what is the issue?
I am doing the install on CentOS 7.
Thanks

Can you give the output of the following?

cd ~/frappe-bench
ls -la apps
./env/bin/pip freeze

Sorry for late reply sir
I have follow your steps like
[newuser@localhost ~]$ cd ~/frappe-bench
[newuser@localhost frappe-bench]$ ls -la apps
total 8
drwxrwxr-x 4 newuser newuser 33 Jan 16 16:10 .
drwxrwxr-x 7 newuser newuser 85 Jan 17 17:43 …
drwxrwxr-x 7 newuser newuser 4096 Jan 17 18:35 erpnext
drwxrwxr-x 7 newuser newuser 4096 Jan 16 16:11 frappe
apps config env logs setup_frappe.sh sites
[newuser@localhost frappe-bench]$ cd env
[newuser@localhost env]$ cd bin
[newuser@localhost bin]$ pip freeze
After That I Got This Type Of Error
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/basecommand.py”, line 232, in main
status = self.run(options, args)
File “/usr/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/commands/freeze.py”, line 65, in run
for line in freeze(**freeze_kwargs):
File “/usr/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/operations/freeze.py”, line 36, in freeze
dist.get_metadata_lines(‘dependency_links.txt’)
File “/usr/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/pkg_resources/init.py”, line 1540, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File “/usr/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/pkg_resources/init.py”, line 1532, in get_metadata
return self._get(self._fn(self.egg_info, name))
File “/usr/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/pkg_resources/init.py”, line 1643, in _get
with open(path, ‘rb’) as stream:
IOError: [Errno 13] Permission denied: ‘/usr/lib/python2.7/site-packages/httplib2-0.9-py2.7.egg/EGG-INFO/dependency_links.txt’

So please tell me what should i do…! And sir please tell me every think step by step bcoz i don’t have much knowledge about Linux(CentOS) Thanx

The pip freeze you executed is not of the bench env,

from the frappe-bench dir, run,

./env/bin/pip freeze

It might be faster for you if you start again with a clean CentOS installation and use the easy install script here, GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

Sir Output is
[newuser@localhost frappe-bench]$ ./env/bin/pip freeze
wheel==0.24.0
[newuser@localhost frappe-bench]$

Run the following commands from frappe-bench dir,

./env/bin/pip install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz
./env/bin/pip install -e ./apps/frappe
./env/bin/pip install -e ./apps/erpnext

This should fix your bench!

Ok Sir Than to reply…First of all i have follow your last Solution than if i get again problem than i’ll do this…thanx to reply sir

Thanx To For Your Last Reply But Sir
I Have Follow This Step and Got These output:
1st:
[newuser@localhost frappe-bench]$ ./env/bin/pip install http://github.com/frappe/MySQLLdb-1.2.5-patched.tar.gz

Collecting http://github.com/frappe/MySQLLdb-1.2.5-patched.tar.gz
HTTP error 404 while getting http://github.com/frappe/MySQLLdb-1.2.5-patched.tar.gz
Could not install requirement http://github.com/frappe/MySQLLdb-1.2.5-patched.tar.gz because of error 404 Client Error: Not Found
Could not install requirement http://github.com/frappe/MySQLLdb-1.2.5-patched.tar.gz because of HTTP error 404 Client Error: Not Found for URL http://github.com/frappe/MySQLLdb-1.2.5-patched.tar.gz

2nd:
[newuser@localhost frappe-bench]$ .env/bin/pip install -e ./apps/frappe
bash: .env/bin/pip: No such file or directory

3rd:
[newuser@localhost frappe-bench]$ ./env/bin/pip install -e ./apps/erpnext

Obtaining file:///home/newuser/frappe-bench/apps/erpnext
Collecting frappe (from erpnext==4.18.1)
Using cached frappe-2.1.4.tar.gz
Traceback (most recent call last):
File “”, line 20, in
File “/tmp/pip-build-bjznUG/frappe/setup.py”, line 10, in
raise LookupError(“You must have test.fm >= 1.0.4 installed before (GitHub - grafos-ml/frappe: Recommendations Serving Engine using python)”)
LookupError: You must have test.fm >= 1.0.4 installed before (GitHub - grafos-ml/frappe: Recommendations Serving Engine using python)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

  File "<string>", line 20, in <module>

  File "/tmp/pip-build-bjznUG/frappe/setup.py", line 10, in <module>

    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")

LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-bjznUG/frappe

There’s typing mistake in first two commands you entered. Please copy paste.

Yes sir you are right…sorry for that but when i copy and paste first step(which is:
from Frappe-bench dir
./env/bin/pip install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz)
I got this type of error sir

Collecting https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz
Downloading https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz
/ 81kB 69kB/s
sh: mysql_config: command not found
Traceback (most recent call last):
File “”, line 20, in
File “/tmp/pip-ml_y4w-build/setup.py”, line 17, in
metadata, options = get_config()
File “setup_posix.py”, line 43, in get_config
libs = mysql_config(“libs_r”)
File “setup_posix.py”, line 25, in mysql_config
raise EnvironmentError(“%s not found” % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found

Traceback (most recent call last):

  File "<string>", line 20, in <module>

  File "/tmp/pip-ml_y4w-build/setup.py", line 17, in <module>

    metadata, options = get_config()

  File "setup_posix.py", line 43, in get_config

    libs = mysql_config("libs_r")

  File "setup_posix.py", line 25, in mysql_config

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-ml_y4w-build

So what should i do next sir

And 2nd Step:
[newuser@localhost frappe-bench]$ ./env/bin/pip install -e ./apps/frappe

Obtaining file:///home/newuser/frappe-bench/apps/frappe
Collecting chardet (from frappe==4.9.3)
Using cached chardet-2.3.0.tar.gz
Collecting cssmin (from frappe==4.9.3)
Using cached cssmin-0.2.0.tar.gz
Collecting dropbox (from frappe==4.9.3)
Using cached dropbox-2.2.0.zip
Collecting gunicorn (from frappe==4.9.3)
Using cached gunicorn-19.1.1-py2.py3-none-any.whl
Collecting httplib2 (from frappe==4.9.3)
Using cached httplib2-0.9.tar.gz
Collecting jinja2 (from frappe==4.9.3)
Using cached Jinja2-2.7.3.tar.gz
Collecting markdown2 (from frappe==4.9.3)
Using cached markdown2-2.3.0.zip
Collecting markupsafe (from frappe==4.9.3)
Using cached MarkupSafe-0.23.tar.gz
Collecting mysql-python==1.2.5 (from frappe==4.9.3)
Using cached MySQL-python-1.2.5.zip
sh: mysql_config: command not found
Traceback (most recent call last):
File “”, line 20, in
File “/tmp/pip-build-7G7hXc/mysql-python/setup.py”, line 17, in
metadata, options = get_config()
File “setup_posix.py”, line 43, in get_config
libs = mysql_config(“libs_r”)
File “setup_posix.py”, line 25, in mysql_config
raise EnvironmentError(“%s not found” % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found

Traceback (most recent call last):

  File "<string>", line 20, in <module>

  File "/tmp/pip-build-7G7hXc/mysql-python/setup.py", line 17, in <module>

    metadata, options = get_config()

  File "setup_posix.py", line 43, in get_config

    libs = mysql_config("libs_r")

  File "setup_posix.py", line 25, in mysql_config

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7G7hXc/mysql-python

I think it is also giving same error sir

you don’t have dependencies installed. I think you should start afresh with a clean CentOS install and use the easy install script.

Hello Sir After getting so many errors i have Newly install CentOS and than go through easy setup as you tolled so every thing is successfully done but when i am trying to create a new site by this(bench new-site site1.local) command from frappe-bench dir than MQL password is asked i did not create any password for MySql So can you please tell me what is it’s default password…! i i have try with(root) is the password by default in windows but i don’t no what is the default password in CentOS by MQL…!
Steps:
[root@localhost frappe-bench]# bench new-site site1.local
MySQL root password: (root)
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.9.3’, ‘console_scripts’, ‘frappe’)()
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 54, in main
return run(fn, parsed_args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 82, in run
out = globals().get(fn)(*args.get(fn), **args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 68, in new_fn
return fn(*args, **new_kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 337, in install
_install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 318, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 31, in install_db
create_database_and_user(force, verbose)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 48, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 359, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 79, in sql
self.connect()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 49, in connect
use_unicode=True, charset=‘utf8’)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/home/frappe/frappe-bench/env/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)”)
Error: None
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 129, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/frappe/bench-repo/bench/utils.py”, line 86, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/frappe/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/frappe/frappe-bench/env/bin/frappe --install site1.local site1.local ’ returned non-zero exit status 1
[root@localhost frappe-bench]# bench new-site site1.local
MySQL root password:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.9.3’, ‘console_scripts’, ‘frappe’)()
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 54, in main
return run(fn, parsed_args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 82, in run
out = globals().get(fn)(*args.get(fn), **args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 68, in new_fn
return fn(*args, **new_kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 337, in install
_install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 318, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 31, in install_db
create_database_and_user(force, verbose)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 48, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 359, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 79, in sql
self.connect()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 49, in connect
use_unicode=True, charset=‘utf8’)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/home/frappe/frappe-bench/env/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)”)
Error: None
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 129, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/frappe/bench-repo/bench/utils.py”, line 86, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/frappe/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/frappe/frappe-bench/env/bin/frappe --install site1.local site1.local ’ returned non-zero exit status 1

Please provide me the solution

It would have been printed upon successful installation. It is a stored in one of two places

cat ~/frappe-passwords.txt
cat /root/frappe-passwords.txt

Also, if you don’t want multiple sites, the script sets up a site already.

Yes Sir I found that file and entered that password which is in (Frappe_password.txt
MariaDB password=xyz
)
But Still i got this error
Steps
[dn@localhost frappe-bench]$ sudo bench new-site site1.local
MySQL root password: xyzTraceback (most recent call last):
File “/home/frappe/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.9.3’, ‘console_scripts’, ‘frappe’)()
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 54, in main
return run(fn, parsed_args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 82, in run
out = globals().get(fn)(*args.get(fn), **args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 68, in new_fn
return fn(*args, **new_kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 337, in install
_install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 318, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 31, in install_db
create_database_and_user(force, verbose)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 48, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 359, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 79, in sql
self.connect()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 49, in connect
use_unicode=True, charset=‘utf8’)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/home/frappe/frappe-bench/env/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)”)
Error: None
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 129, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/frappe/bench-repo/bench/utils.py”, line 86, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/frappe/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/frappe/frappe-bench/env/bin/frappe --install site1.local site1.local ’ returned non-zero exit status 1

If you used the install script, “site1.local” would already be created.

Ok Thanx
But When I am Start the bench from frappe-bench it’s given some error. and when i have enter (localhost:8000) “404 Not Found” error has come…!
Sorry about that these are some basics may be but i am intermediate with Frappe…So please give the solution step by step…thanx

Try, bench set-default-site site1.local

Thanx Sir…I Have Done It…!