[GeoNode-users] Dificulty logging into GeoServer (Daniel Victoria)

Toni Schönbuchner toni.schoenbuchner at csgis.de
Fri Nov 17 08:28:51 PST 2017


Dear Daniel,

some Mails ago you wrote:

>>> I then created a superuser and updated the
>>> IP.

How did you update your IP?
a) by changing it directly in local_settings.py
b) by geonode-updateip #

b) should configure oauth for you:
https://github.com/GeoNode/geonode/blob/91cab33f61cdbd5523dd330eda8119c8c9509fb8/package/support/geonode.updateip#L126 <https://github.com/GeoNode/geonode/blob/91cab33f61cdbd5523dd330eda8119c8c9509fb8/package/support/geonode.updateip#L126>

If after that I´m still facing problems with auth I continue by
searching for a updated (old) IP within the geoserver
security directory grep -R …

Don´t forget to restart your tomcat after any changes.

cheers,

Toni




-----------------------------------------------
CSGIS

-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
Mobil	+49/ (0) 176 6680 3198
Tel 		+49/ (0) 341 24 04 738
Fax 		+49/ (0) 341 24 04 73
Web		http://csgis.de
-----------------------------------------------

Hinweis gemäß § 33 BDSG
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.

> Am 17.11.2017 um 17:06 schrieb geonode-users-request at lists.osgeo.org:
> 
> Send geonode-users mailing list submissions to
> 	geonode-users at lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.osgeo.org/mailman/listinfo/geonode-users
> or, via email, send a message with subject or body 'help' to
> 	geonode-users-request at lists.osgeo.org
> 
> You can reach the person managing the list at
> 	geonode-users-owner at lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geonode-users digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Dificulty logging into GeoServer (Daniel Victoria)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 17 Nov 2017 16:06:36 +0000
> From: Daniel Victoria <daniel.victoria at gmail.com>
> To: Alessio Fabiani <alessio.fabiani at geo-solutions.it>
> Cc: "geonode-users at lists.osgeo.org" <geonode-users at lists.osgeo.org>
> Subject: Re: [GeoNode-users] Dificulty logging into GeoServer
> Message-ID:
> 	<CA+irsJi+AgtSGSZKoaNEBQUcpT=xSc_u4BieqKH1iqVHvouO4A at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Just found out that GeoServer autentication stops working after I try to
> look at any raster layer using the OpenLayers Map Preview. And if it's
> broken in one browser (firefox, for exemple), it's still working in another
> (chomium)
> 
> Very strange...
> 
> On Fri, Nov 17, 2017 at 1:21 PM Daniel Victoria <daniel.victoria at gmail.com>
> wrote:
> 
>> The funny thing is that it works the first time I login after a
>> apache/tomcat restart
>> 
>> Where can I look to try and debug this problem?
>> 
>> I'm also seeing this in apache error.log. Not sure if it's related:
>> 
>> extern "Python": function Cryptography_rand_bytes() called, but
>> @ffi.def_extern() was not called in the current subinterpreter.  Returning
>> 0.
>> 
>> 
>> On Fri, Nov 17, 2017 at 1:12 PM Alessio Fabiani <
>> alessio.fabiani at geo-solutions.it> wrote:
>> 
>>> Ok, so the problem arise when you try to use the geonode button, right?
>>> 
>>> In that case I'm afraid there's an issue on the OAuth2 configuration
>>> which can be either on GeoNode side, GeoServer side or both :(
>>> 
>>> Also you have to be sure that GeoServer can reach GeoNode in order to
>>> validate the credentials and successfully complete the handshake.
>>> 
>>> Regards,
>>> 
>>> Alessio Fabiani
>>> 
>>> ==
>>> GeoServer Professional Services from the experts! Visit
>>> http://goo.gl/it488V for more information.
>>> ==
>>> 
>>> Ing. Alessio Fabiani
>>> 
>>> @alfa7691
>>> Founder/Technical Lead
>>> 
>>> 
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>>> 55054  Massarosa
>>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>>> (LU)
>>> Italy
>>> phone: +39 0584 962313 <+39%200584%20962313>
>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>> mob:   +39 331 6233686 <+39%20331%20623%203686>
>>> 
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>> 
>>> -------------------------------------------------------
>>> 
>>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>> 
>>> 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.
>>> 
>>> 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.
>>> 
>>> On Fri, Nov 17, 2017 at 4:06 PM, Daniel Victoria <
>>> daniel.victoria at gmail.com> wrote:
>>> 
>>>> Hi Alessio,
>>>> 
>>>> I can log into Geoserver using the admin password.
>>>> 
>>>> And the geoserver web gui works also
>>>> 
>>>> 
>>>> On Fri, Nov 17, 2017 at 11:49 AM Alessio Fabiani <
>>>> alessio.fabiani at geo-solutions.it> wrote:
>>>> 
>>>>> Hi Daniel,
>>>>> a question, are you able to login to GeoServer at least the first time
>>>>> or you cannot login to GeoServer anyway?
>>>>> 
>>>>> Also the GeoServer web gui appears, even if you are not logged in, if
>>>>> you go directly to the geoserver url?
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Alessio Fabiani
>>>>> 
>>>>> ==
>>>>> GeoServer Professional Services from the experts! Visit
>>>>> http://goo.gl/it488V for more information.
>>>>> ==
>>>>> 
>>>>> Ing. Alessio Fabiani
>>>>> 
>>>>> @alfa7691
>>>>> Founder/Technical Lead
>>>>> 
>>>>> 
>>>>> GeoSolutions S.A.S.
>>>>> Via di Montramito 3/A
>>>>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>>>>> 55054  Massarosa
>>>>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>>>>> (LU)
>>>>> Italy
>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>> mob:   +39 331 6233686 <+39%20331%20623%203686>
>>>>> 
>>>>> http://www.geo-solutions.it
>>>>> http://twitter.com/geosolutions_it
>>>>> 
>>>>> -------------------------------------------------------
>>>>> 
>>>>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>>>> 
>>>>> 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.
>>>>> 
>>>>> 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.
>>>>> 
>>>>> On Fri, Nov 17, 2017 at 2:20 PM, Daniel Victoria <
>>>>> daniel.victoria at gmail.com> wrote:
>>>>> 
>>>>>> Hi list,
>>>>>> 
>>>>>> I just installed GeoNode 2.6 in a fresh Ubuntu Server, using the
>>>>>> ppa:geonode/stable repository. I then created a superuser and updated the
>>>>>> IP.
>>>>>> 
>>>>>> After that i tried to log into GeoServer clicking on the GeoNode icon
>>>>>> that appears in the Geoserver web page but it did not work. It gave me a
>>>>>> "mismatching redirect uri" Searching the web I found some discussion about
>>>>>> setting up GeoServer to allow for Oauth2 to work
>>>>>> 
>>>>>> https://lists.osgeo.org/pipermail/geonode-users/2017-June/003261.html
>>>>>> 
>>>>>> This I followed the steps detailed in a Google Docs written by Alessio
>>>>>> Fabiani. After that, things seamed to work. I would log into GeoNode as
>>>>>> admin, go to GeoServer and things would work. But if I close geoserver and
>>>>>> open again, I'm logged out. And when I click on the GeoNode icon, to log
>>>>>> into geoserver, I'm recieve a 404 error
>>>>>> 
>>>>>> HTTP Status 404 -
>>>>>> ------------------------------
>>>>>> 
>>>>>> *type* Status report
>>>>>> 
>>>>>> *message*
>>>>>> 
>>>>>> *description* *The requested resource is not available.*
>>>>>> ------------------------------
>>>>>> Apache Tomcat/7.0.68 (Ubuntu)
>>>>>> 
>>>>>> Any idea what is going on?
>>>>>> 
>>>>>> Thanks
>>>>>> Daniel
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> geonode-users mailing list
>>>>>> geonode-users at lists.osgeo.org
>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>> 
>>>>>> 
>>>>> 
>>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171117/50a1993e/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
> 
> 
> ------------------------------
> 
> End of geonode-users Digest, Vol 34, Issue 32
> *********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171117/324093ef/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171117/324093ef/attachment-0001.sig>


More information about the geonode-users mailing list