<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Simone,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for attending to this so promptly.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This is what is added to the error.log at the time I click on a link:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634679 2016] [:error] [pid 2361] Internal Server Error: /documents/98<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634741 2016] [:error] [pid 2361] Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634752 2016] [:error] [pid 2361] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634764 2016] [:error] [pid 2361] response = wrapped_callback(request, *callback_args, **callback_kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634772 2016] [:error] [pid 2361] File "/usr/local/lib/python2.7/dist-packages/geonode/documents/views.py", line 103, in document_detail<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634792 2016] [:error] [pid 2361] context_dict["social_links"] = build_social_links(request, document)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634800 2016] [:error] [pid 2361] File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py", line 609, in build_social_links<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634808 2016] [:error] [pid 2361] caveats = build_caveats(resourcebase)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634816 2016] [:error] [pid 2361] File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py", line 589, in build_caveats<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634824 2016] [:error] [pid 2361] caveats.append(resourcebase.maintenance_frequency_title())<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634831 2016] [:error] [pid 2361] File "/usr/local/lib/python2.7/dist-packages/geonode/base/models.py", line 613, in maintenance_frequency_title<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634839 2016] [:error] [pid 2361] return [v for i, v in enumerate(UPDATE_FREQUENCIES) if v[0] == self.maintenance_frequency][0][1].title()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634859 2016] [:error] [pid 2361] IndexError: list index out of range<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656303 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] mod_wsgi (pid=2361): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656511 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656645 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line
206, in __call__<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656779 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] response = self.get_response(request)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656835 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line
194, in get_response<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656885 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] response = self.handle_uncaught_exception(request, resolver, sys.exc_info())<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656966 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line
236, in handle_uncaught_exception<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657032 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return callback(request, **param_dict)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657083 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 99,
in _wrapped_view<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657310 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] response = view_func(request, *args, **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657345 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 46,
in server_error<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657404 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return http.HttpResponseServerError(template.render(Context({})))<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657478 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140,
in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657539 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return self._render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657587 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134,
in _render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657625 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return self.nodelist.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657673 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840,
in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657787 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] bit = self.render_node(node, context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657856 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854,
in render_node<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657897 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return node.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657968 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line
53, in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658012 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] result = self.nodelist.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658061 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840,
in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658100 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] bit = self.render_node(node, context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658131 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854,
in render_node<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658171 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return node.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658242 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line
155, in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658283 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return self.render_template(self.template, context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658311 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line
137, in render_template<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658347 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] output = template.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658375 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140,
in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658410 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return self._render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658438 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134,
in _render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658474 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return self.nodelist.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658502 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840,
in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658537 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] bit = self.render_node(node, context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658563 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854,
in render_node<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658598 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] return node.render(context)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658625 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py",
line 24, in render<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658662 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] request = context["request"]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658890 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56,
in __getitem__<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658940 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] raise KeyError(key)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.659002 2016] [:error] [pid 2361] [remote 127.0.0.1:20011] KeyError: 'request'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Michael Haertel</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">GIS & Database Expert</span></i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">International Institute of Tropical Agriculture (IITA,
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.iita.org"><b>www.iita.org</b></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">)<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Headquarters and West Africa Hub</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">PMB 5320, Oyo Road, Ibadan 200001, Oyo State, Nigeria<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">International Mailing Address: IITA Limited, Part 7th Floor, Grosvenor House, 125 High Street, Croydon, Surrey, CR0 9XP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Tel: +234 2 7517472 | USA Tel: +1 201 6336094 | Fax: +44 208 7113786<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">IITA is a member of the CGIAR Consortium</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"> (</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.cgiar.org"><span lang="EN-GB">www.cgiar.org</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">)</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Simone Dalmasso [mailto:simone.dalmasso@gmail.com]
<br>
<b>Sent:</b> Friday, May 06, 2016 9:36 AM<br>
<b>To:</b> Haertel, Michael (IITA)<br>
<b>Cc:</b> geonode-devel@lists.osgeo.org<br>
<b>Subject:</b> Re: [GeoNode-devel] after mass data import : "KeyError: 'request'" when clicking on a document<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi, could you post the full trace of the error? is in /var/logs/apache2/error.log<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2016-05-06 10:22 GMT+02:00 Haertel, Michael (IITA) <<a href="mailto:M.Haertel@cgiar.org" target="_blank">M.Haertel@cgiar.org</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Dear List,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I imported many datasets from a third party application into GeoNode by populating these database tables:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p>1.<span style="font-size:7.0pt"> </span>Base_resourcebase<o:p></o:p></p>
<p>2.<span style="font-size:7.0pt"> </span>Documents_document<o:p></o:p></p>
<p>3.<span style="font-size:7.0pt"> </span>Base_contactrole<o:p></o:p></p>
<p>4.<span style="font-size:7.0pt"> </span>Taggit_tag<o:p></o:p></p>
<p>5.<span style="font-size:7.0pt"> </span>Taggit_taggeditem<o:p></o:p></p>
<p>6.<span style="font-size:7.0pt"> </span>Base_link<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">However the link behind each document doesn’t work. I get an “Internal server error”. According to the log file the error is raised in
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">-----</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56, in __getitem__<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Raise KeyError(key)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">KeyError: ‘request’<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">-----</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I noticed that when I click on a link to a PDF document for the first time after it has been imported, the column “doc_file” is altered and a suffix is appended to the pdf file
on disk. So I also checked file permissions but “www-data” (linux) can write all files there. It only happens for the datasets that I imported myself. Manually added documents work fine.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I also noticed that for Ids that were manually added and removed afterwards, the links (url: documents/<id>) still work and lead to a “file not found” page without any “internal
server error” message. So GeoNode somehow knows which ids are valid (accessible) and which are not. Can somebody tell me how it works?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am not yet very good in python yet and I don’t want to debug the code at this point.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank you very much for your assistance,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Michael Haertel</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">GIS & Database Expert</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">International Institute of Tropical Agriculture (IITA,
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.iita.org" target="_blank"><b>www.iita.org</b></a><b><span style="color:#4A452A">)</span></b></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Headquarters and West Africa Hub</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">PMB 5320, Oyo Road, Ibadan 200001, Oyo State, Nigeria</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">International Mailing Address: IITA Limited, Part 7th Floor, Grosvenor House, 125 High Street, Croydon, Surrey, CR0
9XP</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Tel:
<a href="tel:%2B234%202%207517472" target="_blank">+234 2 7517472</a> | USA Tel:
<a href="tel:%2B1%20201%206336094" target="_blank">+1 201 6336094</a> | Fax: <a href="tel:%2B44%20208%207113786" target="_blank">
+44 208 7113786</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">IITA is a member of the CGIAR Consortium</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">
(</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.cgiar.org" target="_blank"><span lang="EN-GB">www.cgiar.org</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-devel</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Simone <o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>