Unable to access the ERPNEXT page after easy install

I have setup erpnext on a an ubuntu 16.04. While the development easy install went through without any error. Also it allows me to start using bench start. But on trying the url http:localhost:8000 I get the following error (“localhost does not exist”) . The complete stack is provided below:

15:31:56 web.1            | localhost does not exist
15:31:56 web.1            | ----------------------------------------
15:31:56 web.1            | Exception happened during processing of request from ('127.0.0.1', 39060)
15:31:56 web.1            | Traceback (most recent call last):
15:31:56 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread
15:31:56 web.1            |     self.finish_request(request, client_address)
15:31:56 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
15:31:56 web.1            |     self.RequestHandlerClass(request, client_address, self)
15:31:56 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
15:31:56 web.1            |     self.handle()
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 216, in handle
15:31:56 web.1            |     rv = BaseHTTPRequestHandler.handle(self)
15:31:56 web.1            |   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
15:31:56 web.1            |     self.handle_one_request()
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 251, in handle_one_request
15:31:56 web.1            |     return self.run_wsgi()
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
15:31:56 web.1            |     execute(self.server.app)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 183, in execute
15:31:56 web.1            |     for data in application_iter:
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 284, in debug_application
15:31:56 web.1            |     app_iter = self.app(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
15:31:56 web.1            |     return super(StaticDataMiddleware, self).__call__(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
15:31:56 web.1            |     return self.app(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
15:31:56 web.1            |     return self.app(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application
15:31:56 web.1            |     return ClosingIterator(app(environ, start_response), self.cleanup)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 291, in application
15:31:56 web.1            |     return f(*args[:-2] + (request,))(*args[-2:])
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 52, in application
15:31:56 web.1            |     init_request(request)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 103, in init_request
15:31:56 web.1            |     frappe.init(site=site, sites_path=_sites_path)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 120, in init
15:31:56 web.1            |     local.conf = _dict(get_site_config())
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 175, in get_site_config
15:31:56 web.1            |     sys.exit(1)
15:31:56 web.1            | SystemExit: 1
15:31:56 web.1            | ----------------------------------------
15:31:56 web.1            | localhost does not exist
15:31:56 web.1            | ----------------------------------------
15:31:56 web.1            | Exception happened during processing of request from ('127.0.0.1', 39062)
15:31:56 web.1            | Traceback (most recent call last):
15:31:56 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread
15:31:56 web.1            |     self.finish_request(request, client_address)
15:31:56 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
15:31:56 web.1            |     self.RequestHandlerClass(request, client_address, self)
15:31:56 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
15:31:56 web.1            |     self.handle()
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 216, in handle
15:31:56 web.1            |     rv = BaseHTTPRequestHandler.handle(self)
15:31:56 web.1            |   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
15:31:56 web.1            |     self.handle_one_request()
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 251, in handle_one_request
15:31:56 web.1            |     return self.run_wsgi()
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
15:31:56 web.1            |     execute(self.server.app)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 183, in execute
15:31:56 web.1            |     for data in application_iter:
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 284, in debug_application
15:31:56 web.1            |     app_iter = self.app(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
15:31:56 web.1            |     return super(StaticDataMiddleware, self).__call__(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
15:31:56 web.1            |     return self.app(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
15:31:56 web.1            |     return self.app(environ, start_response)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application
15:31:56 web.1            |     return ClosingIterator(app(environ, start_response), self.cleanup)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 291, in application
15:31:56 web.1            |     return f(*args[:-2] + (request,))(*args[-2:])
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 52, in application
15:31:56 web.1            |     init_request(request)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 103, in init_request
15:31:56 web.1            |     frappe.init(site=site, sites_path=_sites_path)
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 120, in init
15:31:56 web.1            |     local.conf = _dict(get_site_config())
15:31:56 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 175, in get_site_config
15:31:56 web.1            |     sys.exit(1)
15:31:56 web.1            | SystemExit: 1

did you try the production setup?

we just switched on dns multi-tenant by default. (now I know why it was not the default :))

Quick fix;

bench config dns_multitenant off
bench setup nginx

and try again

I did not try the production setup. The quick fix with above two commands did not work. Still the same error.

Still the same error after making the above mentioned setup. Have also rebooted the server. Any other solution?

Resolved the issue by running the below two commands, looks like the easy install does not create the default site.
bench new-site localhost
bench --site localhost install-app erpnext

3 Likes