<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">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>