[GeoNode-users] Problems to migrate Geoserver from Geonode 2.0 to Geoserver from Geonode 2.4

Davi Custodio davicustodio at gmail.com
Fri Aug 21 07:23:48 PDT 2015


I managed to solve the problem, just copying the folder workspaces old
geoserver for native folder of a geoserver 2.5.1 (built into GeoNode 2:14).
After that I could upload normally.
Unfortunately I could not figure out what was really causing the problem.

On Wed, Aug 19, 2015 at 3:02 PM, Davi Custodio <davicustodio at gmail.com>
wrote:

> Complementing information about the problem:
>
> I'm trying to migrate Geoserver 2.4 (used by GeoNode 2.0) for GeoServer
> 2.5.1 (used by GeoNode 2.4).
>
> I copied the folder "data" complete GeoServer 2.4, and assured that the
> store "datastore" was pointing to the bank "geonode_data" and all layers
> work properly within the GeoServer, including "Layer Preview".
>
> The problem is happening when I try to upload any shapefile, where I get
> the error message (see previous message) and the log of Tomcat.
>
> I take to supplement, also putting the log generated by GeoNode 2.4
> (below).
>
> Can anyone help?
>
> Thanks.
>
> [Wed Aug 19 12: 58: 06.246992 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] An exception occurred loading data to PostGIS- Error
> while storing uploaded file :: Input objects can not be null
> [Wed Aug 19 12: 58: 06.247093 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] Traceback (most recent call last):
> [Wed Aug 19 12: 58: 06.247107 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/local/lib/python2.7/dist-packages/geonode/layers/views.py", line 163
> , in layer_upload
> [Wed Aug 19 12: 58: 06.247116 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] title = form.cleaned_data ["layer_title"]
> [Wed Aug 19 12: 58: 06.247123 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py", line 398
> , in file_upload
> [Wed Aug 19 12: 58: 06.247130 2015] [: error] [pid 22552:
> 140,053,275,363,072 tid] = defaults defaults
> [Wed Aug 19 12: 58: 06.247137 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 154 ,
> in get_or_create
> [Wed Aug 19 12: 58: 06.247144 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] return self.get_queryset () get_or_create (** kwargs).
> [Wed Aug 19 12: 58: 06.247151 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/modeltranslation/manager.py", line 341,
> in get_or_create
> [Wed Aug 19 12: 58: 06.247158 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] super return (MultilingualQuerySet, self)
> .get_or_create (** kwargs)
> [Wed Aug 19 12: 58: 06.247165 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 380 , in
> get_or_create
> [Wed Aug 19 12: 58: 06.247172 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] obj.save (force_insert = True, using = self.db)
> [Wed Aug 19 12: 58: 06.247179 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line
> 90, in save
> [Wed Aug 19 12: 58: 06.247186 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] super return (PolymorphicModel, self) .save (* args,
> ** kwargs)
> [Wed Aug 19 12: 58: 06.247193 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545 ,
> save in
> [Wed Aug 19 12: 58: 06.247200 2015] [: error] [pid 22552:
> 140,053,275,363,072 tid] = force_update force_update, update_fields =
> update_fields)
> [Wed Aug 19 12: 58: 06.247207 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 569 , in
> save_base
> [Wed Aug 19 12: 58: 06.247214 2015] [: error] [pid 22552:
> 140,053,275,363,072 tid] = update_fields update_fields)
> [Wed Aug 19 12: 58: 06.247220 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185,
> in send
> [Wed Aug 19 12: 58: 06.247227 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] response = receiver (signal = self, sender = sender,
> named **)
> [Wed Aug 19 12: 58: 06.247234 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line
> 71 , in geoserver_pre_save
> [Wed Aug 19 12: 58: 06.247241 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] charset = instance.charset)
> [Wed Aug 19 12: 58: 06.247248 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 1041 , in geoserver_upload
> [Wed Aug 19 12: 58: 06.247254 2015] [: error] [pid 22552:
> 140,053,275,363,072 tid] = overwrite overwrite)
> [Wed Aug 19 12: 58: 06.247261 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 951 , in _create_db_featurestore
> [Wed Aug 19 12: 58: 06.247268 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] raise GeoNodeException (msg)
> [Wed Aug 19 12: 58: 06.247275 2015] [: error] [pid 22552: tid
> 140,053,275,363,072] GeoNodeException: An exception occurred loading data
> to PostGIS- Error while storing uploaded file :: Input objects can not be
> null
>
> On Thu, Aug 13, 2015 at 9:59 AM, Davi Custodio <davicustodio at gmail.com>
> wrote:
>
>> Hello. I'm having problems with the migration of the 2.0 version of
>> GeoNode Geoserver for Geoserver the GeoNode 2.4.
>>
>> I copied the date and configured folder all that was needed for the
>> operation.
>>
>> Only testing the Geoserver, I can access all of the layers normally and
>> including Layer Preview of each. Everything seems to work perfectly in
>> Geoserver.
>>
>> But when I try to upload a shapefile by GeoNode 2.4, I get the following
>> message:
>>
>> "An exception occurred loading data to PostGIS- Error while storing
>> uploaded file :: Input objects can not be null"
>>
>> And in the log of Tomcat, attached
>>
>>
>> Does GeoNode 2.4 is not able to communicate with the Geoserver? When I
>> run a 'updatelayers GeoNode "everything works well.
>>
>> Does anyone have any idea what might be causing the problem in the upload
>> of layers?
>>
>> Thank you.
>>
>> --
>> Davi de O. Custódio
>>
>
>
>
> --
> Davi de O. Custódio
>



-- 
Davi de O. Custódio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150821/eaa848c8/attachment.html>


More information about the geonode-users mailing list