[GeoNode-users] (no subject)

Naresh N naresh919 at gmail.com
Thu May 9 04:29:30 PDT 2019


Dear Amedeo ,
Thanks for responding.
As i donot have access of system to verify  from inside the server
http://localhost:8080/geoserver.
 But the following are few more observations
1. If we  set *GEOSERVER_location*: https://localhost/geoserver and
*GEOSERVER_PUBLIC_LOCATION:* GEOSERVER_PUBLIC_LOCATION:
https://localhost/geoservers  and *not adding  ssl certificates* getting
the following *error*


[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
[Thu May 09 16:43:52.583859 2019] [:error] [pid 149539] Traceback (most
recent call last):
[Thu May 09 16:43:52.583861 2019] [:error] [pid 149539]   File
"/home/geonode/geonode/layers/views.py", line 171, in layer_upload
[Thu May 09 16:43:52.583863 2019] [:error] [pid 149539]
 title=form.cleaned_data["layer_title"],
[Thu May 09 16:43:52.583865 2019] [:error] [pid 149539]   File
"/home/geonode/geonode/layers/utils.py", line 470, in file_upload
[Thu May 09 16:43:52.583867 2019] [:error] [pid 149539]
 defaults=defaults
[Thu May 09 16:43:52.583869 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 154,
in get_or_create
[Thu May 09 16:43:52.583871 2019] [:error] [pid 149539]     return
self.get_queryset().get_or_create(**kwargs)
[Thu May 09 16:43:52.583873 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/modeltranslation/manager.py", line 341,
in get_or_create
[Thu May 09 16:43:52.583875 2019] [:error] [pid 149539]     return
super(MultilingualQuerySet, self).get_or_create(**kwargs)
[Thu May 09 16:43:52.583877 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/django/db/models/query.py", line 383, in
get_or_create
[Thu May 09 16:43:52.583879 2019] [:error] [pid 149539]
 obj.save(force_insert=True, using=self.db)
[Thu May 09 16:43:52.583881 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/polymorphic/polymorphic_model.py", line
90, in save
[Thu May 09 16:43:52.583882 2019] [:error] [pid 149539]     return
super(PolymorphicModel, self).save(*args, **kwargs)
[Thu May 09 16:43:52.583884 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/django/db/models/base.py", line 545, in
save
[Thu May 09 16:43:52.583886 2019] [:error] [pid 149539]
 force_update=force_update, update_fields=update_fields)
[Thu May 09 16:43:52.583888 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/django/db/models/base.py", line 569, in
save_base
[Thu May 09 16:43:52.583890 2019] [:error] [pid 149539]
 update_fields=update_fields)
[Thu May 09 16:43:52.583891 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185,
in send
[Thu May 09 16:43:52.583893 2019] [:error] [pid 149539]     response =
receiver(signal=self, sender=sender, **named)
[Thu May 09 16:43:52.583895 2019] [:error] [pid 149539]   File
"/home/geonode/geonode/geoserver/signals.py", line 74, in geoserver_pre_save
[Thu May 09 16:43:52.583897 2019] [:error] [pid 149539]
 charset=instance.charset)
[Thu May 09 16:43:52.583899 2019] [:error] [pid 149539]   File
"/home/geonode/geonode/geoserver/helpers.py", line 1053, in geoserver_upload
[Thu May 09 16:43:52.583905 2019] [:error] [pid 149539]     workspace =
cat.get_default_workspace()
[Thu May 09 16:43:52.583907 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 876, in
get_default_workspace
[Thu May 09 16:43:52.583909 2019] [:error] [pid 149539]     ws.fetch()
[Thu May 09 16:43:52.583911 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/geoserver/support.py", line 174, in fetch
[Thu May 09 16:43:52.583913 2019] [:error] [pid 149539]     self.dom =
self.catalog.get_xml(self.href)
[Thu May 09 16:43:52.583914 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 211, in
get_xml
[Thu May 09 16:43:52.583916 2019] [:error] [pid 149539]     response,
content = self.http.request(rest_url)
[Thu May 09 16:43:52.583918 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1586, in
request
[Thu May 09 16:43:52.583920 2019] [:error] [pid 149539]     (response,
content) = self._request(conn, authority, uri, request_uri, method, body,
headers, redirections, cachekey)
[Thu May 09 16:43:52.583922 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1333, in
_request
[Thu May 09 16:43:52.583924 2019] [:error] [pid 149539]     (response,
content) = self._conn_request(conn, request_uri, method, body, headers)
[Thu May 09 16:43:52.583926 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1268, in
_conn_request
[Thu May 09 16:43:52.583928 2019] [:error] [pid 149539]     conn.connect()
[Thu May 09 16:43:52.583929 2019] [:error] [pid 149539]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1060, in
connect
[Thu May 09 16:43:52.583931 2019] [:error] [pid 149539]     raise
SSLHandshakeError(e)
[Thu May 09 16:43:52.583933 2019] [:error] [pid 149539] SSLHandshakeError:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)

2.  If we  set *GEOSERVER_location*: https://localhost/geoserver and
*GEOSERVER_PUBLIC_LOCATION:* GEOSERVER_PUBLIC_LOCATION:
https://localhost/geoservers  and  by *adding  ssl certificates* getting
the following *error*


*[Thu May 09 16:39:23.713842 2019] [:error] [pid 148451] Traceback (most
recent call last):*
*[Thu May 09 16:39:23.713844 2019] [:error] [pid 148451]   File
"/home/geonode/geonode/layers/views.py", line 171, in layer_upload*
*[Thu May 09 16:39:23.713846 2019] [:error] [pid 148451]
 title=form.cleaned_data["layer_title"],*
*[Thu May 09 16:39:23.713848 2019] [:error] [pid 148451]   File
"/home/geonode/geonode/layers/utils.py", line 470, in file_upload*
*[Thu May 09 16:39:23.713850 2019] [:error] [pid 148451]
 defaults=defaults*
*[Thu May 09 16:39:23.713852 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 154,
in get_or_create*
*[Thu May 09 16:39:23.713854 2019] [:error] [pid 148451]     return
self.get_queryset().get_or_create(**kwargs)*
*[Thu May 09 16:39:23.713856 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/modeltranslation/manager.py", line 341,
in get_or_create*
*[Thu May 09 16:39:23.713858 2019] [:error] [pid 148451]     return
super(MultilingualQuerySet, self).get_or_create(**kwargs)*
*[Thu May 09 16:39:23.713859 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/django/db/models/query.py", line 383, in
get_or_create*
*[Thu May 09 16:39:23.713861 2019] [:error] [pid 148451]
 obj.save(force_insert=True, using=self.db)*
*[Thu May 09 16:39:23.713863 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/polymorphic/polymorphic_model.py", line
90, in save*
*[Thu May 09 16:39:23.713865 2019] [:error] [pid 148451]     return
super(PolymorphicModel, self).save(*args, **kwargs)*
*[Thu May 09 16:39:23.713867 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/django/db/models/base.py", line 545, in
save*
*[Thu May 09 16:39:23.713869 2019] [:error] [pid 148451]
 force_update=force_update, update_fields=update_fields)*
*[Thu May 09 16:39:23.713871 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/django/db/models/base.py", line 569, in
save_base*
*[Thu May 09 16:39:23.713872 2019] [:error] [pid 148451]
 update_fields=update_fields)*
*[Thu May 09 16:39:23.713874 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185,
in send*
*[Thu May 09 16:39:23.713876 2019] [:error] [pid 148451]     response =
receiver(signal=self, sender=sender, **named)*
*[Thu May 09 16:39:23.713878 2019] [:error] [pid 148451]   File
"/home/geonode/geonode/geoserver/signals.py", line 74, in
geoserver_pre_save*
*[Thu May 09 16:39:23.713880 2019] [:error] [pid 148451]
 charset=instance.charset)*
*[Thu May 09 16:39:23.713881 2019] [:error] [pid 148451]   File
"/home/geonode/geonode/geoserver/helpers.py", line 1053, in
geoserver_upload*
*[Thu May 09 16:39:23.713883 2019] [:error] [pid 148451]     workspace =
cat.get_default_workspace()*
*[Thu May 09 16:39:23.713885 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 876, in
get_default_workspace*
*[Thu May 09 16:39:23.713887 2019] [:error] [pid 148451]     ws.fetch()*
*[Thu May 09 16:39:23.713889 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/geoserver/support.py", line 174, in fetch*
*[Thu May 09 16:39:23.713890 2019] [:error] [pid 148451]     self.dom =
self.catalog.get_xml(self.href)*
*[Thu May 09 16:39:23.713892 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 211, in
get_xml*
*[Thu May 09 16:39:23.713894 2019] [:error] [pid 148451]     response,
content = self.http.request(rest_url)*
*[Thu May 09 16:39:23.713896 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1586, in
request*
*[Thu May 09 16:39:23.713901 2019] [:error] [pid 148451]     (response,
content) = self._request(conn, authority, uri, request_uri, method, body,
headers, redirections, cachekey)*
*[Thu May 09 16:39:23.713904 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1333, in
_request*
*[Thu May 09 16:39:23.713906 2019] [:error] [pid 148451]     (response,
content) = self._conn_request(conn, request_uri, method, body, headers)*
*[Thu May 09 16:39:23.713907 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1268, in
_conn_request*
*[Thu May 09 16:39:23.713909 2019] [:error] [pid 148451]     conn.connect()*
*[Thu May 09 16:39:23.713911 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1033, in
connect*
*[Thu May 09 16:39:23.713913 2019] [:error] [pid 148451]
 self.disable_ssl_certificate_validation, self.ca_certs)*
*[Thu May 09 16:39:23.713915 2019] [:error] [pid 148451]   File
"/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 80, in
_ssl_wrap_socket*
*[Thu May 09 16:39:23.713917 2019] [:error] [pid 148451]
 cert_reqs=cert_reqs, ca_certs=ca_certs)*
*[Thu May 09 16:39:23.713918 2019] [:error] [pid 148451]   File
"/usr/lib64/python2.7/ssl.py", line 915, in wrap_socket*
*[Thu May 09 16:39:23.713920 2019] [:error] [pid 148451]
 ciphers=ciphers)*
*[Thu May 09 16:39:23.713922 2019] [:error] [pid 148451]   File
"/usr/lib64/python2.7/ssl.py", line 526, in __init__*
*[Thu May 09 16:39:23.713924 2019] [:error] [pid 148451]
 self._context.load_verify_locations(ca_certs)*
*[Thu May 09 16:39:23.713926 2019] [:error] [pid 148451] SSLError: [X509]
PEM lib (_ssl.c:2988)*

3.  If we  set *GEOSERVER_location*: https://localhost/geoserver and
*GEOSERVER_PUBLIC_LOCATION:* GEOSERVER_PUBLIC_LOCATION:
https://localhost/geoservers then
now  I am not getting the error as default workspace error

Kindly please see above my observations and help me to resolve the issue

Thanks&Regards,
Naresh

On Wed, May 8, 2019 at 4:55 PM Naresh N <naresh919 at gmail.com> wrote:

> Dear Amedeo and All
>
> Please find the my earlier mail/post , kindly suggest to fix the issues
> and enable GeoNode with https
>
> Thanks & Regards,
> Naresh.N
>
> On Wed, May 8, 2019 at 10:13 AM Naresh N <naresh919 at gmail.com> wrote:
>
>> Dear Amedeo,
>>
>> Thanks for quick response.
>> I have changed the GEOSERVER_LOCATION
>> to
>> http://localhost:8080/geoserver
>>
>> but I am getting the error in  while uploading layer  "Tried to make a
>> GET request to
>> http://localhost:8080/geoserver/rest/workspaces/default.xml but got a
>> 404 status code:'
>>
>> I am having doubt in following
>> 1. http://localhost:8080/geoserver it is redirecting to http://<our
>> domain name>:443/geoserver/web/ and showing the following error
>>
>> *Bad Request*
>>
>> *Your browser sent a request that this server could not understand.
>> Reason: You're speaking plain HTTP to an SSL-enabled server port.
>> Instead use the HTTPS scheme to access this URL, please*
>>
>> The redirection must be from /etc/tomcat/server.xml of the following code but it is mentioned scheme as *https* but it is redirecting to http
>>
>> <Connector port="8080" protocol="HTTP/1.1"
>>     connectionTimeout="20000"
>>     URIEncoding="UTF-8"
>>     scheme="https"
>>     proxyName="<ourDomainName .. for example as* exmaple.com <http://exmaple.com/> *>"
>>     proxyPort="443"/>
>>
>> 2. http://<ourdomainname>:8080/geoserver *is redirecting* to http://
>> <ourdomainname>:443/geoserver
>>
>> * but*  http://<our domain name>:8080/geoserver/rest/workspaces/default.xml is not redirecting  and as showing 404
>>
>>
>> Please help me to resolve the issue and understand the above two points
>>
>>
>> Thanks&Regards,
>>
>> Naresh.N
>>
>>
>>
>>
>>
>> On Tue, May 7, 2019 at 4:05 PM Amedeo Fadini <amefad at gmail.com> wrote:
>>
>>>
>>>
>>> Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <naresh919 at gmail.com>
>>> ha scritto:
>>>
>>>> Dear Amedeo,
>>>>
>>>> Thanks for your reply. I have changed as advised
>>>> [...]
>>>> but Now  while uploading the data it is showing the error  ' *Tried to
>>>> make a GET request to
>>>> http://<ourdomainname>:8080/geoserver/rest/workspaces/default.xml but got a
>>>> 404 status code*:'
>>>>
>>>> Nope, in this way yo're trying the server is trying to contact
>>> geoserver at the URL http://<oudomainname>:8080 and is good that you've
>>> a 404 error: port 8080 is not exposed to the external but is redirected by
>>> apache proxy (yes the geonode conf. seems correct).
>>> Port 8080 is only available for localhost as the default tomcat port,
>>> try to set
>>> GEOSERVER_LOCATION
>>> to
>>> http://localhost:8080/geoserver
>>>
>>> Amedeo
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190509/e4debd1d/attachment-0001.html>


More information about the geonode-users mailing list