ERPNext Installation Failed at the time of site creation

163 views
Skip to first unread message

Rohit Waghchaure

unread,
Aug 7, 2014, 3:21:42 AM8/7/14
to erpnext-dev...@googlegroups.com
Hi,

To Install frappe bench on linux(Ubuntu 14.04 LTS) system , i used following steps:
  1. I have created a folder called frappe_latest
  2. I have created own environment using command "virtualenv ." and activated environment using command "source ./bin/activate"
  3. Then i typed command "wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh" and "bash setup_frappe.sh"
  4. Then i typed command "git clone https://github.com/frappe/bench bench-repo"
  5. After this, i typed following commands
    1.  bench init frappe-bench && cd frappe-bench
    2. cd frappe-bench ( automatically after run 1 command)
    3. bench get-app erpnext https://github.com/frappe/erpnext
    4. bench get-app shopping_cart https://github.com/frappe/shopping-cart
    5. bench new-site test_site
  6. 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

Thanking you

Pratik Vyas

unread,
Aug 7, 2014, 4:39:00 AM8/7/14
to erpnext-dev...@googlegroups.com
Looking at the traceback, it seems that the mysql root password you
entered was wrong.


> Thanking you
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/bc485e44-e48a-4bc8-bf89-d200f325b0a1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Rohit Waghchaure

unread,
Aug 7, 2014, 5:01:32 AM8/7/14
to erpnext-dev...@googlegroups.com
Hi Pratick,

Thank you pratick now it installed.





For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,

 

Rohit


Rohit Waghchaure

Software Developer

New Indictrans Technologies Pvt. Ltd. - Pune

Office: +91-20-65700800 | Mobile: +91-9011857174

 

www.indictranstech.com | Lat: 18.501994   Lon: 73.79766



This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit http://www.indictranstech.com/  to know more about New Indictrans Private Limited. This email is not spam. We follow 'US Unsolicited Electronic Mail Act of 2000', which states that an e-mail cannot be considered SPAM if it contains contact/removal information, which this e-mail does. This e-mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If, by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or it's attachment(s) other than by its intended recipient(s) is strictly prohibited. Any opinions expressed in this email are those of the individual and not necessarily of the organisation. Before opening attachment(s), please scan the attachment for viruses.". In case & if you do not wish to receive e-mail (the way you have received it today for what so ever cause or reasons) in near future? Reply back to this email saying "Remove e-mail ID". Within two working days your ID will be removed
Reply all
Reply to author
Forward
0 new messages