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