[GeoNode-users] GeoNode-Project Installation

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Wed Nov 21 07:55:14 PST 2018


Hi all,

Regarding the previous e-mail, I made a test here. Following the guide
<https://github.com/GeoNode/geonode-project/tree/2.8> to install
GeoNode-Project at 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?

Any help on that would be appreciated.

Kind regards

Julierme

On Tue, Nov 20, 2018 at 1:18 PM Julierme Pinheiro <
juliermeopensourcedeveloper at gmail.com> wrote:

> Hi GeoNode users,
>
> I have Geonode-Project installed via Docker in Centos7 Vm and all works
> fine after following the guide in here
> <https://github.com/GeoNode/geonode-project/tree/2.8>.
>
> 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:
>
> celery4my_geonode | django.db.utils.OperationalError: could not connect to
> server: Connection refused
> celery4my_geonode |     Is the server running on host "localhost"
> (127.0.0.1) and accepting
> celery4my_geonode |     TCP/IP connections on port 5432?
> celery4my_geonode | could not connect to server: Cannot assign requested
> address
> celery4my_geonode |     Is the server running on host "localhost" (::1)
> and accepting
> celery4my_geonode |     TCP/IP connections on port 5432?
>
> I tried setting postgres/postgis database from a different server (host =
> 172.21.14.45) as shown bellow, but the problem remains
>
> DATABASES = {
>     'default': {
>         'ENGINE': 'django.db.backends.postgresql_psycopg2',
>         'NAME': 'geonode',
>         'USER': 'geonode',
>         'PASSWORD': 'geonode',
>         'HOST': 'localhost', --> 172.21.14.45
>         'PORT': '5432',
>         'CONN_TOUT': 900,
>     },
>     # vector datastore for uploads
>     'datastore': {
>         'ENGINE': 'django.contrib.gis.db.backends.postgis',
>         # 'ENGINE': '', # Empty ENGINE name disables
>         'NAME': 'geonode_data',
>         'USER': 'geonode',
>         'PASSWORD': 'geonode',
>         'HOST': 'localhost', --> 172.21.14.45
>         'PORT': '5432',
>         'CONN_TOUT': 900,
>     }
> }
> Geoserver is running smoothly, but Django and Celery are up,  giving
> always a response of
> 502 Bad Gateway
> ------------------------------
> nginx/1.15.0
>
> Any comment on that will be very appreciated.
>
> Thank you very much for your time in advance.
>
> Julierme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181121/5e500cbd/attachment.html>


More information about the geonode-users mailing list