Skip to content

Instantly share code, notes, and snippets.

@nrb
Created Jan 17, 2012
Embed
What would you like to do?
Inspecting the available layers in GeoServer ...
Traceback (most recent call last):
File "/Users/nrb/dev/geonode/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/Users/nrb/dev/geonode/lib/python2.7/site-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
utility.execute()
File "/Users/nrb/dev/geonode/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/nrb/dev/geonode/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/nrb/dev/geonode/lib/python2.7/site-packages/django/core/management/base.py", line 218, in execute
output = self.handle(*args, **options)
File "/Users/nrb/dev/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py", line 21, in handle
output = Layer.objects.slurp(ignore_errors, verbosity)
File "/Users/nrb/dev/geonode/src/GeoNodePy/geonode/maps/models.py", line 212, in slurp
resources = cat.get_resources()
File "/Users/nrb/dev/geonode/src/gsconfig.py/src/geoserver/catalog.py", line 352, in get_resources
for ws in self.get_workspaces():
File "/Users/nrb/dev/geonode/src/gsconfig.py/src/geoserver/catalog.py", line 450, in get_workspaces
description = self.get_xml("%s/workspaces.xml" % self.service_url)
File "/Users/nrb/dev/geonode/src/gsconfig.py/src/geoserver/catalog.py", line 120, 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://localhost:8001/geoserver/rest/workspaces.xml but got a 404 status code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2><pre>NOT_FOUND</pre>
<p>RequestURI=/geoserver/rest/workspaces.xml</p>
<p><i><small><a href="http://jetty.mortbay.org">Powered by jetty://</a></small></i></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment