<html 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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
font-size:10.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Angel I made the changes you suggested and I now can access the geoserver admin section, thank you. These were my changes:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">ALLOWED_HOSTS="['django', '*','geo.511mobility.org']"</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I removed:<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">HTTPS_HOST=</span><o:p></o:p></p>
<p class="p1"><span class="s1">HTTPS_PORT=</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;color:black;background:white">GERMAN SEGURA</span><span style="font-size:9.0pt;color:black"> <br>
<u>icf.com</u></span><span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">geonode-users <geonode-users-bounces@lists.osgeo.org> on behalf of geonode-users-request@lists.osgeo.org <geonode-users-request@lists.osgeo.org><br>
<b>Date: </b>Thursday, November 23, 2023 at 3:59 AM<br>
<b>To: </b>geonode-users@lists.osgeo.org <geonode-users@lists.osgeo.org><br>
<b>Subject: </b>geonode-users Digest, Vol 103, Issue 7<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Send geonode-users mailing list submissions to<br>
geonode-users@lists.osgeo.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
geonode-users-request@lists.osgeo.org<br>
<br>
You can reach the person managing the list at<br>
geonode-users-owner@lists.osgeo.org<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. Geoserver login redirects to localhost (Angel L. Fernandez T.)<br>
2. Re: Issues trying to stand up GeoNode 4 with the Docker<br>
installation (Giovanni Allegri)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 22 Nov 2023 23:26:17 -0300<br>
From: "Angel L. Fernandez T." <angelfernandezt@gmail.com><br>
To: geonode-users@lists.osgeo.org<br>
Subject: [GeoNode-users] Geoserver login redirects to localhost<br>
Message-ID:<br>
<CA+4b3zJ_HiAPjZMEa9Bo498-HWdvUt_rMsOJY0f-wuV-xN5_iA@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi German, there is some issues you can point in your .env file<br>
<br>
1- your site is http, not https, no need any reference to https in your<br>
.env file<br>
2- if your site have a domain (geo.511...), why in your "ALLOWED_HOSTS"<br>
have a reference to a ip address, and https too. Also dropped the reference<br>
to "localhost"<br>
3- for geoserver configuration you must follow the reference in<br>
<a href="https://training.geonode.geo-solutions.it/GN3/advanced_config/index.html">https://training.geonode.geo-solutions.it/GN3/advanced_config/index.html</a><br>
<br>
I hope this may help you.<br>
<br>
Best regards<br>
<br>
-- <br>
<br>
*Angel L. Fern?ndez Torres *<br>
*Cel: +56 9 4215 5820 (WhatsApp,IMO)*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geonode-users/attachments/20231122/c4b17883/attachment-0001.htm">http://lists.osgeo.org/pipermail/geonode-users/attachments/20231122/c4b17883/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 23 Nov 2023 09:56:54 +0100<br>
From: Giovanni Allegri <giovanni.allegri@geosolutionsgroup.com><br>
To: "McIntosh, Scott" <Scott.McIntosh@icf.com><br>
Cc: "geonode-users@lists.osgeo.org" <geonode-users@lists.osgeo.org>,<br>
Ryan Burley <ryan.burley@geosolutionsgroup.com>, "Segura, German"<br>
<German.Segura@icf.com><br>
Subject: Re: [GeoNode-users] Issues trying to stand up GeoNode 4 with<br>
the Docker installation<br>
Message-ID:<br>
<CAE2GR-eJhT0G=qN=E6bnQ3ZddtDPaQg9hXkQS46t2uYnmbu+cQ@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Scott,<br>
<br>
DATABASE_URL and GEODATABASE_URL in your latest .env file (the one with<br>
your pre-existing credentials) miss the user:password values.<br>
Is it just a typo in this email or did you really forget them? They're<br>
required for the connection to PG.<br>
<br>
Giovanni<br>
<br>
On Thu, Nov 2, 2023 at 6:04?PM McIntosh, Scott via geonode-users <<br>
geonode-users@lists.osgeo.org> wrote:<br>
<br>
> Simone Giannecchini asked me to post the details of my issue trying to set<br>
> up GeoNode 4 to this list.<br>
><br>
> I am trying to use the simplest approach with the Docker installation. I<br>
> am following the instructions here:<br>
> GeoNode/geonode-project: A django template project for creating custom<br>
> GeoNode projects.<br>
> <<a href="https://github.com/GeoNode/geonode-project#start-your-server-using-docker">https://github.com/GeoNode/geonode-project#start-your-server-using-docker</a>><br>
> github.com<br>
> <<a href="https://github.com/GeoNode/geonode-project#start-your-server-using-docker">https://github.com/GeoNode/geonode-project#start-your-server-using-docker</a>><br>
> [image: apple-touch-icon-180x180-a80b8e11abe2.png]<br>
> <<a href="https://github.com/GeoNode/geonode-project#start-your-server-using-docker">https://github.com/GeoNode/geonode-project#start-your-server-using-docker</a>><br>
> <<a href="https://github.com/GeoNode/geonode-project#start-your-server-using-docker">https://github.com/GeoNode/geonode-project#start-your-server-using-docker</a>><br>
> GeoNode Docker Installation ? GeoNode Training<br>
> <<a href="https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html">https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html</a>><br>
> geonode.geosolutionsgroup.com<br>
> <<a href="https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html">https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html</a>><br>
><br>
> <<a href="https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html">https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html</a>><br>
> <<a href="https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html">https://training.geonode.geosolutionsgroup.com/master/GN3/docker/index.html</a>><br>
><br>
> My environment is:<br>
><br>
> Ubuntu 22.04.3 LTS<br>
> Python 3.10.12<br>
> pip 22.0.2<br>
> Docker 24.0.7<br>
> Django 3.2.18<br>
><br>
><br>
> The basic steps I performed, which are right from the documentation, are:<br>
><br>
> 1. Set up Python virtual environment<br>
> 2. Grab the geonode-project code<br>
> 3. Create a new project (which I named geonode_4) using<br>
> the django-admin startproject command<br>
> 4. Create the .env file using the python create-envfile.py script<br>
> 5. Build and launch the containers with docker compose<br>
><br>
><br>
> When everything is up trying to access local host gives a 502 error from<br>
> the proxy.<br>
><br>
> Looking at the logs I see that the Django instance isn?t able to<br>
> authenticate with the database. The exact error is:<br>
><br>
> psql: error: connection to server at "db" (172.25.0.7), port 5432 failed:<br>
> FATAL: password authentication failed for user "postgres"<br>
><br>
><br>
> The database section of the generated .env file is:<br>
><br>
> POSTGRES_USER=postgres<br>
> POSTGRES_PASSWORD=imyqqbUhAaKistN<br>
> GEONODE_DATABASE=geonode_4<br>
> GEONODE_DATABASE_PASSWORD=IUNooNALdpzTbQA<br>
> GEONODE_GEODATABASE=geonode_4_data<br>
> GEONODE_GEODATABASE_PASSWORD=yDpdbmscmgFJRpE<br>
> GEONODE_DATABASE_SCHEMA=public<br>
> GEONODE_GEODATABASE_SCHEMA=public<br>
> DATABASE_HOST=db<br>
> DATABASE_PORT=5432<br>
> DATABASE_URL=postgis://geonode_4:IUNooNALdpzTbQA@db:5432/geonode_4<br>
> GEODATABASE_URL=postgis://geonode_4_data:yDpdbmscmgFJRpE@db<br>
> :5432/geonode_4_data<br>
><br>
><br>
><br>
> Since I already have a Postgres server with the required databases and<br>
> credentials, I also tries that.<br>
><br>
> That configuration is:<br>
><br>
> POSTGRES_USER=postgres<br>
> POSTGRES_PASSWORD=[secret]<br>
> GEONODE_DATABASE=geonode<br>
> GEONODE_DATABASE_PASSWORD=[secret]<br>
> GEONODE_GEODATABASE=geonode_data<br>
> GEONODE_GEODATABASE_PASSWORD=[secret]<br>
> GEONODE_DATABASE_SCHEMA=public<br>
> GEONODE_GEODATABASE_SCHEMA=public<br>
> DATABASE_HOST=postgres.511mobility.org<br>
> DATABASE_PORT=5432<br>
> DATABASE_URL=postgis://postgres.511mobility.org:5432/geonode<br>
> GEODATABASE_URL=postgis://postgres.511mobility.org:5432/geonode_data<br>
><br>
> With this configuration error I get a trace ending with:<br>
><br>
> File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 122, in<br>
> connect<br>
> django4geonode_4 | conn = _connect(dsn,<br>
> connection_factory=connection_factory, **kwasync)<br>
> django4geonode_4 | django.db.utils.OperationalError: connection to server<br>
> at "postgres.511mobility.org" (172.31.36.200), port 5432 failed:<br>
> fe_sendauth: no password supplied<br>
><br>
><br>
> The out of the box .env settings fail with a db connection error, as does<br>
> a custom configuration to a server whose credentials are know to be valid.<br>
> I hope there is something simple I?m missing.<br>
><br>
> Thanks in advance,<br>
><br>
><br>
> *Scott McIntosh* | Technical Director, Engineering & Emerging Technology<br>
> *ICF* | icf.com | scott.mcintosh@icf.com | mobile: 703.283.3424<br>
><br>
><br>
><br>
> _______________________________________________<br>
> geonode-users mailing list<br>
> geonode-users@lists.osgeo.org<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/geonode-users">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
><br>
<br>
<br>
-- <br>
<br>
==<br>
<br>
GeoServer Professional Services from the experts!<br>
<br>
Visit <a href="http://bit.ly/gs-services-us">http://bit.ly/gs-services-us</a> for more information.<br>
==<br>
<br>
Dott. Giovanni Allegri<br>
<br>
Technical Lead / Project Manager<br>
<br>
<br>
GeoSolutions Group<br>
phone: +39 0584 962313<br>
cell: +39 345 2815774<br>
<br>
fax: +39 0584 1660272<br>
<br>
<a href="https://www.geosolutionsgroup.com/">https://www.geosolutionsgroup.com/</a><br>
<a href="http://twitter.com/geosolutions_it">http://twitter.com/geosolutions_it</a><br>
-------------------------------------------------------<br>
<br>
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE<br>
2016/679 - Regolamento generale sulla protezione dei dati ?GDPR?), si<br>
precisa che ogni circostanza inerente alla presente email (il suo<br>
contenuto, gli eventuali allegati, etc.) ? un dato la cui conoscenza ?<br>
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il<br>
messaggio Le ? giunto per errore, ? tenuta/o a cancellarlo, ogni altra<br>
operazione ? illecita. Le sarei comunque grato se potesse darmene notizia.<br>
<br>
This email is intended only for the person or entity to which it is<br>
addressed and may contain information that is privileged, confidential or<br>
otherwise protected from disclosure. We remind that - as provided by<br>
European Regulation 2016/679 ?GDPR? - copying, dissemination or use of this<br>
e-mail or the information herein by anyone other than the intended<br>
recipient is prohibited. If you have received this email by mistake, please<br>
notify us immediately by telephone or e-mail.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geonode-users/attachments/20231123/d554c297/attachment.htm">http://lists.osgeo.org/pipermail/geonode-users/attachments/20231123/d554c297/attachment.htm</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: apple-touch-icon-180x180-a80b8e11abe2.png<br>
Type: image/png<br>
Size: 21128 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geonode-users/attachments/20231123/d554c297/attachment.png">http://lists.osgeo.org/pipermail/geonode-users/attachments/20231123/d554c297/attachment.png</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
geonode-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of geonode-users Digest, Vol 103, Issue 7<br>
*********************************************<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>