[GeoNode-users] updatelayers "httplib2.socks.HTTPError: (403, 'Forbidden')" problem

Giuliano Grigolin giuliano.geobases at gmail.com
Fri Mar 20 07:11:49 PDT 2020


Yes, i can upload layers via GeoNode Django interface, the WMS and WFS is
running ok.











On Fri, Mar 20, 2020 at 10:54 AM G. Allegri <
giovanni.allegri at geo-solutions.it> wrote:

> How did you setup Geoserver?
>
> And a basic question: are you able to see any map inside GeoNode? I mean,
> is Geoserver responding outside of the updatelayers command?
>
>
> Il ven 20 mar 2020, 14:47 Giuliano Grigolin <giuliano.geobases at gmail.com>
> ha scritto:
>
>> no changes ...
>>
>>
>> root at geonode:/usr/lib/python2.7/dist-packages/django/conf/project_template#
>> DJANGO_SETTINGS_MODULE=geonode.local_settings python manage.py updatelayers
>> -w geonode
>>
>> Inspecting the available layers in GeoServer ...
>> GET http://localhost:8080/geoserver/rest/workspaces.xml
>> Traceback (most recent call last):
>>   File "manage.py", line 11, in <module>
>>     execute_from_command_line(sys.argv)
>>   File
>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>> 354, in execute_from_command_line
>>     utility.execute()
>>   File
>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>> 346, in execute
>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
>> line 394, in run_from_argv
>>     self.execute(*args, **cmd_options)
>>   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
>> line 445, in execute
>>     output = self.handle(*args, **options)
>>   File
>> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py",
>> line 122, in handle
>>     execute_signals=True)
>>   File
>> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
>> 531, in gs_slurp
>>     workspace = cat.get_workspace(workspace)
>>   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
>> 1031, in get_workspace
>>     workspaces = self.get_workspaces(name)
>>   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
>> 1011, in get_workspaces
>>     description = self.get_xml("%s/workspaces.xml" % self.service_url)
>>   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 211,
>> in get_xml
>>     response, content = self.http.request(rest_url)
>>   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line
>> 1659, in request
>>     (response, content) = self._request(conn, authority, uri,
>> request_uri, method, body, headers, redirections, cachekey)
>>   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line
>> 1399, in _request
>>     (response, content) = self._conn_request(conn, request_uri, method,
>> body, headers)
>>   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line
>> 1319, in _conn_request
>>     conn.connect()
>>   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 946,
>> in connect
>>     self.sock.connect((self.host, self.port) + sa[2:])
>>   File "/usr/lib/python2.7/dist-packages/httplib2/socks.py", line 434, in
>> connect
>>     self.__negotiatehttp(destpair[0], destpair[1])
>>   File "/usr/lib/python2.7/dist-packages/httplib2/socks.py", line 400, in
>> __negotiatehttp
>>     raise HTTPError((statuscode, statusline[2]))
>> httplib2.socks.HTTPError: (403, 'Forbidden')
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Mar 20, 2020 at 3:41 AM Toni Schönbuchner <
>> toni.schoenbuchner at csgis.de> wrote:
>>
>>> Hi Giuliano,
>>>
>>> in addition to Giovanni. Remember that you also can define the settings
>>> file:
>>> For example:
>>>
>>> DJANGO_SETTINGS_MODULE=your_geonode.local_settings python manage.py  ...
>>>
>>> Depending on your environment be sure to use the correct one.
>>>
>>> Cheers
>>>
>>> Toni
>>>
>>> Am 19.03.2020 um 22:29 schrieb geonode-users-request at lists.osgeo.org:
>>>
>>> *Von: *"G. Allegri" <giovanni.allegri at geo-solutions.it>
>>> *Betreff: **Aw: [GeoNode-users] updatelayers "httplib2.socks.HTTPError:
>>> (403, 'Forbidden')" problem ...*
>>> *Datum: *19. März 2020 um 22:04:45 MEZ
>>> *An: *Giuliano Grigolin <giuliano.geobases at gmail.com>
>>> *Kopie: *geonode-users <geonode-users at lists.osgeo.org>
>>>
>>>
>>> Are you sure Geoserver credentials (admin user and password) are
>>> configured correctly on GeoNode?
>>>
>>> Giovanni
>>>
>>> Il gio 19 mar 2020, 21:37 Giuliano Grigolin <giuliano.geobases at gmail.com>
>>> ha scritto:
>>>
>>>> Hi all !
>>>>
>>>> I have a GeoNode 2.8 in production, with internet domain, in Ubuntu
>>>> Server 16.04.
>>>> When i try update a layer that i import trough "Import Data" in
>>>> GeoServer, i get the following message:
>>>>
>>>> root at geonode# python manage.py updatelayers -w geonode -f
>>>> my_layer_in_GeoServer
>>>>
>>>
>>> _______________________________________________
>> 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/20200320/985b7cb7/attachment-0001.html>


More information about the geonode-users mailing list