[GeoNode-users] Local Geoserver listed twice on map creation

Toni Schönbuchner toni.schoenbuchner at csgis.de
Thu Nov 24 09:06:58 PST 2016


Dear List Users,

on a Geonode 2.4 installation running on Ubuntu the local Geoserver is listed twice (when creating a new map under Servers-available layers).
One time with it´s IP and a second time with the DNS

http://195.11.125.89/geoserver/wms
http://myDomain.org/geoserver/wms

On hover the title says on both ‚local Geoserver‘.

Find below the parts of local_settiongs.py describing the geoserver connection.
Unfortuantely I have know clue why this is happening.

Thanks for any ideas,

Toni

SITENAME = 'GeoNode'
#SITEURL = '195.11.125.89'
SITEURL = 'http://myDomain.org/'

DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'geonode'
DATABASE_USER = 'geonode'
DATABASE_PASSWORD = ‚password'
DATABASE_HOST = 'localhost'
DATABASE_PORT = '5432'
...

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': DATABASE_NAME,
        'USER': DATABASE_USER,
        'PASSWORD': DATABASE_PASSWORD,
        'HOST': DATABASE_HOST,
        'PORT': DATABASE_PORT,
    },
    'datastore': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'geonode_data',
        'USER': DATABASE_USER,
        'PASSWORD': DATABASE_PASSWORD,
        'HOST': DATABASE_HOST,
        'PORT': DATABASE_PORT,
    }
}

GEOSERVER_URL = SITEURL + 'geoserver/'

# OGC (WMS/WFS/WCS) Server Settings
OGC_SERVER = {
    'default' : {
        'BACKEND' : 'geonode.geoserver',
        'LOCATION' : 'http://localhost:8080/geoserver/',
        'PUBLIC_LOCATION' : GEOSERVER_URL,
        'USER' : 'admin',
        'PASSWORD' : 'password',
        'MAPFISH_PRINT_ENABLED' : True,
        'PRINT_NG_ENABLED' : True,
        'GEONODE_SECURITY_ENABLED' : True,
        'GEOGIG_ENABLED' : False,
        'WMST_ENABLED' : False,
        'BACKEND_WRITE_ENABLED': True,
        'WPS_ENABLED' : True,
        'LOG_FILE':'/usr/share/geoserver/data/logs/geoserver.log',
        # Set to name of database in DATABASES dictionary to enable
        'DATASTORE': 'datastore',
    }
}

….

ALLOWED_HOSTS = [ 'localhost', '195.11.125.89', 'myDomain.org' ]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20161124/e69246e2/attachment.sig>


More information about the geonode-users mailing list