[GeoNode-users] geonode devmode python virtualenv installation (Paulo Frias)
Toni Schönbuchner
toni.schoenbuchner at csgis.de
Sat Mar 16 12:15:46 PDT 2019
Hello you two,
let me sugest to use the master branch has it has some important bugfixes which are missing in 2.8 branch.
1) have a look where this link comes from:
in master: {{ OGC_SERVER.default.WEB_UI_LOCATION }}
in 2.8: {{ OGC_SERVER.default.LOCATION }}
https://github.com/GeoNode/geonode/blob/929265975816af0c08199e47e05f8be3c93f5477/geonode/templates/base.html#L252
https://github.com/GeoNode/geonode/blob/2.8.x/geonode/templates/base.html#L216 <https://github.com/GeoNode/geonode/blob/2.8.x/geonode/templates/base.html#L216>
Make sure to set those vars correctly in your local_settings..py
2) please use verbose geoserver logging (in gs Gui I think it´s under general)
Watch log output while uploading layer with:
$ sudo tail -f /var/log/tomcat8/catalina.out
and maybe in some second terminal
$ sudo tail -f /var/log/apache2/error.log
As far as I remember this error can be solved when correctly setup your geoserver settings in local_settings
and further to correctly setup oauth2 settings on both sides Geonode/geoserver.
Hope this helps,
cheers,
Toni
> Am 16.03.2019 um 20:00 schrieb geonode-users-request at lists.osgeo.org:
>
> Send geonode-users mailing list submissions to
> geonode-users at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.osgeo.org/mailman/listinfo/geonode-users
> or, via email, send a message with subject or body 'help' to
> geonode-users-request at lists.osgeo.org
>
> You can reach the person managing the list at
> geonode-users-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geonode-users digest..."
>
>
> Today's Topics:
>
> 1. geonode devmode python virtualenv installation (Julierme Pinheiro)
> 2. Re: geonode devmode python virtualenv installation (Paulo Frias)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 Mar 2019 16:50:50 -0300
> From: Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com>
> To: geonode-users <geonode-users at lists.osgeo.org>, geonode-devel
> <geonode-devel at lists.osgeo.org>
> Subject: [GeoNode-users] geonode devmode python virtualenv
> installation
> Message-ID:
> <CAKTKyJKbAbggkwsSQ_d_1Afs9-ABQm1e_mNCb2eVwBjRLzC5wg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear all,
>
> I have tried to install geonode devmode vs 2.8 via python virtualenv in a
> 16.04LTS Ubuntu server. I am following the guide in here [1].
>
> I am using custom local_settings.py. Everything works fine, except:
>
> 1 - geoserver url. The link for Geoserver on GeoNode site points to
> localhost:8000/proxy/?url=http:localhost:8080/geoserver/, however when
> clicking on it, the site opens localhost:8000/geoserver/index.html.
>
> 2 - Upload layers - while uploading a layer, we hit " Unespected error"
>
> Geoserver port number should be 8080. Thinking about that, I went to [2]
> which says to comment the lines:
>
> ...# SITEURL = 'http://localhost'...#GEOSERVER_LOCATION = os.getenv(#
> 'GEOSERVER_LOCATION', '{}/geoserver/'.format(SITEURL)#)
> #GEOSERVER_PUBLIC_LOCATION = os.getenv(#
> 'GEOSERVER_PUBLIC_LOCATION', '{}/gs/'.format(SITEURL)#)...
>
> Besides of that, I set GEOSERVER_PUBLIC_PORT = '8080', but the issues remains.
>
> GEOSERVER_PUBLIC_PORT = os.getenv(
> 'GEOSERVER_PUBLIC_PORT', '8080'
> )
>
> If anyone else has faced these problems and could share any hint, it will
> be very appreciated.
>
> Kind regards
>
> Julierme
>
>
>
>
>
> [1]
> https://github.com/GeoNode/geonode-project/tree/06602d424a3779a636bcc78bc1d50c83ba980bad
>
> [2]
> http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/create_geonode_db.html
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190315/4f1769b2/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 16 Mar 2019 08:33:41 +0000
> From: Paulo Frias <pfrias82 at gmail.com>
> To: Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com>
> Cc: geonode-users <geonode-users at lists.osgeo.org>, geonode-devel
> <geonode-devel at lists.osgeo.org>
> Subject: Re: [GeoNode-users] geonode devmode python virtualenv
> installation
> Message-ID:
> <CA+PD0U2bGP8NGbWPEVYR1ar-NA2KeU=SnyoLZdJ0M_7TKgLOyA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Julierme,
>
> I have the exact same problem running Geonode, same installation procedure,
> on my Mac. But I didn't found any solution yet. :(
> Regards,
>
> Paulo
>
>
>
> On Fri, 15 Mar 2019 at 19:51, Julierme Pinheiro <
> juliermeopensourcedeveloper at gmail.com> wrote:
>
>> Dear all,
>>
>> I have tried to install geonode devmode vs 2.8 via python virtualenv in a
>> 16.04LTS Ubuntu server. I am following the guide in here [1].
>>
>> I am using custom local_settings.py. Everything works fine, except:
>>
>> 1 - geoserver url. The link for Geoserver on GeoNode site points to
>> localhost:8000/proxy/?url=http:localhost:8080/geoserver/, however when
>> clicking on it, the site opens localhost:8000/geoserver/index.html.
>>
>> 2 - Upload layers - while uploading a layer, we hit " Unespected error"
>>
>> Geoserver port number should be 8080. Thinking about that, I went to [2]
>> which says to comment the lines:
>>
>> ...# SITEURL = 'http://localhost'...#GEOSERVER_LOCATION = os.getenv(# 'GEOSERVER_LOCATION', '{}/geoserver/'.format(SITEURL)#)
>> #GEOSERVER_PUBLIC_LOCATION = os.getenv(# 'GEOSERVER_PUBLIC_LOCATION', '{}/gs/'.format(SITEURL)#)...
>>
>> Besides of that, I set GEOSERVER_PUBLIC_PORT = '8080', but the issues remains.
>>
>> GEOSERVER_PUBLIC_PORT = os.getenv(
>> 'GEOSERVER_PUBLIC_PORT', '8080'
>> )
>>
>> If anyone else has faced these problems and could share any hint, it will
>> be very appreciated.
>>
>> Kind regards
>>
>> Julierme
>>
>>
>>
>>
>>
>> [1]
>> https://github.com/GeoNode/geonode-project/tree/06602d424a3779a636bcc78bc1d50c83ba980bad
>>
>> [2]
>> http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/create_geonode_db.html
>> _______________________________________________
>> 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/20190316/4a801d6a/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
> ------------------------------
>
> End of geonode-users Digest, Vol 50, Issue 12
> *********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190316/eb7aa483/attachment.html>
More information about the geonode-users
mailing list