[GeoNode-users] Unable to see a newly added layer in Geoserver in Geonode
Francesco Bartoli
xbartolone at gmail.com
Tue Dec 10 06:31:21 PST 2019
All of them are missing the declaration of the settings to use, are you in a virtual environment or something? Can you try by explicitly declaring it?
—settings=geonode.settings
Il 10 dic 2019, 15:27 +0100, Nicolas D. <hieloynieve at gmail.com>, ha scritto:
> I tried these different commands:
> - python manage.py updatelayers
> - python manage.py updatelayers --skip-geonode-registered -w geonode
> - python manage.py updatelayers --skip-geonode-registered
> - python manage.py updatelayers -w geonode
> Each time, it does not work
>
> > Le mar. 10 déc. 2019 à 15:09, Francesco Bartoli <xbartolone at gmail.com> a écrit :
> > > What’s then the literal command you are trying to run?
> > > Il 10 dic 2019, 15:05 +0100, Nicolas D. <hieloynieve at gmail.com>, ha scritto:
> > > > Thank you for your help. Sorry, it's an oversight on my part. I will pay attention next time.
> > > >
> > > > I looked at the geonode / settings.py file to check for correct setting parameters.
> > > > The OGC dictionary parameters are as follows
> > > >
> > > > OGC_SERVER = {
> > > > 'default': {
> > > > 'BACKEND': 'geonode.geoserver',
> > > > 'LOCATION': GEOSERVER_LOCATION,
> > > > 'WEB_UI_LOCATION': GEOSERVER_WEB_UI_LOCATION,
> > > > 'LOGIN_ENDPOINT': 'j_spring_oauth2_geonode_login',
> > > > 'LOGOUT_ENDPOINT': 'j_spring_oauth2_geonode_logout',
> > > > # PUBLIC_LOCATION needs to be kept like this because in dev mode
> > > > # the proxy won't work and the integration tests will fail
> > > > # the entire block has to be overridden in the local_settings
> > > > 'PUBLIC_LOCATION': GEOSERVER_PUBLIC_LOCATION,
> > > > 'USER': OGC_SERVER_DEFAULT_USER,
> > > > 'PASSWORD': OGC_SERVER_DEFAULT_PASSWORD,
> > > > 'MAPFISH_PRINT_ENABLED': True,
> > > > 'PRINT_NG_ENABLED': True,
> > > > 'GEONODE_SECURITY_ENABLED': True,
> > > > 'GEOFENCE_SECURITY_ENABLED': GEOFENCE_SECURITY_ENABLED,
> > > > 'GEOFENCE_URL': os.getenv('GEOFENCE_URL', 'internal:/'),
> > > > 'WMST_ENABLED': False,
> > > > 'BACKEND_WRITE_ENABLED': True,
> > > > 'WPS_ENABLED': True,
> > > > 'LOG_FILE': '%s/geoserver/data/logs/geoserver.log'
> > > > % os.path.abspath(os.path.join(PROJECT_ROOT, os.pardir)),
> > > > # Set to name of database in DATABASES dictionary to enable
> > > > # 'datastore',
> > > > 'DATASTORE': os.getenv('DEFAULT_BACKEND_DATASTORE', ''),
> > > > 'TIMEOUT': int(os.getenv('OGC_REQUEST_TIMEOUT', '5')),
> > > > 'MAX_RETRIES': int(os.getenv('OGC_REQUEST_MAX_RETRIES', '5')),
> > > > 'BACKOFF_FACTOR': float(os.getenv('OGC_REQUEST_BACKOFF_FACTOR', '0.3')),
> > > > 'POOL_MAXSIZE': int(os.getenv('OGC_REQUEST_POOL_MAXSIZE', '10')),
> > > > 'POOL_CONNECTIONS': int(os.getenv('OGC_REQUEST_POOL_CONNECTIONS', '10')),
> > > > }
> > > > }
> > > > Are the variables correct?
> > > > Should I check other settings in the file for this to work?
> > > > Nicolas
> > > >
> > > > > Le mar. 10 déc. 2019 à 14:31, Francesco Bartoli <xbartolone at gmail.com> a écrit :
> > > > > > Please look at the documentation http://docs.geonode.org/en/2.10.x/basic/index.html#geonode-settings
> > > > > >
> > > > > > And also, please remember to reply to the list so the discussion can be useful for others
> > > > > > Il 10 dic 2019, 14:27 +0100, Nicolas D. <hieloynieve at gmail.com>, ha scritto:
> > > > > > > Hi,
> > > > > > > Thank you for your reply. Where can I find the settings.py file? What settings do I need to configure or check for this to work properly?
> > > > > > > Regards,
> > > > > > > Nicolas
> > > > > > >
> > > > > > > > Le mar. 10 déc. 2019 à 13:54, Francesco Bartoli <xbartolone at gmail.com> a écrit :
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > apparently it doesn’t accomplish to access GeoServer properly so the question is how does your settings.py look like?
> > > > > > > > >
> > > > > > > > > Francesco
> > > > > > > > > Il 10 dic 2019, 11:15 +0100, Nicolas D. <hieloynieve at gmail.com>, ha scritto:
> > > > > > > > > > Hi,
> > > > > > > > > > I tried using the updatelayers function to Update the GeoNode application with the GeoServer data. I used python manage.py updatelayers, but I do not understand why it does not work. I have attached the errors displayed. Can you please help me to find out what's wrong? Thank you in advance, truthfully yours,
> > > > > > > > > > _______________________________________________
> > > > > > > > > > geonode-users mailing list
> > > > > > > > > > geonode-users at lists.osgeo.org
> > > > > > > > > > https://lists.osgeo.org/mailman/listinfo/geonode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20191210/c2bacd9a/attachment-0001.html>
More information about the geonode-users
mailing list