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/app.py", line 66, in application
frappe.local.http_request = frappe.auth.HTTPRequest()
File "/home/test/frappe-bench/apps/frappe/frappe/auth.py", line 44, in __init__
frappe.local.login_manager = LoginManager()
File "/home/test/frappe-bench/apps/frappe/frappe/auth.py", line 94, in __init__
self.login()
File "/home/test/frappe-bench/apps/frappe/frappe/auth.py", line 109, in login
self.authenticate()
File "/home/test/frappe-bench/apps/frappe/frappe/auth.py", line 170, in authenticate
self.check_if_enabled(user)
File "/home/test/frappe-bench/apps/frappe/frappe/auth.py", line 178, in check_if_enabled
self.fail('User disabled or missing')
File "/home/test/frappe-bench/apps/frappe/frappe/auth.py", line 191, in fail
raise frappe.AuthenticationError
AuthenticationError
Pyver
Python 2.7.6: /home/test/frappe-bench/env/bin/python (prefix: /home/test/frappe-bench/env)
Ausnahme
{
"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.

Thanks,
Dan

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/app.py", line 69, in application
    response = frappe.handler.handle()
  File "/home/test/frappe-bench/apps/frappe/frappe/handler.py", line 20, in handle
    execute_cmd(cmd)
  File "/home/test/frappe-bench/apps/frappe/frappe/handler.py", line 37, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/test/frappe-bench/apps/frappe/frappe/__init__.py", line 798, in call
    return fn(*args, **newargs)
  File "/home/test/frappe-bench/apps/frappe/frappe/desk/page/applications/applications.py", line 79, in install_app
    frappe.installer.install_app(name)
  File "/home/test/frappe-bench/apps/frappe/frappe/installer.py", line 124, in install_app
    sync_for(name, force=True, sync_everything=True, verbose=verbose)
  File "/home/test/frappe-bench/apps/frappe/frappe/model/sync.py", line 49, in sync_for
    update_progress_bar("Updating {0}".format(app_name), i, l)
  File "/home/test/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 387, in update_progress_bar
    sys.stdout.flush()
 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 site2.example.name
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

Thanks,
Makarand

4 Likes

Thank you very much @makarand_b