[GeoNode-users] Error Upload and Update Layers After Replace pycsw with Geonetwork

Syamani Banjarmasin syamani_bjb at yahoo.co.id
Fri Dec 11 23:12:04 PST 2015


Dear All,

I am a new user and I have a problem here:
Yesterday, I decide to replace my default Geonode CSW, that is, pycsw, with Geonetwork.Previously there was no problem when my Geonode is still using pycsw.But, after replaced and configured using Geonetwork, I have got a problem.
When I upload layer directly in Geonode, it failed and show this massage:
Opening and ending tag mismatch: link line 6 and head, line 57, column 9


When I upload layer using QGIS (OpenGeo Explorer), and update layer using command line: geonode updatelayers
It was failed and my terminal showing these messages:

Stopping process because --ignore-errors was not set and an error was found.
Traceback (most recent call last):
  File "/usr/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py", line 108, in handle
    remove_deleted=remove_deleted)
  File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 458, in gs_slurp
    "bbox_y1": Decimal(resource.latlon_bbox[3])
  File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 154, in get_or_create
    return self.get_queryset().get_or_create(**kwargs)
  File "/usr/lib/python2.7/dist-packages/modeltranslation/manager.py", line 341, in get_or_create
    return super(MultilingualQuerySet, self).get_or_create(**kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 383, in get_or_create
    obj.save(force_insert=True, using=self.db)
  File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save
    return super(PolymorphicModel, self).save(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 569, in save_base
    update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/models.py", line 96, in catalogue_pre_save
    record = catalogue.get_record(instance.uuid)
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/backends/generic.py", line 394, in get_record
    with self.catalogue:
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/backends/generic.py", line 69, in __enter__
    self.login()
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/backends/generic.py", line 89, in login
    doc = etree.fromstring(response.read())
  File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
  File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
  File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
  File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
  File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
  File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
  File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)

Exception: ('Failed to process Admin', XMLSyntaxError(u'Opening and ending tag mismatch: link line 6 and head, line 57, column 9',))
I check directly in Geoserver, and my layer (that I upload using QGIS) is there.

Can anyone help me?
Note: I am using Ubuntu Server 14.04, Geonode 2.4, and Geonetwork 2.10.4
Thank You,
Syam'ani
Spatial Data Infrastructure Development CenterLambung Mangkurat UniversityBanjarbaru - South BorneoIndonesia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151212/14526894/attachment.html>


More information about the geonode-users mailing list