<div dir="ltr">+1</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Regards,</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Ing. Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">@alfa7691</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Founder/Technical Lead</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoSolutions S.A.S.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Via di Montramito 3/A</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">55054  Massarosa (LU)</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Italy</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">phone: +39 0584 962313</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">fax:     +39 0584 1660272</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">mob:   +39 331 6233686</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">-------------------------------------------------------</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"> </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</span></p></span></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jul 17, 2017 at 10:16 AM, Francesco Bartoli <span dir="ltr"><<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Just for the record, the error described below is from a false cause. Despite the message from the traceback which confused me the problem was due to a lack of communication with postgresql. The missing configuration was the md5 authentication rather than ident<div><br></div><div>host    all             all             <a href="http://127.0.0.1/32" target="_blank">127.0.0.1/32</a>           md5</div><div><br></div><div>has been added to the PR.</div><div><br></div><div>Hope this helps somebody for the future.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Francesco</div></font></span><div><div class="h5"><div><br><div><div>Il giorno 12/lug/2017, alle ore 22:34, francesco bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>> ha scritto:</div><br class="m_2243978640396460389Apple-interchange-newline"><blockquote type="cite"><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">All,</div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"><br></div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">I'm facing a common error while uploading an archived shapefile. The file is the commonly used ne_50m_admin_0_countries.</div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">The error is well known also in django documentation and due to non ascii characters:</div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"><br></div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"><a href="https://n1.nylas.com/link/MESSAGE_ID/0?redirect=https%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.8%2Fref%2Funicode%2F%23files" title="https://docs.djangoproject.com/en/1.8/ref/unicode/#files" style="color:rgb(16,129,247)" target="_blank">https://docs.djangoproject.<wbr>com/en/1.8/ref/unicode/#files</a><br></div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"><br></div><div style="max-width:100%;font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"><div style="max-width:100%">Unfortunately the recommended solution from the django docs for deployments with apache and mod_wsgi </div><div style="max-width:100%"><br></div><div style="max-width:100%"><a href="https://n1.nylas.com/link/MESSAGE_ID/1?redirect=https%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.8%2Fhowto%2Fdeployment%2Fwsgi%2Fmodwsgi%2F" title="https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/" style="color:rgb(16,129,247)" target="_blank">https://docs.djangoproject.<wbr>com/en/1.8/howto/deployment/<wbr>wsgi/modwsgi/</a></div><div style="max-width:100%"><br></div><div style="max-width:100%">doesn't solve the issue in centos 7. The box has been created while reviewing the installation on that environment as per this PR <a href="https://n1.nylas.com/link/MESSAGE_ID/2?redirect=https%3A%2F%2Fgithub.com%2FGeoNode%2Fgeonode%2Fpull%2F3168" title="https://github.com/GeoNode/geonode/pull/3168" style="color:rgb(16,129,247)" target="_blank">https://github.com/GeoNode/<wbr>geonode/pull/3168</a><br></div><div style="max-width:100%"><br></div><div style="max-width:100%"><div style="max-width:100%">It can be easily reproduced by adding this view and route within geonode app:</div><div style="max-width:100%"><br></div><div style="max-width:100%">#my_views.py</div><div style="max-width:100%">import locale<br>import sys<br>from django.http import HttpResponse<br><br>def view_locale(request):<br>   loc_info = "getlocale: " + str(locale.getlocale()) + \<br>       "<br/>getdefaultlocale(): " + str(locale.getdefaultlocale()) + \<br>       "<br/>fs_encoding: " + str(sys.getfilesystemencoding(<wbr>)) + \<br>       "<br/>sys default encoding: " + str(sys.getdefaultencoding())<br>   return HttpResponse(loc_info)<br></div><div style="max-width:100%"><br></div><div style="max-width:100%">#urls.py</div><div style="max-width:100%">...</div><div style="max-width:100%">url(r'^locale/$', 'geonode.my_views.view_locale'<wbr>),<br></div><div style="max-width:100%">...</div><div style="max-width:100%"><br></div><div style="max-width:100%">Result is always this:</div><div style="max-width:100%">getlocale: (None, None)<br style="font-family:Times;font-size:14px">getdefaultlocale(): ('en_US', 'UTF-8')<br style="font-family:Times;font-size:14px">fs_encoding: UTF-8<br style="font-family:Times;font-size:14px"><span style="font-weight:600">sys default encoding: ascii</span><br></div><div style="max-width:100%"><br></div><div style="max-width:100%">Setting the following variables in /etc/sysconfig/httpd and restart as suggested</div><div style="max-width:100%"><br></div><div style="max-width:100%">export LANG="en_US.UTF-8"<br>export LC_ALL="en_US.UTF-8"<br></div><div style="max-width:100%"><br></div><div style="max-width:100%">does not change anything in particular the system default encoding which is the reason why the upload is failing.</div><div style="max-width:100%"><br></div><div style="max-width:100%">Adding such variables to WSGIDaemonProcess:</div><div style="max-width:100%"><br></div><div style="max-width:100%">WSGIDaemonProcess geonode lang='en_US.UTF-8' locale='en_US.UTF-8' python-path=/home/geonode/<wbr>geonode:/home/geonode/.venvs/<wbr>geonode/lib/python2.7/site-<wbr>packages user=apache threads=15 processes=2</div><div style="max-width:100%"><br></div><div style="max-width:100%">just affects the getlocale() function while default encoding is unaltered. The only way to affect it would be to add and enforce it:</div><div style="max-width:100%"><br></div><div style="max-width:100%">import sys</div><div style="max-width:100%">reload(sys)<br><a href="https://n1.nylas.com/link/MESSAGE_ID/3?redirect=sys.setdefaultencoding('utf-8" title="sys.setdefaultencoding('utf-8" style="color:rgb(16,129,247)" target="_blank">sys.setdefaultencoding('utf-8</a>'<wbr>)<br></div><div style="max-width:100%"><br></div><div style="max-width:100%">but this is strongly not recommended and discouraged. More here <a href="https://n1.nylas.com/link/MESSAGE_ID/4?redirect=https%3A%2F%2Fanonbadger.wordpress.com%2F2015%2F06%2F16%2Fwhy-sys-setdefaultencoding-will-break-code%2F" title="https://anonbadger.wordpress.com/2015/06/16/why-sys-setdefaultencoding-will-break-code/" style="color:rgb(16,129,247)" target="_blank">https://anonbadger.<wbr>wordpress.com/2015/06/16/why-<wbr>sys-setdefaultencoding-will-<wbr>break-code/</a>.</div><div style="max-width:100%"><br></div><div style="max-width:100%">Did anyone already encounter this kind of error? Actually I don't have a solution but for sure it's not a bug in geonode code base despite I did not figure out the real source.</div><div style="max-width:100%"><br></div><div style="max-width:100%">Any help and idea, how to overcome it, is welcome :)</div><div style="max-width:100%"><br></div><div style="max-width:100%">thx</div><div style="max-width:100%">Francesco</div></div></div><br><u></u>Sent from <a href="https://n1.nylas.com/link/MESSAGE_ID/5?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1" target="_blank">Nylas Mail</a>, the best free email app for work<u></u><img class="m_2243978640396460389n1-open" width="0" height="0" style="border:0;width:0;height:0"></blockquote></div><br></div></div></div></div><br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>