On Thu, Aug 7, 2014 at 12:51 PM, Rohit Waghchaure
<
ro...@indictranstech.com> wrote:
> Hi,
>
> To Install frappe bench on linux(Ubuntu 14.04 LTS) system , i used following
> steps:
>
> I have created a folder called frappe_latest
> I have created own environment using command "virtualenv ." and activated
> environment using command "source ./bin/activate"
> Then i typed command "wget
>
https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh"
> and "bash setup_frappe.sh"
> Then i typed command "git clone
https://github.com/frappe/bench bench-repo"
> After this, i typed following commands
>
> bench init frappe-bench && cd frappe-bench
> cd frappe-bench ( automatically after run 1 command)
> bench get-app erpnext
https://github.com/frappe/erpnext
> bench get-app shopping_cart
https://github.com/frappe/shopping-cart
> bench new-site test_site
>
> When i typed command "bench new-site test_site" to create a site i got
> following error
>
> Traceback (most recent call last):
> File
> "/home/indictrans/webapps/erp-nektargift/frappe-bench/env/bin/frappe", line
> 9, in <module>
> load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
> File
> "/home/indictrans/webapps/erp-nektargift/frappe-bench/apps/frappe/frappe/cli.py",
> line 53, in main
> return run(fn, parsed_args)
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/cli.py",
> line 81, in run
> out = globals().get(fn)(*args.get(fn), **args)
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/cli.py",
> line 67, in new_fn
> return fn(*args, **new_kwargs)
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/cli.py",
> line 325, in install
> _install(db_name, root_login, root_password, source_sql, admin_password,
> force, site_config, reinstall, quiet, install_apps)
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/cli.py",
> line 306, in _install
> admin_password = admin_password, verbose=verbose, force=force,
> site_config=site_config, reinstall=reinstall)
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/installer.py",
> line 30, in install_db
> create_database_and_user(force, verbose)
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/installer.py",
> line 43, in create_database_and_user
> if force or (db_name not in dbman.get_database_list()):
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/model/db_schema.py",
> line 353, in get_database_list
> return [d[0] for d in self.db.sql("SHOW DATABASES")]
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/database.py",
> line 76, in sql
> self.connect()
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/apps/frappe/frappe/database.py",
> line 47, in connect
> use_unicode=True, charset='utf8')
> File
> "/home/indictrans/webapps/frappe_latest/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py",
> line 81, in Connect
> return Connection(*args, **kwargs)
> File
> "/home/indictrans/webapps/frappe_latest/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)")
> Error: None
> Traceback (most recent call last):
> File "/home/indictrans/webapps/frappe_latest/bin/bench", line 9, in
> <module>
> load_entry_point('bench==0.1', 'console_scripts', 'bench')()
> File "/home/indictrans/webapps/frappe_latest/bench-repo/bench/cli.py",
> line 26, in cli
> return bench()
> File
> "/home/indictrans/webapps/frappe_latest/local/lib/python2.7/site-packages/click/core.py",
> line 488, in __call__
> return self.main(*args, **kwargs)
> File
> "/home/indictrans/webapps/frappe_latest/local/lib/python2.7/site-packages/click/core.py",
> line 474, in main
> self.invoke(ctx)
> File
> "/home/indictrans/webapps/frappe_latest/local/lib/python2.7/site-packages/click/core.py",
> line 758, in invoke
> return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
> File
> "/home/indictrans/webapps/frappe_latest/local/lib/python2.7/site-packages/click/core.py",
> line 767, in invoke_subcommand
> return cmd.invoke(cmd_ctx)
> File
> "/home/indictrans/webapps/frappe_latest/local/lib/python2.7/site-packages/click/core.py",
> line 659, in invoke
> ctx.invoke(self.callback, **ctx.params)
> File
> "/home/indictrans/webapps/frappe_latest/local/lib/python2.7/site-packages/click/core.py",
> line 325, in invoke
> return callback(*args, **kwargs)
> File "/home/indictrans/webapps/frappe_latest/bench-repo/bench/cli.py",
> line 70, in new_site
> _new_site(site)
> File "/home/indictrans/webapps/frappe_latest/bench-repo/bench/utils.py",
> line 72, in new_site
> exec_cmd("{frappe} --install {site}
> {site}".format(frappe=get_frappe(bench=bench), site=site),
> cwd=os.path.join(bench, 'sites'))
> File "/home/indictrans/webapps/frappe_latest/bench-repo/bench/utils.py",
> line 56, in exec_cmd
> subprocess.check_call(cmd, cwd=cwd, shell=True)
> File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command
> '/home/indictrans/webapps/frappe_latest/frappe-bench/env/bin/frappe
> --install test_site test_site' returned non-zero exit status 1
>
> Please suggest me the right process
>