Hi there,

I have installed my geonode in http://slip.ivec.org/. It seems to be working
ok apart from some issues: dataupdload to geonode and keep getting error
message when trying to go to geonetwork main page.

I cannot upload shape file. In my log I saw the following error message:



Uploaded layer: [poi_2], base filename: [poi_2.shp]

Requested name already used; adjusting name [poi_2] => [poi_2]

Upload [poi_2.shp] appears to be a Shapefile

Starting upload of [poi_2] to GeoServer...

_handle_layer_upload failed!

Traceback (most recent call last):

  File "/apps/geonode/sandbox/src/GeoNodePy/geonode/maps/views.py", line
832, in upload_layer

    layer, errors = _handle_layer_upload(request)

  File
"/apps/geonode/sandbox/lib/python2.6/site-packages/django/db/transaction.py",
line 338, in _commit_manually

    return func(*args, **kw)

  File "/apps/geonode/sandbox/src/GeoNodePy/geonode/maps/views.py", line
980, in _handle_layer_upload

    create_store(name, cfg, overwrite=overwrite)

  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/catalog.py",
line 178, in create_featurestore

    workspace = self.get_default_workspace()

  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/catalog.py",
line 382, in get_default_workspace

    """ % ("http://www.w3.org/2005/Atom";, self.service_url)

  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/workspace.py",
line 14, in __init__

    self.update()

  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/workspace.py",
line 28, in update

    self.datastore_url = atom_link(datastores)

  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/support.py",
line 84, in atom_link

    if 'href' in node.attrib:

AttributeError: 'NoneType' object has no attribute 'attrib'

layer upload - okay Django, you handle the rest.

When I cheked the geoserver-geonode-dev, it seems that there is not
workspace in there. So I created one called geonode. When I tried to upload
next it seems to go further, though it still gives me error message.

When I checked geoserver the data is uploaded and it seems to create a layer
in there. Then I tried to run *django-admin.py updatelayers
--settings=geonode.settings*. it gave me error saying


(sandbox)[root@slip sandbox]# django-admin.py updatelayers
--settings=geonode.settings
/apps/geonode/sandbox/lib/python2.6/site-packages/registration/models.py:4:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  import sha
Traceback (most recent call last):
  File "/apps/geonode/sandbox/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File
"/apps/geonode/sandbox/lib/python2.6/site-packages/django/core/management/__init__.py",
line 429, in execute_from_command_line
    utility.execute()
  File
"/apps/geonode/sandbox/lib/python2.6/site-packages/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/apps/geonode/sandbox/lib/python2.6/site-packages/django/core/management/base.py",
line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/apps/geonode/sandbox/lib/python2.6/site-packages/django/core/management/base.py",
line 218, in execute
    output = self.handle(*args, **options)
  File
"/apps/geonode/sandbox/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",
line 11, in handle
    Layer.objects.slurp()
  File "/apps/geonode/sandbox/src/GeoNodePy/geonode/maps/models.py", line
568, in slurp
    for resource in cat.get_resources():
  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/catalog.py",
line 270, in get_resources
    for ws in self.get_workspaces():
  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/catalog.py",
line 357, in get_workspaces
    return [Workspace(self, node) for node in
description.findall("workspace")]
  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/workspace.py",
line 14, in __init__
    self.update()
  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/workspace.py",
line 17, in update
    ResourceInfo.update(self)
  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/support.py",
line 39, in update
    self.metadata = self.catalog.get_xml(self.href)
  File "/apps/geonode/sandbox/src/gsconfig.py/src/geoserver/catalog.py",
line 96, in get_xml
    raise FailedRequestError("Tried to make a GET request to %s but got a %d
status code: \n%s" % (url, response.status, content))
geoserver.catalog.FailedRequestError: Tried to make a GET request to
http://slip.ivec.org/rest/workspaces/geonode.xml but got a 404 status
code:....

 I tried to tes if the dataupload in the demo.geonode.org and it seems does
not work as well (but I dont know what caused this).

The installation that i have is in redhat 5 and Geonode-1.0 (using Centos5
instruction).

Could someone please help me.

Thank you in advance for your kind help.

Regards, Dv

Reply via email to