<div dir="ltr"><div>...and yes, in the case of using os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.local_settings"), I have local_settings.py in my /my_geonode/my_geonode/ path.</div><div><br></div><div>Thank you for your time in advance.</div><div><br></div><div>Julierme<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 21, 2018 at 1:55 PM Julierme Pinheiro <<a href="mailto:juliermeopensourcedeveloper@gmail.com">juliermeopensourcedeveloper@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>Regarding the previous e-mail, I made a test here. Following the <a href="https://github.com/GeoNode/geonode-project/tree/2.8" target="_blank">guide</a> to install GeoNode-Project@2.8, everything works fine if I set the settings in my_geonode/wsgi.py as os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.settings"). However, if I change to <local_settings> in my_geonode/wsgi.py to os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.local_settings"), I have the issues showed in the previous e-mail. Is there anything else that I must pay attention or may be missing configuration?</div><div><br></div><div>Any help on that would be appreciated.</div><div><br></div><div>Kind regards</div><div><br></div><div>Julierme<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 1:18 PM Julierme Pinheiro <<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi GeoNode users,</div><div><br></div><div>I have Geonode-Project installed via Docker in Centos7 Vm and all works fine after following the guide in <a href="https://github.com/GeoNode/geonode-project/tree/2.8" target="_blank">here</a>.</div><div><br></div><div>Now, I am trying to repeat the task installing GeoNode-Project in a server in our network, and I am facing the issue bellow.   It seems database connection issue:<br></div><div dir="ltr"><br></div><div dir="ltr">celery4my_geonode | django.db.utils.OperationalError: could not connect to server: Connection refused<br>celery4my_geonode |     Is the server running on host "localhost" (127.0.0.1) and accepting<br>celery4my_geonode |     TCP/IP connections on port 5432?<br>celery4my_geonode | could not connect to server: Cannot assign requested address<br>celery4my_geonode |     Is the server running on host "localhost" (::1) and accepting<br>celery4my_geonode |     TCP/IP connections on port 5432?</div><div dir="ltr"><br></div><div>I tried setting postgres/postgis database from a different server (host = 172.21.14.45) as shown bellow, but the problem remains<br></div><div><br></div><div>DATABASES = {<br>    'default': {<br>        'ENGINE': 'django.db.backends.postgresql_psycopg2',<br>        'NAME': 'geonode',<br>        'USER': 'geonode',<br>        'PASSWORD': 'geonode',<br>        'HOST': 'localhost', --> 172.21.14.45<br>        'PORT': '5432',<br>        'CONN_TOUT': 900,<br>    },<br>    # vector datastore for uploads<br>    'datastore': {<br>        'ENGINE': 'django.contrib.gis.db.backends.postgis',<br>        # 'ENGINE': '', # Empty ENGINE name disables<br>        'NAME': 'geonode_data',<br>        'USER': 'geonode',<br>        'PASSWORD': 'geonode',<br>        'HOST': 'localhost', --> 172.21.14.45<br>        'PORT': '5432',<br>        'CONN_TOUT': 900,<br>    }<br>}<br></div><div>Geoserver is running smoothly, but Django and Celery are up,  giving always a response of <br><center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.0<br><br></center><center>Any comment on that will be very appreciated.  <br><br></center><center>Thank you very much for your time in advance.<br><br></center><center>Julierme<br></center></div></div></div>
</blockquote></div>
</blockquote></div>