<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Toni,</div><div>Thank you very much for your reply.</div><div>Find bellow the site working with wsgi.py configured to settings</div><div></div><div><a href="http://192.241.135.159/">http://192.241.135.159/</a><br></div><div><br></div><div>Now, going back to the issue related to wsgi.py configured to local_settings:<br></div><div><br></div><div>Yes, checking the logs, I found out that there is an issue with SITEURL. Please see bellow:<br></div><div><br></div><div>celery4my_geonode | SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br>celery4my_geonode | NameError: name 'SITE_HOST_NAME' is not defined<br><br>django4my_geonode | SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br>django4my_geonode | NameError: name 'SITE_HOST_NAME' is not defined</div><div><br></div><div>SITE_HOST_NAME is defined after SITEURL. <b>I changed from</b>:</div><div><br></div><div>SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br><br># we need hostname for deployed<br>_surl = urlparse(SITEURL)<br>HOSTNAME = _surl.hostname<br><br># per-deployment settings should go here<br>SITE_HOST_NAME = os.getenv('SITE_HOST_NAME', HOSTNAME)<br>SITE_HOST_PORT = os.getenv('SITE_HOST_PORT', "80")<br></div><div><br></div><div><b>To: </b><br></div><div><br></div><div>#SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br><br># we need hostname for deployed<br>#_surl = urlparse(SITEURL)<br>#HOSTNAME = _surl.hostname<br><br># per-deployment settings should go here<br>SITE_HOST_NAME = os.getenv('SITE_HOST_NAME', "172.21.5.187")<br>SITE_HOST_PORT = os.getenv('SITE_HOST_PORT', "80")<br><br>SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br><br># we need hostname for deployed<br>_surl = urlparse(SITEURL)<br>HOSTNAME = _surl.hostname<br></div><div><br></div><div>But the django4my_geonode and celery4my_geonode container error remains the same:<br></div><div><br></div><div>celery4my_geonode | SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br>celery4my_geonode | NameError: name 'SITE_HOST_NAME' is not defined<br><br>django4my_geonode | SITEURL = os.getenv('SITEURL', "http://%s:%s/" % (SITE_HOST_NAME, SITE_HOST_PORT))<br>django4my_geonode | NameError: name 'SITE_HOST_NAME' is not defined</div><div><br></div><div>I appreciated your time and by the way, Happy 2019 for you all. I wish you all health and success in all life projects.<br></div><div><br></div><div>Kind regards<br></div><div><br></div><div>Julierme<br></div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 9, 2019 at 6:18 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Julierme,<br>
<br>
have you checked the output of logs?<br>
<br>
$ docker-compose logs -f<br>
or<br>
$ docker-compose logs -f django<br>
or<br>
$ docker-compose logs -f celery<br>
<br>
Cheers,<br>
<br>
Toni<br>
<br>
> ----------------------------------------------------------------------<br>
> <br>
> Message: 1<br>
> Date: Wed, 9 Jan 2019 11:27:59 -0200<br>
> From: Julierme Pinheiro <<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@gmail.com</a>><br>
> To: geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>
> Subject: [GeoNode-users] GeoNode-Project local_settings<br>
> Message-ID:<br>
> <CAKTKyJJ_6KV9d=<a href="mailto:zikW9SAj6bybDCD%2Bp8-XT7OuDZL7QxGxVVzw@mail.gmail.com" target="_blank">zikW9SAj6bybDCD+p8-XT7OuDZL7QxGxVVzw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Dear all,<br>
> <br>
> I am running an Ubuntu 18.04 LTS VM. I am trying to install<br>
> GeoNode-Project@2.8 via Docker following the instructions in here.<br>
> <<a href="https://github.com/GeoNode/geonode-project/tree/2.8" rel="noreferrer" target="_blank">https://github.com/GeoNode/geonode-project/tree/2.8</a>><br>
> By changing wsgi.py to local_settings, celery4my_geonode and<br>
> django4my_geonode won't start and I am always getting the *502 Bad Gateway*<br>
> response in the browser.<br>
> <br>
> Has anyone faced the same issue and could guide me on how to solve it?<br>
> <br>
> Thank you for your time in advance<br>
> <br>
> Regards<br>
<br>
</blockquote></div>