[GeoNode-users] Unable to see a newly added layer in Geoserver in Geonode

Nicolas D. hieloynieve at gmail.com
Tue Dec 10 15:58:45 PST 2019


Thank you for all this information. I will try to see where the problem
comes from
Nicolas

Le mar. 10 déc. 2019 à 23:13, Francesco Bartoli <xbartolone at gmail.com> a
écrit :

> In GeoNode there is a complex security layer of permissions and
> authorization through GeoServer based on the OAuth2. More on this here
> http://docs.geonode.org/en/2.10.x/advanced/components/index.html#geonode-security-backend
>
> Hope this clarifies
> Il 10 dic 2019, 22:44 +0100, Nicolas D. <hieloynieve at gmail.com>, ha
> scritto:
>
> Thanks for these informations. I will see to install the latest version
> 2.10.
> So, I wanted to know why when we add data in geoserver, we can't see them
> through a WMS url in other applications? While the data added in geonode
> they are visible through a WMS url.
>
> Le mar. 10 déc. 2019 à 19:07, Francesco Bartoli <xbartolone at gmail.com> a
> écrit :
>
>> DJANGO_SETTINGS_MODULE=geonode.settings and —settings=geonode.settings
>> are equivalent. That said, I’m still seeing a connection error but I cannot
>> say what that should be. However, be careful about the fact that 2.8 is no
>> longer maintained. I would recommend to upgrade as soon as possible
>>
>> Hope this helps
>> F.
>> Il 10 dic 2019, 18:36 +0100, Nicolas D. <hieloynieve at gmail.com>, ha
>> scritto:
>>
>> you're right, I haven't seen this page. Thank you, it's interesting
>> because that's exactly what I want to do, since I also want to add data
>> from a POSTGIS database.
>> When I use the DJANGO_SETTINGS_MODULE = geonode.settings python manage.py
>> updatelayers --help function, it works correctly as shown in website.
>> By cons, when I want to add the data with this command:
>> DJANGO_SETTINGS_MODULE=geonode.settings python manage.py updatelayers -w
>> geonode -f Measures, it does not work. I have attached the displayed
>> errors.
>> Can you please tell me the parameters to configure for this function to
>> work properly? what is the next step to test what's wrong?
>>
>> Le mar. 10 déc. 2019 à 16:02, Francesco Bartoli <xbartolone at gmail.com> a
>> écrit :
>>
>>> I guess you didn’t have a look at the documentation
>>> http://docs.geonode.org/en/2.10.x/admin/mgmt_commands/index.html#management-command-updatelayers
>>>  :)
>>> Il 10 dic 2019, 15:58 +0100, Nicolas D. <hieloynieve at gmail.com>, ha
>>> scritto:
>>>
>>> What should I give you as details for "-settings = geonode.settings"?
>>>
>>> Le mar. 10 déc. 2019 à 15:47, Nicolas D. <hieloynieve at gmail.com> a
>>> écrit :
>>>
>>>> I uploaded a layer to GeoServer as (
>>>> https://geoserver.geo-solutions.it/edu/en/adding_data/add_shp.html)
>>>> After, I am able to see the new layer in the GeoServer Layers page
>>>> I have made changes to the GeoFence Data Rules by creating new rules
>>>> for the services (GWC, WMS, *, WPS, WFS)
>>>> For import data to geonode, i used the python manage.py updatelayers
>>>> command for it but it doesn't work.
>>>>
>>>> I'm using a virtual environment. For start geonode I use the command: source
>>>> env/bin/activate, then I set on the folder of the application (cd
>>>> "folder"), to launch the services: paver start.
>>>>
>>>>    -
>>>>    - Specs: GeoNode version: 2.8 with mapstore viewer, GeoServer
>>>>    version: 2.14.3, Ubuntu server
>>>>
>>>>
>>>>
>>>> Le mar. 10 déc. 2019 à 15:31, Francesco Bartoli <xbartolone at gmail.com>
>>>> a écrit :
>>>>
>>>>> 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/20191211/b12df9f5/attachment-0001.html>


More information about the geonode-users mailing list