I just managed to deploy the ERPNext application on an ec2 server. Everything seemed to work fine, until the point where I tried to login with my newly created user ID. The server error log shows the occurrence of an exception:
Traceback (most recent call last):
File "/home/erpnext/erpnext/erpnext/lib/webnotes/middlewares.py", line 12, in __call__
return super(StaticDataMiddleware, self).__call__(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 224, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 285, in application
return f(*args[:-2] + (request,))(*args[-2:])
File "/home/erpnext/erpnext/erpnext/lib/webnotes/app.py", line 50, in application
webnotes.http_request = webnotes.auth.HTTPRequest()
File "/home/erpnext/erpnext/erpnext/lib/webnotes/auth.py", line 51, in __init__
webnotes.local.login_manager.run_trigger('on_login_post_session')
File "/home/erpnext/erpnext/erpnext/lib/webnotes/auth.py", line 155, in run_trigger
getattr(event_handlers, method)(self)
File "/home/erpnext/erpnext/erpnext/app/startup/event_handlers.py", line 35, in on_login_post_session
set_cart_count()
File "/home/erpnext/erpnext/erpnext/app/selling/utils/cart.py", line 14, in set_cart_count
quotation = _get_cart_quotation()
File "/home/erpnext/erpnext/erpnext/app/selling/utils/cart.py", line 241, in _get_cart_quotation
qbean.run_method("onload_post_render")
File "/home/erpnext/erpnext/erpnext/lib/webnotes/model/bean.py", line 239, in run_method
getattr(self.controller, method)(*args, **kwargs)
File "/home/erpnext/erpnext/erpnext/app/controllers/selling_controller.py", line 16, in onload_post_render
self.set_missing_values()
File "/home/erpnext/erpnext/erpnext/app/controllers/selling_controller.py", line 27, in set_missing_values
super(SellingController, self).set_missing_values(for_validate)
File "/home/erpnext/erpnext/erpnext/app/controllers/accounts_controller.py", line 30, in set_missing_values
self.doc.fiscal_year = get_fiscal_year(self.doc.fields[fieldname])[0]
File "/home/erpnext/erpnext/erpnext/app/accounts/utils.py", line 19, in get_fiscal_year
return get_fiscal_years(date, fiscal_year, label, verbose)[0]
File "/home/erpnext/erpnext/erpnext/app/accounts/utils.py", line 33, in get_fiscal_years
error_msg = """%s %s not in any Fiscal Year""" % (label, formatdate(date))
File "/home/erpnext/erpnext/erpnext/lib/webnotes/utils/__init__.py", line 274, in formatdate