overhangio / tutor-ecommerce

Ecommerce plugin for Tutor
GNU Affero General Public License v3.0
17 stars 50 forks source link

Ecommerce v0.1.13 showing "Server Error" #12

Closed mnewlife closed 3 years ago

mnewlife commented 4 years ago

Bug description A message "Server Error" is showing on the ecommerce site at ecommerce.mydomain.com . That same error is also showing at ecommerce.mydomain.com/accounts/profile/

I am able to login into the ecommerce site but the urls mentioned above are showing an error so no information is being displayed.

tutor local logs lms --tail=100 on ecommerce.mydomain.com/accounts/profile/ is showing:

ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 177, in render
ecommerce_1 | return compiled_parent._render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 177, in render
ecommerce_1 | return compiled_parent._render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 72, in render
ecommerce_1 | result = block.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 72, in render
ecommerce_1 | result = block.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 216, in render
ecommerce_1 | return template.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 209, in render
ecommerce_1 | return self._render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
ecommerce_1 | result = self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 458, in render
ecommerce_1 | url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/urls/base.py", line 87, in reverse
ecommerce_1 | raise NoReverseMatch("%s is not a registered namespace" % key)
ecommerce_1 | NoReverseMatch: u'catalogue' is not a registered namespace

tutor local logs --tail=100 ecommerce on ecommerce.mydomain.com is showing

ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 177, in render
ecommerce_1 | return compiled_parent._render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 177, in render
ecommerce_1 | return compiled_parent._render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 72, in render
ecommerce_1 | result = block.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 72, in render
ecommerce_1 | result = block.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 216, in render
ecommerce_1 | return template.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 209, in render
ecommerce_1 | return self._render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
ecommerce_1 | return self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
ecommerce_1 | result = self.nodelist.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 990, in render
ecommerce_1 | bit = node.render_annotated(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
ecommerce_1 | return self.render(context)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 458, in render
ecommerce_1 | url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
ecommerce_1 | File "/openedx/venv/local/lib/python2.7/site-packages/django/urls/base.py", line 87, in reverse
ecommerce_1 | raise NoReverseMatch("%s is not a registered namespace" % key)
ecommerce_1 | NoReverseMatch: u'catalogue' is not a registered namespace
ecommerce_1 | 2020-05-24 16:52:49,011 WARNING 147 [django.request] /openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py:152 - Not Found: /
ecommerce_1 | 2020-05-24 16:52:49,011 WARNING 147 [django.request] /openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py:152 - Not Found: /
ecommerce_1 | 2020-05-24 16:52:49,011 WARNING 147 [django.request] /openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py:152 - Not Found: /

How to reproduce I followed all the steps in the documentation to enable the ecommerce plugin

tutor plugins enable discovery ecommerce
tutor config save
tutor local quickstart

Environment Ubuntu 18.04 and the Tutor version v3.12.5

regisb commented 4 years ago

Hi! Can you please try to reproduce this issue in Juniper, with tutor and tutor-ecommerce v10+?

jjftc commented 3 years ago

@regisb I have the same problem in /accounts/profile/ with tutor 12.1.4 and ecommerce 12.0.1.

regisb commented 3 years ago

@jjftc Please don't comment on outdated issues. Instead, open a topic on the Tutor forums where we'll try to diagnose your issue together. Also, read the troubleshooting section from the docs: https://docs.tutor.overhang.io/troubleshooting.html