[GeoNode-devel] Geoserver connection issue

Michael Peterman mpetermangis at gmail.com
Sat Apr 8 19:36:53 PDT 2017


Thanks for the suggestion to check the console, that was helpful in
tracking down the problem.
In my local_settings.py file, I had the  'PUBLIC_LOCATION' parameter under
OGC still set to localhost instead of my hostname. After changing this and
restarted Apache, it seems to work fine.

When I upload a layer and clicking on Edit Layer, there's an error on the
PUT request. Not sure if this is an issue, since at least the mapping
functions seem to be working now.

GeoExplorer.js?v=2.4.dev20170302183855:396 PUT
http://maps.skeenasalmon.info/gs/rest/styles 405 (METHOD NOT ALLOWED)

Thanks again for all your help.


On Sat, Apr 8, 2017 at 5:53 PM, Francesco Bartoli <xbartolone at gmail.com>
wrote:

> Can you check from the console of the browser what url are you calling?
> Also what is your geoserver configuration in settings file?
>
> Il giorno 08/apr/2017, alle ore 21:56, Michael Peterman <
> mpetermangis at gmail.com> ha scritto:
>
> Thanks everyone for your help. I managed to get it running on a new Ubuntu
> VM.
> I can upload layers now. However, the uploaded layers don't display
> correctly in the map. The background (bing maps or OpenStreetMap) displays
> fine, but the vector tiles are not rendered correctly. I am uploading
> zipped WGS84 shapefiles that worked on a previous installation of Geonode a
> few months ago. Has anyone else seen this issue?
>
> <image.png>
>
> On Thu, Apr 6, 2017 at 2:11 AM, Francesco Bartoli <xbartolone at gmail.com>
> wrote:
>
>> The database "geonode" is for the configuration data of django
>> application while "geonode_data" is for the spatial data which will be
>> uploaded.
>> So in geoserver you have to configure the latter.
>>
>> Hope this helps
>> Francesco
>>
>> 6 apr 2017, 03:14 +0200, Michael Peterman <mpetermangis at gmail.com>, ha
>> scritto:
>>
>> The datastore was configured to use the geonode db on a Postgres backend,
>> as per the instructions. The only thing I'm not sure about--is the database
>> supposed to be "geonode" or "geonode_*data*"? Here's a screenshot of the
>> settings:
>>
>> <image.png>
>> In any case I will try installing this again on a fresh VM.
>>
>> Thanks,
>>
>> Michael
>>
>>
>> On Wed, Apr 5, 2017 at 6:40 AM, Francesco Bartoli <xbartolone at gmail.com>
>> wrote:
>>
>>> In this way you are using the dev environment which by default is
>>> relying on a sqlite database. I'm assuming you changed the default settings
>>> and have configured the geonode-data database. In this case what is the
>>> configuration of the datastore for that in geoserver?
>>> Can you please check it using the UI?
>>>
>>> Thanks
>>> Francesco
>>>
>>> 5 apr 2017, 02:31 +0200, Michael Peterman <mpetermangis at gmail.com>, ha
>>> scritto:
>>>
>>> Hi Francesco,
>>>
>>> Yes I ran that command. Output is:
>>> ---> pavement.setup
>>> ---> pavement.setup_geoserver
>>> rmtree geoserver/data
>>> GeoNode development environment successfully set up.If you have not set
>>> up an administrative account, please do so now. Use "paver start" to start
>>> up the server.
>>>
>>> Geoserver is version 2.7.4 on Java  1.7.0_121 (OpenJDK 64-Bit Server VM)
>>>
>>> Any other ideas for what I can try?
>>>
>>> Thanks again,
>>> Michael
>>>
>>> On Tue, Apr 4, 2017 at 1:46 AM, Francesco Bartoli <xbartolone at gmail.com>
>>> wrote:
>>>
>>>> Dear Micheal,
>>>>
>>>> did you run the command “sudo paver setup” ? If not what geoserver did
>>>> you install?
>>>>
>>>> Francesco
>>>>
>>>> Il giorno 04/apr/2017, alle ore 01:39, Michael Peterman <
>>>> mpetermangis at gmail.com> ha scritto:
>>>>
>>>> Hi,
>>>>
>>>> I am installing a custom copy of Geonode 2.4, as per these instructions:
>>>> http://docs.geonode.org/en/latest/tutorials/install_and_admi
>>>> n/geonode_install/install_geonode_application.html
>>>>
>>>> I pulled from this git branch: https://github.com/GeoNode/geonode.git
>>>> --branch 2.4.x
>>>> and installed on a fresh copy of Ubuntu 14.04 64-bit.
>>>>
>>>> Everything appears to work fine, but after finishing the installation,
>>>> the connection between Geoserver and Postgres seems to be broken. Any data
>>>> that I try to upload to Geonode gives this error: "An exception occurred
>>>> loading data to PostGIS- java.io.IOException: Error occurred creating table"
>>>>
>>>> The logs in Geoserver show a series of exceptions like this:
>>>> 2017-04-01 23:55:40,930 WARN [geonode.security] - Error connecting to
>>>> the GeoNode server for authentication purposes
>>>> org.springframework.security.authentication.AuthenticationServiceException:
>>>> Communication with GeoNode failed (GeoNodeSessionAuthToken)
>>>> ...
>>>> Caused by: java.net.SocketTimeoutException: Read timed out
>>>>
>>>> I am using the same credentials for the Postgres account (geonode /
>>>> geonode) that are in the instructions.  Geoserver, Postgres, and Geonode
>>>> are all hosted on the same machine.
>>>>
>>>> Thanks in advance to everyone, I really appreciate all the effort that
>>>> has gone into this project.
>>>>
>>>> Mike
>>>>
>>>> _______________________________________________
>>>> geonode-devel mailing list
>>>> geonode-devel at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>>>>
>>>>
>>>>
>>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20170408/6228c493/attachment-0001.html>


More information about the geonode-devel mailing list