<div dir="ltr"><div><div><div>I updated the IP using the geonode updateip command.<br><br></div>I found a reference to the localhost into security/auth/geonodeAuthProvider/config.xml<br><br></div>Edited it and restarted tomcat.<br><br></div>Problems still persists. But it's funny that sometimes is does not recognize the user. Then I wait a bit and it works. Maybe my server is just not responding everytime.<br><br><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 17, 2017 at 2:28 PM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dear Daniel,<div><br></div><div>some Mails ago you wrote:</div><div><br></div><div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I then created a superuser and updated the<br>IP.<br></blockquote></blockquote></blockquote><div><br></div>How did you update your IP?</div><div>a) by changing it directly in local_settings.py</div><div>b) by geonode-updateip #</div><div><br></div><div>b) should configure oauth for you:</div><div><a href="https://github.com/GeoNode/geonode/blob/91cab33f61cdbd5523dd330eda8119c8c9509fb8/package/support/geonode.updateip#L126" target="_blank">https://github.com/GeoNode/geonode/blob/91cab33f61cdbd5523dd330eda8119c8c9509fb8/package/support/geonode.updateip#L126</a></div><div><br></div><div>If after that I´m still facing problems with auth I continue by</div><div>searching for a updated (old) IP within the geoserver</div><div>security directory grep -R …</div><div><br></div><div>Don´t forget to restart your tomcat after any changes.</div><div><br></div><div>cheers,</div><div><br></div><div>Toni</div><div><br><br></div><div><br></div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div style="word-wrap:break-word"><div><div>-----------------------------------------------</div><div>CSGIS</div><div><br></div><div>-----------------------------------------------</div><div><div>Kolonnadenstraße 1</div><div>04109 Leipzig</div></div><div>-----------------------------------------------</div><div>Mobil<span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">        </span><a href="tel:+49%20176%2066803198" value="+4917666803198" target="_blank">+49/ (0) 176 6680 3198</a></div><div>Tel <span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">               </span><a href="tel:+49%20341%202404738" value="+493412404738" target="_blank">+49/ (0) 341 24 04 738</a></div><div>Fax <span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">         </span><a href="tel:+49%20341%20240473" value="+49341240473" target="_blank">+49/ (0) 341 24 04 73</a></div><div>Web<span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">              </span><a href="http://csgis.de" target="_blank">http://csgis.de</a></div><div>-----------------------------------------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div>Am 17.11.2017 um 17:06 schrieb <a href="mailto:geonode-users-request@lists.osgeo.org" target="_blank">geonode-users-request@lists.osgeo.org</a>:</div><br class="m_-2014742600255255708Apple-interchange-newline"><div><div>Send geonode-users mailing list submissions to<br><span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">        </span><a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br><span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">  </span><a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>or, via email, send a message with subject or body 'help' to<br><span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">      </span><a href="mailto:geonode-users-request@lists.osgeo.org" target="_blank">geonode-users-request@lists.osgeo.org</a><br><br>You can reach the person managing the list at<br><span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">      </span><a href="mailto:geonode-users-owner@lists.osgeo.org" target="_blank">geonode-users-owner@lists.osgeo.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of geonode-users digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Dificulty logging into GeoServer (Daniel Victoria)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 17 Nov 2017 16:06:36 +0000<br>From: Daniel Victoria <<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>><br>To: Alessio Fabiani <<a href="mailto:alessio.fabiani@geo-solutions.it" target="_blank">alessio.fabiani@geo-solutions.it</a>><br>Cc: "<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>" <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>Subject: Re: [GeoNode-users] Dificulty logging into GeoServer<br>Message-ID:<br><span class="m_-2014742600255255708Apple-tab-span" style="white-space:pre-wrap">   </span><CA+irsJi+AgtSGSZKoaNEBQUcpT=<a href="mailto:xSc_u4BieqKH1iqVHvouO4A@mail.gmail.com" target="_blank">xSc_u4BieqKH1iqVHvouO4A@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Just found out that GeoServer autentication stops working after I try to<br>look at any raster layer using the OpenLayers Map Preview. And if it's<br>broken in one browser (firefox, for exemple), it's still working in another<br>(chomium)<br><br>Very strange...<br><br>On Fri, Nov 17, 2017 at 1:21 PM Daniel Victoria <<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>><br>wrote:<br><br><blockquote type="cite">The funny thing is that it works the first time I login after a<br>apache/tomcat restart<br><br>Where can I look to try and debug this problem?<br><br>I'm also seeing this in apache error.log. Not sure if it's related:<br><br>extern "Python": function Cryptography_rand_bytes() called, but<br>@ffi.def_extern() was not called in the current subinterpreter.  Returning<br>0.<br><br><br>On Fri, Nov 17, 2017 at 1:12 PM Alessio Fabiani <<br><a href="mailto:alessio.fabiani@geo-solutions.it" target="_blank">alessio.fabiani@geo-solutions.it</a>> wrote:<br><br><blockquote type="cite">Ok, so the problem arise when you try to use the geonode button, right?<br><br>In that case I'm afraid there's an issue on the OAuth2 configuration<br>which can be either on GeoNode side, GeoServer side or both :(<br><br>Also you have to be sure that GeoServer can reach GeoNode in order to<br>validate the credentials and successfully complete the handshake.<br><br>Regards,<br><br>Alessio Fabiani<br><br>==<br>GeoServer Professional Services from the experts! Visit<br><a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.<br>==<br><br>Ing. Alessio Fabiani<br><br>@alfa7691<br>Founder/Technical Lead<br><br><br>GeoSolutions S.A.S.<br>Via di Montramito 3/A<br><<a href="https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g" target="_blank">https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g</a>><br>55054  Massarosa<br><<a href="https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g" target="_blank">https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g</a>><br>(LU)<br>Italy<br>phone: <a href="tel:+39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a> <+39%200584%20962313><br>fax:     <a href="tel:+39%200584%20166%200272" value="+3905841660272" target="_blank">+39 0584 1660272</a> <+39%200584%20166%200272><br>mob:   <a href="tel:+39%20331%20623%203686" value="+393316233686" target="_blank">+39 331 6233686</a> <+39%20331%20623%203686><br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a><br><br>-------------------------------------------------------<br><br>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003<br><br>Le informazioni contenute in questo messaggio di posta elettronica e/o<br>nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il<br>loro utilizzo è consentito esclusivamente al destinatario del messaggio,<br>per le finalità indicate nel messaggio stesso. Qualora riceviate questo<br>messaggio senza esserne il destinatario, Vi preghiamo cortesemente di<br>darcene notizia via e-mail e di procedere alla distruzione del messaggio<br>stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,<br>divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od<br>utilizzarlo per finalità diverse, costituisce comportamento contrario ai<br>principi dettati dal D.Lgs. 196/2003.<br><br>The information in this message and/or attachments, is intended solely<br>for the attention and use of the named addressee(s) and may be confidential<br>or proprietary in nature or covered by the provisions of privacy act<br>(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection<br>Code).Any use not in accord with its purpose, any disclosure, reproduction,<br>copying, distribution, or either dissemination, either whole or partial, is<br>strictly forbidden except previous formal approval of the named<br>addressee(s). If you are not the intended recipient, please contact<br>immediately the sender by telephone, fax or e-mail and delete the<br>information in this message that has been received in error. The sender<br>does not give any warranty or accept liability as the content, accuracy or<br>completeness of sent messages and accepts no responsibility  for changes<br>made after they were sent or for other risks which arise as a result of<br>e-mail transmission, viruses, etc.<br><br>On Fri, Nov 17, 2017 at 4:06 PM, Daniel Victoria <<br><a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>> wrote:<br><br><blockquote type="cite">Hi Alessio,<br><br>I can log into Geoserver using the admin password.<br><br>And the geoserver web gui works also<br><br><br>On Fri, Nov 17, 2017 at 11:49 AM Alessio Fabiani <<br><a href="mailto:alessio.fabiani@geo-solutions.it" target="_blank">alessio.fabiani@geo-solutions.it</a>> wrote:<br><br><blockquote type="cite">Hi Daniel,<br>a question, are you able to login to GeoServer at least the first time<br>or you cannot login to GeoServer anyway?<br><br>Also the GeoServer web gui appears, even if you are not logged in, if<br>you go directly to the geoserver url?<br><br>Regards,<br><br>Alessio Fabiani<br><br>==<br>GeoServer Professional Services from the experts! Visit<br><a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.<br>==<br><br>Ing. Alessio Fabiani<br><br>@alfa7691<br>Founder/Technical Lead<br><br><br>GeoSolutions S.A.S.<br>Via di Montramito 3/A<br><<a href="https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g" target="_blank">https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g</a>><br>55054  Massarosa<br><<a href="https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g" target="_blank">https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g</a>><br>(LU)<br>Italy<br>phone: <a href="tel:+39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a> <+39%200584%20962313><br>fax:     <a href="tel:+39%200584%20166%200272" value="+3905841660272" target="_blank">+39 0584 1660272</a> <+39%200584%20166%200272><br>mob:   <a href="tel:+39%20331%20623%203686" value="+393316233686" target="_blank">+39 331 6233686</a> <+39%20331%20623%203686><br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a><br><br>-------------------------------------------------------<br><br>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003<br><br>Le informazioni contenute in questo messaggio di posta elettronica e/o<br>nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il<br>loro utilizzo è consentito esclusivamente al destinatario del messaggio,<br>per le finalità indicate nel messaggio stesso. Qualora riceviate questo<br>messaggio senza esserne il destinatario, Vi preghiamo cortesemente di<br>darcene notizia via e-mail e di procedere alla distruzione del messaggio<br>stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,<br>divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od<br>utilizzarlo per finalità diverse, costituisce comportamento contrario ai<br>principi dettati dal D.Lgs. 196/2003.<br><br>The information in this message and/or attachments, is intended solely<br>for the attention and use of the named addressee(s) and may be confidential<br>or proprietary in nature or covered by the provisions of privacy act<br>(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection<br>Code).Any use not in accord with its purpose, any disclosure, reproduction,<br>copying, distribution, or either dissemination, either whole or partial, is<br>strictly forbidden except previous formal approval of the named<br>addressee(s). If you are not the intended recipient, please contact<br>immediately the sender by telephone, fax or e-mail and delete the<br>information in this message that has been received in error. The sender<br>does not give any warranty or accept liability as the content, accuracy or<br>completeness of sent messages and accepts no responsibility  for changes<br>made after they were sent or for other risks which arise as a result of<br>e-mail transmission, viruses, etc.<br><br>On Fri, Nov 17, 2017 at 2:20 PM, Daniel Victoria <<br><a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>> wrote:<br><br><blockquote type="cite">Hi list,<br><br>I just installed GeoNode 2.6 in a fresh Ubuntu Server, using the<br>ppa:geonode/stable repository. I then created a superuser and updated the<br>IP.<br><br>After that i tried to log into GeoServer clicking on the GeoNode icon<br>that appears in the Geoserver web page but it did not work. It gave me a<br>"mismatching redirect uri" Searching the web I found some discussion about<br>setting up GeoServer to allow for Oauth2 to work<br><br><a href="https://lists.osgeo.org/pipermail/geonode-users/2017-June/003261.html" target="_blank">https://lists.osgeo.org/pipermail/geonode-users/2017-June/003261.html</a><br><br>This I followed the steps detailed in a Google Docs written by Alessio<br>Fabiani. After that, things seamed to work. I would log into GeoNode as<br>admin, go to GeoServer and things would work. But if I close geoserver and<br>open again, I'm logged out. And when I click on the GeoNode icon, to log<br>into geoserver, I'm recieve a 404 error<br><br>HTTP Status 404 -<br>------------------------------<br><br>*type* Status report<br><br>*message*<br><br>*description* *The requested resource is not available.*<br>------------------------------<br>Apache Tomcat/7.0.68 (Ubuntu)<br><br>Any idea what is going on?<br><br>Thanks<br>Daniel<br><br><br>_______________________________________________<br>geonode-users mailing list<br><a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br><br><br></blockquote><br></blockquote></blockquote><br></blockquote></blockquote>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.osgeo.org/pipermail/geonode-users/attachments/20171117/50a1993e/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/geonode-users/attachments/20171117/50a1993e/attachment.html</a>><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>geonode-users mailing list<br><a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br><br><br>------------------------------<br><br>End of geonode-users Digest, Vol 34, Issue 32<br>*********************************************<br></div></div></blockquote></div><br></div></div></blockquote></div>