Error trying to install ERPNext on site

Hi there,

it has been a long time I’ve been here…but to be honest :wink: my V4 ist working perfectly since first install.
Well now I am trying to setup a V6 multi-tentant site whilst everything worked perfect as well it won’t let me install erpnext on any of my three sites.

The callback:

Traceback (most recent call last):
File "/home/test/frappe-bench/apps/frappe/frappe/", line 66, in application
frappe.local.http_request = frappe.auth.HTTPRequest()
File "/home/test/frappe-bench/apps/frappe/frappe/", line 44, in __init__
frappe.local.login_manager = LoginManager()
File "/home/test/frappe-bench/apps/frappe/frappe/", line 94, in __init__
File "/home/test/frappe-bench/apps/frappe/frappe/", line 109, in login
File "/home/test/frappe-bench/apps/frappe/frappe/", line 170, in authenticate
File "/home/test/frappe-bench/apps/frappe/frappe/", line 178, in check_if_enabled'User disabled or missing')
File "/home/test/frappe-bench/apps/frappe/frappe/", line 191, in fail
raise frappe.AuthenticationError
Python 2.7.6: /home/test/frappe-bench/env/bin/python (prefix: /home/test/frappe-bench/env)
"args": "()", 
"http_status_code": "401", 
"message": "''"

By the way:
My setup is Ubuntu 14.04.3 LTS and I have used the production install script from the github rep.


I restarted the server and tried setting up the sites again…

I also tried:

sudo bench install-app erpnext hoth

but it is not working…any clues?

Sorry for flooding this topic…but trying to install another app gives the following:

    Traceback (innermost last):
  File "/home/test/frappe-bench/apps/frappe/frappe/", line 69, in application
    response = frappe.handler.handle()
  File "/home/test/frappe-bench/apps/frappe/frappe/", line 20, in handle
  File "/home/test/frappe-bench/apps/frappe/frappe/", line 37, in execute_cmd
    ret =, **frappe.form_dict)
  File "/home/test/frappe-bench/apps/frappe/frappe/", line 798, in call
    return fn(*args, **newargs)
  File "/home/test/frappe-bench/apps/frappe/frappe/desk/page/applications/", line 79, in install_app
  File "/home/test/frappe-bench/apps/frappe/frappe/", line 124, in install_app
    sync_for(name, force=True, sync_everything=True, verbose=verbose)
  File "/home/test/frappe-bench/apps/frappe/frappe/model/", line 49, in sync_for
    update_progress_bar("Updating {0}".format(app_name), i, l)
  File "/home/test/frappe-bench/apps/frappe/frappe/utils/", line 387, in update_progress_bar
 IOError: [Errno 32] Broken pipe

Hi all,

guess this can be closed.
Just for your information. I was not able to fix the issue. Glad I had a snapshot of my fresh ubuntu so it was not a big deal to start from scratch.

Basically if you want to run multi setup do it as following:

Create a new site

bench new-site site2name
bench --site site2name install-app erpnext
bench setup nginx
sudo service nginx reload 
bench set-url-root
bench setup nginx
sudo service nginx reload

Some times it needs to restart the whole Ubuntu so maybe do a sudo reboot after that.

1 Like

@daniel did it work alright the second time?

@rmehta yes!

by the way @rmehta, is there a chance to delete a site?

Hi @daniel

bench drop-site SITE-NAME

it will remove the site and keep the archive of deleted site at /frappe-bench/archived_sites directory



Thank you very much @makarand_b