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

Alessio Fabiani alessio.fabiani at geo-solutions.it
Fri Mar 20 07:25:45 PDT 2020


Giuliano,
check also that the geoserver proxy base url is correctly configured.

It must be in the form

http://<host>/geoserver



Il giorno ven 20 mar 2020 alle ore 15:15 Giuliano Grigolin <
giuliano.geobases at gmail.com> ha scritto:

>
> 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
>>>
>> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>


-- 

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A - 55054  Massarosa (LU) - Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686


http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200320/4d95ab20/attachment-0001.html>


More information about the geonode-users mailing list