[GeoNode-devel] Group invite via email --> internal server error ( /groups/group/test/invite/)
Rainer Lissewski
rainerlissewski at gmail.com
Wed May 6 02:31:43 PDT 2015
Same error occurs when inviting a single user via /account/invite_user/
Am 05.05.2015 um 14:40 schrieb Simone Dalmasso:
> Rainer, this is indeed a bug due to this,
> https://github.com/GeoNode/geonode/blob/master/geonode/groups/models.py#L223.
>
> We will have to do a deep notifications refactoring (which is why that
> method is commented) in the meantime you can try to uncomment that
> method. Please report here how it goes.
>
> 2015-05-05 12:40 GMT+02:00 Rainer Lissewski <rainerlissewski at gmail.com
> <mailto:rainerlissewski at gmail.com>>:
>
> Hi on trying to invite group members via email, I get an internal
> server error from /groups/group/test/invite/
>
> Apache log:
>
> /[Tue May 05 05:21:11.374979 2015] [:error] [pid 20113:tid
> 140121475692288] File
> "/usr/local/lib/python2.7/dist-packages/geonode/groups/models.py",
> line 167, in invite/
> /[Tue May 05 05:21:11.375008 2015] [:error] [pid 20113:tid
> 140121475692288] invitation.send(from_user)/
> /[Tue May 05 05:21:11.375079 2015] [:error] [pid 20113:tid
> 140121475692288] AttributeError: 'GroupInvitation' object has no
> attribute 'send'/
> /[Tue May 05 05:21:11.401051 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> mod_wsgi (pid=20113): Exception occurred processing WSGI script
> '/var/www/geonode/wsgi/geonode.wsgi'./
> /[Tue May 05 05:21:11.401079 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> Traceback (most recent call last):/
> /[Tue May 05 05:21:11.401101 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",
> line 206, in __call__/
> /[Tue May 05 05:21:11.401129 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> response = self.get_response(request)/
> /[Tue May 05 05:21:11.401147 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
> line 194, in get_response/
> /[Tue May 05 05:21:11.401174 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> response = self.handle_uncaught_exception(request, resolver,
> sys.exc_info())/
> /[Tue May 05 05:21:11.401191 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
> line 236, in handle_uncaught_exception/
> /[Tue May 05 05:21:11.401214 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return callback(request, **param_dict)/
> /[Tue May 05 05:21:11.401231 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/utils/decorators.py",
> line 99, in _wrapped_view/
> /[Tue May 05 05:21:11.401264 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> response = view_func(request, *args, **kwargs)/
> /[Tue May 05 05:21:11.401297 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line
> 46, in server_error/
> /[Tue May 05 05:21:11.401322 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return http.HttpResponseServerError(template.render(Context({})))/
> /[Tue May 05 05:21:11.401381 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 140, in render/
> /[Tue May 05 05:21:11.401406 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return self._render(context)/
> /[Tue May 05 05:21:11.401422 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 134, in _render/
> /[Tue May 05 05:21:11.401444 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return self.nodelist.render(context)/
> /[Tue May 05 05:21:11.401463 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 840, in render/
> /[Tue May 05 05:21:11.401486 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> bit = self.render_node(node, context)/
> /[Tue May 05 05:21:11.401503 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 854, in render_node/
> /[Tue May 05 05:21:11.401525 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return node.render(context)/
> /[Tue May 05 05:21:11.401541 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 53, in render/
> /[Tue May 05 05:21:11.401586 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> result = self.nodelist.render(context)/
> /[Tue May 05 05:21:11.401604 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 840, in render/
> /[Tue May 05 05:21:11.401627 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> bit = self.render_node(node, context)/
> /[Tue May 05 05:21:11.401643 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 854, in render_node/
> /[Tue May 05 05:21:11.401665 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return node.render(context)/
> /[Tue May 05 05:21:11.401697 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 155, in render/
> /[Tue May 05 05:21:11.401720 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return self.render_template(self.template, context)/
> /[Tue May 05 05:21:11.401737 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 137, in render_template/
> /[Tue May 05 05:21:11.401759 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> output = template.render(context)/
> /[Tue May 05 05:21:11.401778 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 140, in render/
> /[Tue May 05 05:21:11.401800 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return self._render(context)/
> /[Tue May 05 05:21:11.401817 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 134, in _render/
> /[Tue May 05 05:21:11.401838 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return self.nodelist.render(context)/
> /[Tue May 05 05:21:11.401855 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 840, in render/
> /[Tue May 05 05:21:11.401877 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> bit = self.render_node(node, context)/
> /[Tue May 05 05:21:11.401906 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 854, in render_node/
> /[Tue May 05 05:21:11.401929 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> return node.render(context)/
> /[Tue May 05 05:21:11.401946 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py",
> line 24, in render/
> /[Tue May 05 05:21:11.401969 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> request = context["request"]/
> /[Tue May 05 05:21:11.401994 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> File
> "/usr/lib/python2.7/dist-packages/django/template/context.py",
> line 56, in __getitem__/
> /[Tue May 05 05:21:11.402022 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> raise KeyError(key)/
> /[Tue May 05 05:21:11.402043 2015] [:error] [pid 20113:tid
> 140121475692288] [remote 10.0.2.2:16025 <http://10.0.2.2:16025/>]
> KeyError: 'request'/
> /[Tue May 05 05:27:08.763694 2015] [:error] [pid 20114:tid
> 140121475692288] Internal Server Error: /groups/group/test/invite//
> /[Tue May 05 05:27:08.763800 2015] [:error] [pid 20114:tid
> 140121475692288] Traceback (most recent call last):/
> /[Tue May 05 05:27:08.763872 2015] [:error] [pid 20114:tid
> 140121475692288] File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
> line 112, in get_response/
> /[Tue May 05 05:27:08.763902 2015] [:error] [pid 20114:tid
> 140121475692288] response = wrapped_callback(request,
> *callback_args, **callback_kwargs)/
> /[Tue May 05 05:27:08.763956 2015] [:error] [pid 20114:tid
> 140121475692288] File
> "/usr/lib/python2.7/dist-packages/django/views/decorators/http.py", line
> 41, in inner/
> /[Tue May 05 05:27:08.763985 2015] [:error] [pid 20114:tid
> 140121475692288] return func(request, *args, **kwargs)/
> /[Tue May 05 05:27:08.764012 2015] [:error] [pid 20114:tid
> 140121475692288] File
> "/usr/local/lib/python2.7/dist-packages/geonode/groups/views.py",
> line 182, in group_invite/
> /[Tue May 05 05:27:08.764039 2015] [:error] [pid 20114:tid
> 140121475692288] role=form.cleaned_data["invite_role"])/
> /[Tue May 05 05:27:08.764067 2015] [:error] [pid 20114:tid
> 140121475692288] File
> "/usr/local/lib/python2.7/dist-packages/geonode/groups/models.py",
> line 167, in invite/
> /[Tue May 05 05:27:08.764131 2015] [:error] [pid 20114:tid
> 140121475692288] invitation.send(from_user)/
> /[Tue May 05 05:27:08.764158 2015] [:error] [pid 20114:tid
> 140121475692288] AttributeError: 'GroupInvitation' object has no
> attribute 'send'/
> /[Tue May 05 05:27:08.791043 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] mod_wsgi (pid=20114):
> Exception occurred processing WSGI script
> '/var/www/geonode/wsgi/geonode.wsgi'./
> /[Tue May 05 05:27:08.791074 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] Traceback (most recent
> call last):/
> /[Tue May 05 05:27:08.791100 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",
> line 206, in __call__/
> /[Tue May 05 05:27:08.791179 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] response =
> self.get_response(request)/
> /[Tue May 05 05:27:08.791212 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
> line 194, in get_response/
> /[Tue May 05 05:27:08.791238 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] response =
> self.handle_uncaught_exception(request, resolver, sys.exc_info())/
> /[Tue May 05 05:27:08.791266 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
> line 236, in handle_uncaught_exception/
> /[Tue May 05 05:27:08.791290 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> callback(request, **param_dict)/
> /[Tue May 05 05:27:08.791310 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/utils/decorators.py",
> line 99, in _wrapped_view/
> /[Tue May 05 05:27:08.791376 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] response =
> view_func(request, *args, **kwargs)/
> /[Tue May 05 05:27:08.791396 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line
> 46, in server_error/
> /[Tue May 05 05:27:08.791452 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> http.HttpResponseServerError(template.render(Context({})))/
> /[Tue May 05 05:27:08.791472 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 140, in render/
> /[Tue May 05 05:27:08.791708 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> self._render(context)/
> /[Tue May 05 05:27:08.791730 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 134, in _render/
> /[Tue May 05 05:27:08.791755 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> self.nodelist.render(context)/
> /[Tue May 05 05:27:08.791774 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 840, in render/
> /[Tue May 05 05:27:08.791797 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] bit =
> self.render_node(node, context)/
> /[Tue May 05 05:27:08.791821 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 854, in render_node/
> /[Tue May 05 05:27:08.791848 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> node.render(context)/
> /[Tue May 05 05:27:08.791869 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 53, in render/
> /[Tue May 05 05:27:08.791948 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] result =
> self.nodelist.render(context)/
> /[Tue May 05 05:27:08.791968 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 840, in render/
> /[Tue May 05 05:27:08.791992 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] bit =
> self.render_node(node, context)/
> /[Tue May 05 05:27:08.792009 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 854, in render_node/
> /[Tue May 05 05:27:08.792031 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> node.render(context)/
> /[Tue May 05 05:27:08.792047 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 155, in render/
> /[Tue May 05 05:27:08.792069 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> self.render_template(self.template, context)/
> /[Tue May 05 05:27:08.792086 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 137, in render_template/
> /[Tue May 05 05:27:08.792112 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] output =
> template.render(context)/
> /[Tue May 05 05:27:08.792129 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 140, in render/
> /[Tue May 05 05:27:08.792151 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> self._render(context)/
> /[Tue May 05 05:27:08.792168 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 134, in _render/
> /[Tue May 05 05:27:08.792188 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> self.nodelist.render(context)/
> /[Tue May 05 05:27:08.792205 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 840, in render/
> /[Tue May 05 05:27:08.792226 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] bit =
> self.render_node(node, context)/
> /[Tue May 05 05:27:08.792243 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/base.py", line
> 854, in render_node/
> /[Tue May 05 05:27:08.792264 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] return
> node.render(context)/
> /[Tue May 05 05:27:08.792281 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py",
> line 24, in render/
> /[Tue May 05 05:27:08.792329 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] request =
> context["request"]/
> /[Tue May 05 05:27:08.792361 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] File
> "/usr/lib/python2.7/dist-packages/django/template/context.py",
> line 56, in __getitem__/
> /[Tue May 05 05:27:08.792478 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] raise KeyError(key)/
> /[Tue May 05 05:27:08.792503 2015] [:error] [pid 20114:tid
> 140121475692288] [remote xx.x.x.x:xxxxx] KeyError: 'request'/
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel
>
>
>
>
> --
> Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20150506/792a9939/attachment-0001.html>
More information about the geonode-devel
mailing list