we performed an ERP Next installation on Centos 7 in production mode. When trying to change site1.local to erpnext.ourdomain.com we receive an 404 error.
When we log in with any user, we receive the frappe logo but the desk does not load. If we go for example to /user, we receive:
Traceback (innermost last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 23, in render
data = render_page(path)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 105, in render_page
return build(path)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 114, in build
return build_method(path)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 127, in build_page
context = get_context(path)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/context.py", line 36, in get_context
context = build_context(context)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/context.py", line 72, in build_context
ret = module.get_context(context)
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/templates/pages/user.py", line 14, in get_context
party = get_lead_or_customer()
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/cart.py", line 276, in get_lead_or_customer
"territory": guess_territory(),
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/cart.py", line 133, in guess_territory
get_root_of("Territory")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/nestedset.py", line 233, in get_root_of
t2.lft < t1.lft and t2.rgt > t1.rgt) = 0""".format(doctype, doctype))[0][0]
IndexError: tuple index out of range
We are checking the console more in detail, when we log in and go to /addresses, there is a blue loading bar and we get an internal server error:
POST http://erpnext.ourdomain.com/ 500 (INTERNAL SERVER ERROR) jquery.min.js:4l.cors.a.crossDomain.send jquery.min.js:4o.extend.ajax jquery.min.js:4$.extend.call frappe-web.min.js:72fetch_addresses addresses:127(anonymous function) addresses:151j jquery.min.js:2k.fireWith jquery.min.js:2o.extend.ready jquery.min.js:2I jquery.min.js:2
Traceback (innermost last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 49, in application
response = frappe.handler.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
execute_cmd(cmd)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 89, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 531, in call
return fn(*args, **newargs)
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/templates/pages/addresses.py", line 13, in get_addresses
return get_address_docs()
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/cart.py", line 288, in get_address_docs
party = get_lead_or_customer()
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/cart.py", line 276, in get_lead_or_customer
"territory": guess_territory(),
File "/home/erpnext/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/cart.py", line 133, in guess_territory
get_root_of("Territory")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/nestedset.py", line 233, in get_root_of
t2.lft < t1.lft and t2.rgt > t1.rgt) = 0""".format(doctype, doctype))[0][0]
IndexError: tuple index out of range
frappe-web.min.js:82$.extend.process_response frappe-web.min.js:82(anonymous function) frappe-web.min.js:74j jquery.min.js:2k.fireWith jquery.min.js:2x jquery.min.js:4(anonymous function)
I am sorry, i never did that, should i access the python console with user erpnext or root? Then with the command python in CentOS i would access the python console right? And then in the console how can i call the function?