(no subject)

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

naresh
Dear All,

Please help to enable https for GeoNode 

Please find the details below in which GeoNdde deployed

Server OS: RHEL 7.2
GeoNode Version: 2.4
Bits:64 -bit machine.
Apache 2.4.6
Python:2.7.5
GeoServer :2.7.4
Tomcat Version:7.0.54


1. Copied the our SSL key and certificate to the following locations   

   As, We are using WildCard.crt  The following were copied

    a. SSLcertificateFile  with    Wildcard.crt,
    b. SSLCertificateKeyFile  with server.key 
    c. SSLCertificateChainFile  with Intermediate.crt

2.   Apache Configuration  as mentioned in above , I have modified in our geonode.conf file

3.  Tomcat Configuration - Edited Server.xml and done required changes

4. GeoNode Configuration - Changed Site Url to https

5. GeoServer Configuration - Changed web.xml

After doing above and restarting tomcat,apache site was redirecting to https, however when I am uploading data it is showing following error SSLHandshakeError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)

File "/home/geonode/geonode/layers/views.py", line 171, in layer_upload
[Mon May 06 10:34:55.699359 2019] [:error] [pid 39822]     title=form.cleaned_data["layer_title"],
[Mon May 06 10:34:55.699361 2019] [:error] [pid 39822]   File "/home/geonode/geonode/layers/utils.py", line 470, in file_upload
[Mon May 06 10:34:55.699363 2019] [:error] [pid 39822]     defaults=defaults
[Mon May 06 10:34:55.699365 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 154, in get_or_create
[Mon May 06 10:34:55.699368 2019] [:error] [pid 39822]     return self.get_queryset().get_or_create(**kwargs)
[Mon May 06 10:34:55.699370 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/modeltranslation/manager.py", line 341, in get_or_create
[Mon May 06 10:34:55.699372 2019] [:error] [pid 39822]     return super(MultilingualQuerySet, self).get_or_create(**kwargs)
[Mon May 06 10:34:55.699375 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 383, in get_or_create
[Mon May 06 10:34:55.699377 2019] [:error] [pid 39822]     obj.save(force_insert=True, using=self.db)
[Mon May 06 10:34:55.699384 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/polymorphic/polymorphic_model.py", line 90, in save
[Mon May 06 10:34:55.699393 2019] [:error] [pid 39822]     return super(PolymorphicModel, self).save(*args, **kwargs)
[Mon May 06 10:34:55.699395 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 545, in save
[Mon May 06 10:34:55.699397 2019] [:error] [pid 39822]     force_update=force_update, update_fields=update_fields)
[Mon May 06 10:34:55.699399 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 569, in save_base
[Mon May 06 10:34:55.699401 2019] [:error] [pid 39822]     update_fields=update_fields)
[Mon May 06 10:34:55.699403 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send
[Mon May 06 10:34:55.699405 2019] [:error] [pid 39822]     response = receiver(signal=self, sender=sender, **named)
[Mon May 06 10:34:55.699407 2019] [:error] [pid 39822]   File "/home/geonode/geonode/geoserver/signals.py", line 74, in geoserver_pre_save
[Mon May 06 10:34:55.699409 2019] [:error] [pid 39822]     charset=instance.charset)
[Mon May 06 10:34:55.699410 2019] [:error] [pid 39822]   File "/home/geonode/geonode/geoserver/helpers.py", line 1053, in geoserver_upload
[Mon May 06 10:34:55.699412 2019] [:error] [pid 39822]     workspace = cat.get_default_workspace()
[Mon May 06 10:34:55.699414 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 876, in get_default_workspace
[Mon May 06 10:34:55.699416 2019] [:error] [pid 39822]     ws.fetch()
[Mon May 06 10:34:55.699418 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/support.py", line 174, in fetch
[Mon May 06 10:34:55.699420 2019] [:error] [pid 39822]     self.dom = self.catalog.get_xml(self.href)
[Mon May 06 10:34:55.699425 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 211, in get_xml
[Mon May 06 10:34:55.699428 2019] [:error] [pid 39822]     response, content = self.http.request(rest_url)
[Mon May 06 10:34:55.699430 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1572, in request
[Mon May 06 10:34:55.699432 2019] [:error] [pid 39822]     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
[Mon May 06 10:34:55.699434 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1319, in _request
[Mon May 06 10:34:55.699436 2019] [:error] [pid 39822]     (response, content) = self._conn_request(conn, request_uri, method, body, headers)
[Mon May 06 10:34:55.699438 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1254, in _conn_request
[Mon May 06 10:34:55.699440 2019] [:error] [pid 39822]     conn.connect()
[Mon May 06 10:34:55.699442 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1046, in connect
[Mon May 06 10:34:55.699444 2019] [:error] [pid 39822]     raise SSLHandshakeError(e)
[Mon May 06 10:34:55.699445 2019] [:error] [pid 39822] SSLHandshakeError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)


Please help me to resolve the issue and let me know any other information require further.

Thanks&Regards,
Naresh.N



Thanks&Regards,

Naresh


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Amedeo Fadini-2
Hi Naresh,

Could you please check what values are written in your local_settings.py for the following variables?

GEOSERVER_LOCATION
GEOSERVER_PUBLIC_LOCATION

The second should be https://<your server>/geoserver

Amedeo

Il giorno lun 6 mag 2019 alle ore 11:11 Naresh N <[hidden email]> ha scritto:
Dear All,

Please help to enable https for GeoNode 

Please find the details below in which GeoNdde deployed

Server OS: RHEL 7.2
GeoNode Version: 2.4
Bits:64 -bit machine.
Apache 2.4.6
Python:2.7.5
GeoServer :2.7.4
Tomcat Version:7.0.54


1. Copied the our SSL key and certificate to the following locations   

   As, We are using WildCard.crt  The following were copied

    a. SSLcertificateFile  with    Wildcard.crt,
    b. SSLCertificateKeyFile  with server.key 
    c. SSLCertificateChainFile  with Intermediate.crt

2.   Apache Configuration  as mentioned in above , I have modified in our geonode.conf file

3.  Tomcat Configuration - Edited Server.xml and done required changes

4. GeoNode Configuration - Changed Site Url to https

5. GeoServer Configuration - Changed web.xml

After doing above and restarting tomcat,apache site was redirecting to https, however when I am uploading data it is showing following error SSLHandshakeError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)

File "/home/geonode/geonode/layers/views.py", line 171, in layer_upload
[Mon May 06 10:34:55.699359 2019] [:error] [pid 39822]     title=form.cleaned_data["layer_title"],
[Mon May 06 10:34:55.699361 2019] [:error] [pid 39822]   File "/home/geonode/geonode/layers/utils.py", line 470, in file_upload
[Mon May 06 10:34:55.699363 2019] [:error] [pid 39822]     defaults=defaults
[Mon May 06 10:34:55.699365 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 154, in get_or_create
[Mon May 06 10:34:55.699368 2019] [:error] [pid 39822]     return self.get_queryset().get_or_create(**kwargs)
[Mon May 06 10:34:55.699370 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/modeltranslation/manager.py", line 341, in get_or_create
[Mon May 06 10:34:55.699372 2019] [:error] [pid 39822]     return super(MultilingualQuerySet, self).get_or_create(**kwargs)
[Mon May 06 10:34:55.699375 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 383, in get_or_create
[Mon May 06 10:34:55.699377 2019] [:error] [pid 39822]     obj.save(force_insert=True, using=self.db)
[Mon May 06 10:34:55.699384 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/polymorphic/polymorphic_model.py", line 90, in save
[Mon May 06 10:34:55.699393 2019] [:error] [pid 39822]     return super(PolymorphicModel, self).save(*args, **kwargs)
[Mon May 06 10:34:55.699395 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 545, in save
[Mon May 06 10:34:55.699397 2019] [:error] [pid 39822]     force_update=force_update, update_fields=update_fields)
[Mon May 06 10:34:55.699399 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 569, in save_base
[Mon May 06 10:34:55.699401 2019] [:error] [pid 39822]     update_fields=update_fields)
[Mon May 06 10:34:55.699403 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send
[Mon May 06 10:34:55.699405 2019] [:error] [pid 39822]     response = receiver(signal=self, sender=sender, **named)
[Mon May 06 10:34:55.699407 2019] [:error] [pid 39822]   File "/home/geonode/geonode/geoserver/signals.py", line 74, in geoserver_pre_save
[Mon May 06 10:34:55.699409 2019] [:error] [pid 39822]     charset=instance.charset)
[Mon May 06 10:34:55.699410 2019] [:error] [pid 39822]   File "/home/geonode/geonode/geoserver/helpers.py", line 1053, in geoserver_upload
[Mon May 06 10:34:55.699412 2019] [:error] [pid 39822]     workspace = cat.get_default_workspace()
[Mon May 06 10:34:55.699414 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 876, in get_default_workspace
[Mon May 06 10:34:55.699416 2019] [:error] [pid 39822]     ws.fetch()
[Mon May 06 10:34:55.699418 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/support.py", line 174, in fetch
[Mon May 06 10:34:55.699420 2019] [:error] [pid 39822]     self.dom = self.catalog.get_xml(self.href)
[Mon May 06 10:34:55.699425 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 211, in get_xml
[Mon May 06 10:34:55.699428 2019] [:error] [pid 39822]     response, content = self.http.request(rest_url)
[Mon May 06 10:34:55.699430 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1572, in request
[Mon May 06 10:34:55.699432 2019] [:error] [pid 39822]     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
[Mon May 06 10:34:55.699434 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1319, in _request
[Mon May 06 10:34:55.699436 2019] [:error] [pid 39822]     (response, content) = self._conn_request(conn, request_uri, method, body, headers)
[Mon May 06 10:34:55.699438 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1254, in _conn_request
[Mon May 06 10:34:55.699440 2019] [:error] [pid 39822]     conn.connect()
[Mon May 06 10:34:55.699442 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1046, in connect
[Mon May 06 10:34:55.699444 2019] [:error] [pid 39822]     raise SSLHandshakeError(e)
[Mon May 06 10:34:55.699445 2019] [:error] [pid 39822] SSLHandshakeError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)


Please help me to resolve the issue and let me know any other information require further.

Thanks&Regards,
Naresh.N



Thanks&Regards,

Naresh

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
Dear Amedeo,

Thanks for your reply. I have changed as advised 

GEOSERVER_LOCATION
GEOSERVER_PUBLIC_LOCATION

The second should be https://domainname/geoserver

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:'

Please help me to resolve this issue.

Some more points which I am Having doubt about changes , please help me to  understand error and resolve the issue

1. In Geonode.conf  is the following correct? 

    a.   ProxyPreserveHost On
         ProxyPass /geoserver http://127.0.0.1:8080/geoserver
         ProxyPassReverse /geoserver http://127.0.0.1:8080/geoserver

    b. ServerName https://<ourdomainname>

2.  In /etc/tomcat/server.xml , replaced the following content 

   <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    URIEncoding="UTF-8"
    redirectPort="8443"
/>
with

<Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    URIEncoding="UTF-8"
    scheme="https"
    proxyName="<ourDomainName .. for example as exmaple.com >"
    proxyPort="443"
/>
Is proxyPort 443 correct? Do I need to change the port?
3.  I have not added the following , is it required to do
  sudo -s "cat server.crt >> /usr/lib/python2.7/dist-packages/httplib2/cacerts.txt"
sudo keytool -import -alias geonodessl -keystore /etc/ssl/certs/java/cacerts -file server.crt
4. When I am accessing GeoServer Webpage from GeoNode Admin interface, it is going to the url " http://<ourdomin>:443/geoserver/web " and showing the following message
   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.
From which settings it is sending to http?
Please help me to resolve the issue and let me know in case of any other information required
Please be note that GeoNode with http worked properly but after doing the changes for https the error is getting.

Thanks&Regards,
Naresh





On Mon, May 6, 2019 at 8:11 PM Amedeo Fadini <[hidden email]> wrote:
Hi Naresh,

Could you please check what values are written in your local_settings.py for the following variables?

GEOSERVER_LOCATION
GEOSERVER_PUBLIC_LOCATION

The second should be https://<your server>/geoserver

Amedeo

Il giorno lun 6 mag 2019 alle ore 11:11 Naresh N <[hidden email]> ha scritto:
Dear All,

Please help to enable https for GeoNode 

Please find the details below in which GeoNdde deployed

Server OS: RHEL 7.2
GeoNode Version: 2.4
Bits:64 -bit machine.
Apache 2.4.6
Python:2.7.5
GeoServer :2.7.4
Tomcat Version:7.0.54


1. Copied the our SSL key and certificate to the following locations   

   As, We are using WildCard.crt  The following were copied

    a. SSLcertificateFile  with    Wildcard.crt,
    b. SSLCertificateKeyFile  with server.key 
    c. SSLCertificateChainFile  with Intermediate.crt

2.   Apache Configuration  as mentioned in above , I have modified in our geonode.conf file

3.  Tomcat Configuration - Edited Server.xml and done required changes

4. GeoNode Configuration - Changed Site Url to https

5. GeoServer Configuration - Changed web.xml

After doing above and restarting tomcat,apache site was redirecting to https, however when I am uploading data it is showing following error SSLHandshakeError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)

File "/home/geonode/geonode/layers/views.py", line 171, in layer_upload
[Mon May 06 10:34:55.699359 2019] [:error] [pid 39822]     title=form.cleaned_data["layer_title"],
[Mon May 06 10:34:55.699361 2019] [:error] [pid 39822]   File "/home/geonode/geonode/layers/utils.py", line 470, in file_upload
[Mon May 06 10:34:55.699363 2019] [:error] [pid 39822]     defaults=defaults
[Mon May 06 10:34:55.699365 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 154, in get_or_create
[Mon May 06 10:34:55.699368 2019] [:error] [pid 39822]     return self.get_queryset().get_or_create(**kwargs)
[Mon May 06 10:34:55.699370 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/modeltranslation/manager.py", line 341, in get_or_create
[Mon May 06 10:34:55.699372 2019] [:error] [pid 39822]     return super(MultilingualQuerySet, self).get_or_create(**kwargs)
[Mon May 06 10:34:55.699375 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 383, in get_or_create
[Mon May 06 10:34:55.699377 2019] [:error] [pid 39822]     obj.save(force_insert=True, using=self.db)
[Mon May 06 10:34:55.699384 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/polymorphic/polymorphic_model.py", line 90, in save
[Mon May 06 10:34:55.699393 2019] [:error] [pid 39822]     return super(PolymorphicModel, self).save(*args, **kwargs)
[Mon May 06 10:34:55.699395 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 545, in save
[Mon May 06 10:34:55.699397 2019] [:error] [pid 39822]     force_update=force_update, update_fields=update_fields)
[Mon May 06 10:34:55.699399 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 569, in save_base
[Mon May 06 10:34:55.699401 2019] [:error] [pid 39822]     update_fields=update_fields)
[Mon May 06 10:34:55.699403 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send
[Mon May 06 10:34:55.699405 2019] [:error] [pid 39822]     response = receiver(signal=self, sender=sender, **named)
[Mon May 06 10:34:55.699407 2019] [:error] [pid 39822]   File "/home/geonode/geonode/geoserver/signals.py", line 74, in geoserver_pre_save
[Mon May 06 10:34:55.699409 2019] [:error] [pid 39822]     charset=instance.charset)
[Mon May 06 10:34:55.699410 2019] [:error] [pid 39822]   File "/home/geonode/geonode/geoserver/helpers.py", line 1053, in geoserver_upload
[Mon May 06 10:34:55.699412 2019] [:error] [pid 39822]     workspace = cat.get_default_workspace()
[Mon May 06 10:34:55.699414 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 876, in get_default_workspace
[Mon May 06 10:34:55.699416 2019] [:error] [pid 39822]     ws.fetch()
[Mon May 06 10:34:55.699418 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/support.py", line 174, in fetch
[Mon May 06 10:34:55.699420 2019] [:error] [pid 39822]     self.dom = self.catalog.get_xml(self.href)
[Mon May 06 10:34:55.699425 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 211, in get_xml
[Mon May 06 10:34:55.699428 2019] [:error] [pid 39822]     response, content = self.http.request(rest_url)
[Mon May 06 10:34:55.699430 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1572, in request
[Mon May 06 10:34:55.699432 2019] [:error] [pid 39822]     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
[Mon May 06 10:34:55.699434 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1319, in _request
[Mon May 06 10:34:55.699436 2019] [:error] [pid 39822]     (response, content) = self._conn_request(conn, request_uri, method, body, headers)
[Mon May 06 10:34:55.699438 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1254, in _conn_request
[Mon May 06 10:34:55.699440 2019] [:error] [pid 39822]     conn.connect()
[Mon May 06 10:34:55.699442 2019] [:error] [pid 39822]   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1046, in connect
[Mon May 06 10:34:55.699444 2019] [:error] [pid 39822]     raise SSLHandshakeError(e)
[Mon May 06 10:34:55.699445 2019] [:error] [pid 39822] SSLHandshakeError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)


Please help me to resolve the issue and let me know any other information require further.

Thanks&Regards,
Naresh.N



Thanks&Regards,

Naresh

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Amedeo Fadini-2


Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <[hidden email]> 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

Amedeo


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
Dear Amedeo,

Thanks for quick response.
I have changed the GEOSERVER_LOCATION
to

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 >"
    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 <[hidden email]> wrote:


Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <[hidden email]> 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

Amedeo


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
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 <[hidden email]> wrote:
Dear Amedeo,

Thanks for quick response.
I have changed the GEOSERVER_LOCATION
to

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 >"
    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 <[hidden email]> wrote:


Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <[hidden email]> 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

Amedeo


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Amedeo Fadini-2
Hi Naresh, 
Currently I have 2.4 and 2.8 installation running but  I'm not sure in how it should be in your version.

There are 2 issues:
1) 404 error in upload
2) unable to access to geoserver interface

1) Maybe the 404 error is related to the second part of the URL default workspace or rest service of Geoserver, could you check if from inside the server the url http://localhost:8080/geoserver is accessible or gives a 404 error? (i use lynx from ssh console, it shows a javascript missing advice)

2) The connector in server.xml seems ok (see also https://tomcat.apache.org/tomcat-6.0-doc/config/http.html) tomcat server only serve the applications it usaully not redirect. If your menu entries has a destination url like "https://<ourdomainname>/proxy?url=......." the value of url should be the value of GEOSERVER_BASE_URL that is taken from OGC_SERVER >  PUBLIC LOCATION  in local_settings.py

your OGC_SERVER should be:

OGC_SERVER = {
    'default' : {
        'BACKEND' : 'geonode.geoserver',
        'LOCATION' : GEOSERVER_LOCATION,
        'PUBLIC_LOCATION' : GEOSERVER_PUBLIC_LOCATION,
        'USER' : 'admin',
        'PASSWORD' : '******',
        'MAPFISH_PRINT_ENABLED' : True,
        'PRINT_NG_ENABLED' : True,
        'GEONODE_SECURITY_ENABLED' : True,
        'GEOGIG_ENABLED' : False,
        'WMST_ENABLED' : False,
        'BACKEND_WRITE_ENABLED': True,
        'WPS_ENABLED' : False,
        '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',
    }
}
This is the variable used in 2.8, In geonode 2.4 you'll find also occurence of GEOSERVER_URL... anyway check all the settings file for http or https strings.

See also the section about geoserver authentication:


The url http://localhost:8080 should not redirect.. only the urls on port 80 should be redirected by apache proxy... check all apache configuration,  the redirect section is like this

<VirtualHost  *:80>
    Redirect permanent / https://192.168.10.10/
</VirtualHost>
Amedeo


Il giorno mer 8 mag 2019 alle ore 13:32 Naresh N <[hidden email]> ha scritto:
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 <[hidden email]> wrote:
Dear Amedeo,

Thanks for quick response.
I have changed the GEOSERVER_LOCATION
to

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 >"
    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 <[hidden email]> wrote:


Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <[hidden email]> 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

Amedeo


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
In reply to this post by naresh
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 <[hidden email]> 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 <[hidden email]> wrote:
Dear Amedeo,

Thanks for quick response.
I have changed the GEOSERVER_LOCATION
to

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 >"
    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 <[hidden email]> wrote:


Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <[hidden email]> 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

Amedeo


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
Dear All,

As  I posted earlier, we need to enable GeoNode with https but facing the issues.   The following are added for https

 1.   Apache Configured with https and required changes are added in geonode.conf as per  mentioned   in http://docs.geonode.org/en/2.8.1/tutorials/advanced/geonode_production/ssl.html

2.  Tomcat /GeoServer Configuration - 
   (i)Modified the  Server.xml and done required changes 
         <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    URIEncoding="UTF-8"
    scheme="https"
    proxyName="<ourDomainName .. for example as exmaple.com >"
    proxyPort="443"
  />
   (ii)  Modified /var/lib/tomcat/webapps/geoserver/WEB-INF/web.xml
         Geonode_BASE_URL to https://ourdomainname

   (iii) Modified /var/lib/tomcat/webapps/geoserver/data/web.xml))

          Proxybaseurl https://ourdomainname/geoserver 
      
3.  GeoNode Configuration - Changed Site Url to https
   (i)  /var/lib/tomcat/webapps/geoserver/data/security/auth/geonodAuthProvider/config.xml
        baseurl to https://ourdoamingname
   (ii) In local_settings.py and setttings.py 
       a.  sitename and siteurl to https://ourdomainname
       b.GEOSERVER_LOCATION: http://ourdomainname:8080/geoserver
          GEOSERVER_PUBLIC_LOCATION: https:// ourdomainname/geoserver


  After doing the above the changes , our GeoNode portal is able to access with https, however the following functionalities are not working

  1. When we are uploading the data, the following error is appearing

  Tried to make a GET request to http://ourdomainname:8080/geoserver/rest/workspaces/default.xml but got a 404 status code:'

2.  Edit style is not working
  https://ourdomainname/gs/rest/styles/_11_19_2019_6450480_1.xml --- error code 500 ( some internal server error)

In above both are REST services which are not working however, When I tried to access http://ourdomainname:8080/geoserver it is redirecting to https://ourdomainname/geoserver ( it is loading properly)  
 
Please kindly help me, is somewhere I need to do the REST services settings.

Thanks&Regards,
Naresh.n

 



 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
Dear Amedo/Simone,

Please see once my post and reply.  Not able to understand? Where the issue.
 
Is following  require for GeoNode to work as https?
sudo -s "cat server.crt >> /usr/lib/python2.7/dist-packages/httplib2/cacerts.txt"
sudo keytool -import -alias geonodessl -keystore /etc/ssl/certs/java/cacerts -file server.crt
Please suggest

Thanks&Regards,
Naresh




On Thu, Dec 5, 2019 at 4:07 PM Naresh N <[hidden email]> wrote:
Dear All,

As  I posted earlier, we need to enable GeoNode with https but facing the issues.   The following are added for https

 1.   Apache Configured with https and required changes are added in geonode.conf as per  mentioned   in http://docs.geonode.org/en/2.8.1/tutorials/advanced/geonode_production/ssl.html

2.  Tomcat /GeoServer Configuration - 
   (i)Modified the  Server.xml and done required changes 
         <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    URIEncoding="UTF-8"
    scheme="https"
    proxyName="<ourDomainName .. for example as exmaple.com >"
    proxyPort="443"
  />
   (ii)  Modified /var/lib/tomcat/webapps/geoserver/WEB-INF/web.xml
         Geonode_BASE_URL to https://ourdomainname

   (iii) Modified /var/lib/tomcat/webapps/geoserver/data/web.xml))

          Proxybaseurl https://ourdomainname/geoserver 
      
3.  GeoNode Configuration - Changed Site Url to https
   (i)  /var/lib/tomcat/webapps/geoserver/data/security/auth/geonodAuthProvider/config.xml
        baseurl to https://ourdoamingname
   (ii) In local_settings.py and setttings.py 
       a.  sitename and siteurl to https://ourdomainname
       b.GEOSERVER_LOCATION: http://ourdomainname:8080/geoserver
          GEOSERVER_PUBLIC_LOCATION: https:// ourdomainname/geoserver


  After doing the above the changes , our GeoNode portal is able to access with https, however the following functionalities are not working

  1. When we are uploading the data, the following error is appearing

  Tried to make a GET request to http://ourdomainname:8080/geoserver/rest/workspaces/default.xml but got a 404 status code:'

2.  Edit style is not working
  https://ourdomainname/gs/rest/styles/_11_19_2019_6450480_1.xml --- error code 500 ( some internal server error)

In above both are REST services which are not working however, When I tried to access http://ourdomainname:8080/geoserver it is redirecting to https://ourdomainname/geoserver ( it is loading properly)  
 
Please kindly help me, is somewhere I need to do the REST services settings.

Thanks&Regards,
Naresh.n

 



 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

naresh
Dear All,

I could able to solve the issue. Now https enabled for GeoNode. The issue is with httplib2 library. I have updated the httlib2(0.14.0) and given 
          GEOSERVER_LOCATION: http://yourdomainname/geoserver
          GEOSERVER_PUBLIC_LOCATION: https:// yourdomainname/geoserver.

Thanks a lot for all the help and support.

Thanks&Regards,
Naresh

On Mon, Dec 9, 2019 at 12:40 PM Naresh N <[hidden email]> wrote:
Dear Amedo/Simone,

Please see once my post and reply.  Not able to understand? Where the issue.
 
Is following  require for GeoNode to work as https?
sudo -s "cat server.crt >> /usr/lib/python2.7/dist-packages/httplib2/cacerts.txt"
sudo keytool -import -alias geonodessl -keystore /etc/ssl/certs/java/cacerts -file server.crt
Please suggest

Thanks&Regards,
Naresh




On Thu, Dec 5, 2019 at 4:07 PM Naresh N <[hidden email]> wrote:
Dear All,

As  I posted earlier, we need to enable GeoNode with https but facing the issues.   The following are added for https

 1.   Apache Configured with https and required changes are added in geonode.conf as per  mentioned   in http://docs.geonode.org/en/2.8.1/tutorials/advanced/geonode_production/ssl.html

2.  Tomcat /GeoServer Configuration - 
   (i)Modified the  Server.xml and done required changes 
         <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    URIEncoding="UTF-8"
    scheme="https"
    proxyName="<ourDomainName .. for example as exmaple.com >"
    proxyPort="443"
  />
   (ii)  Modified /var/lib/tomcat/webapps/geoserver/WEB-INF/web.xml
         Geonode_BASE_URL to https://ourdomainname

   (iii) Modified /var/lib/tomcat/webapps/geoserver/data/web.xml))

          Proxybaseurl https://ourdomainname/geoserver 
      
3.  GeoNode Configuration - Changed Site Url to https
   (i)  /var/lib/tomcat/webapps/geoserver/data/security/auth/geonodAuthProvider/config.xml
        baseurl to https://ourdoamingname
   (ii) In local_settings.py and setttings.py 
       a.  sitename and siteurl to https://ourdomainname
       b.GEOSERVER_LOCATION: http://ourdomainname:8080/geoserver
          GEOSERVER_PUBLIC_LOCATION: https:// ourdomainname/geoserver


  After doing the above the changes , our GeoNode portal is able to access with https, however the following functionalities are not working

  1. When we are uploading the data, the following error is appearing

  Tried to make a GET request to http://ourdomainname:8080/geoserver/rest/workspaces/default.xml but got a 404 status code:'

2.  Edit style is not working
  https://ourdomainname/gs/rest/styles/_11_19_2019_6450480_1.xml --- error code 500 ( some internal server error)

In above both are REST services which are not working however, When I tried to access http://ourdomainname:8080/geoserver it is redirecting to https://ourdomainname/geoserver ( it is loading properly)  
 
Please kindly help me, is somewhere I need to do the REST services settings.

Thanks&Regards,
Naresh.n

 



 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users