It seems to me that there is a problem communicating
between geoserver and django. I strongly suspect this has something to
do with the (UNDOCUMENTED! ->
http://geonode.readthedocs.org/en/latest/developers/extend.html?highlight=geoserver_token
)
geoserver_token (which is an emtpy file on my installation)

src/GeoNodePy/geonode/settings.py:GEOSERVER_TOKEN =
open(os.path.join(PROJECT_ROOT,"..","..",
"..","geoserver_token")).readline()[0:-1]
[iwlearn3@dweb138 django_geonode]$ fgrep -rw GEOSERVER_TOKEN src/
src/GeoNodePy/geonode/settings.py:GEOSERVER_TOKEN =
open(os.path.join(PROJECT_ROOT,"..","..",
"..","geoserver_token")).readline()[0:-1]
src/GeoNodePy/geonode/settings.py:GEOSERVER_CREDENTIALS =
"geoserver_admin", GEOSERVER_TOKEN
[iwlearn3@dweb138 django_geonode]$ fgrep -rw GEOSERVER_CREDENTIALS src/
src/GeoNodePy/geonode/settings.py:GEOSERVER_CREDENTIALS =
"geoserver_admin", GEOSERVER_TOKEN
src/GeoNodePy/geonode/local_settings.py:GEOSERVER_CREDENTIALS =
'geoserver', 'abc1234'
src/GeoNodePy/geonode/proxy/views.py:
http.add_credentials(*settings.GEOSERVER_CREDENTIALS)
src/GeoNodePy/geonode/maps/views.py:_user, _password =
settings.GEOSERVER_CREDENTIALS
src/GeoNodePy/geonode/maps/views.py:                username ==
settings.GEOSERVER_CREDENTIALS[0] and
src/GeoNodePy/geonode/maps/views.py:                password ==
settings.GEOSERVER_CREDENTIALS[1]):
src/GeoNodePy/geonode/maps/tests.py:        valid_uname_pw = "%s:%s" %
(settings.GEOSERVER_CREDENTIALS[0],settings.GEOSERVER_CREDENTIALS[1])
src/GeoNodePy/geonode/maps/tests.py:        # Test that requesting
when supplying the GEOSERVER_CREDENTIALS returns the expected json
src/GeoNodePy/geonode/maps/tests.py:        expected_result = {'rw':
[],'ro': [],'name': settings.GEOSERVER_CREDENTIALS[0],'is_superuser':
True,'is_anonymous': False}
src/GeoNodePy/geonode/maps/models.py:_user, _password =
settings.GEOSERVER_CREDENTIALS
src/GeoNodePy/geonode/maps/models.py:        user, password =
settings.GEOSERVER_CREDENTIALS

where is this set in geoserver? how do i adjust the path?

also i cannot find where in the setup the THE_GEOSERVER_PASSWORD $geoserverpass
is set for geoserver (it is set for the django app but the
configuration for geoserver is nowhere
where i can find it)

On Thu, May 17, 2012 at 1:54 PM, Christian Ledermann
<[email protected]> wrote:
> when i try to upload a shapefile as an admin user i get the error:
>
> [Thu May 17 05:46:19 2012] [error] Unexpected error during upload.
> [Thu May 17 05:46:19 2012] [error] Traceback (most recent call last):
> [Thu May 17 05:46:19 2012] [error]   File
> "/home/iwlearn3/webapps/django_geonode/src/GeoNodePy/geonode/maps/views.py",
> line 880, in upload_layer
> [Thu May 17 05:46:19 2012] [error]     permissions =
> form.cleaned_data["permissions"]
> [Thu May 17 05:46:19 2012] [error]   File
> "/home/iwlearn3/webapps/django_geonode/src/GeoNodePy/geonode/maps/utils.py",
> line 281, in save
> [Thu May 17 05:46:19 2012] [error]     store, gs_resource =
> create_store_and_resource(name, data, overwrite=overwrite)
> [Thu May 17 05:46:19 2012] [error]   File
> "/home/iwlearn3/webapps/django_geonode/src/GeoNodePy/geonode/maps/utils.py",
> line 576, in _create_db_featurestore
> [Thu May 17 05:46:19 2012] [error]     ds =
> cat.get_store(settings.DB_DATASTORE_NAME)
> [Thu May 17 05:46:19 2012] [error]   File
> "/home/iwlearn3/webapps/django_geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line 147, in get_store
> [Thu May 17 05:46:19 2012] [error]     for ws in self.get_workspaces():
> [Thu May 17 05:46:19 2012] [error]   File
> "/home/iwlearn3/webapps/django_geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line 452, in get_workspaces
> [Thu May 17 05:46:19 2012] [error]     description =
> self.get_xml("%s/workspaces.xml" % self.service_url)
> [Thu May 17 05:46:19 2012] [error]   File
> "/home/iwlearn3/webapps/django_geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line 122, in get_xml
> [Thu May 17 05:46:19 2012] [error]     raise FailedRequestError("Tried
> to make a GET request to %s but got a %d status code: \\n%s" % (url,
> response.status, content))
> [Thu May 17 05:46:19 2012] [error] FailedRequestError: Tried to make a
> GET request to http://geonode.iwlearn.org/geoserver/rest/workspaces.xml
> but got a 401 status code:
> [Thu May 17 05:46:19 2012] [error] <html><head><title>Apache
> Tomcat/6.0.35 - Error report</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P 
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>HTTP Status 401 - Full
> authentication is required to access this resource</h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
> <u>Full authentication is required to access this
> resource</u></p><p><b>description</b> <u>This request requires HTTP
> authentication (Full authentication is required to access this
> resource).</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/6.0.35</h3></body></html>
>
>
> --
> Best Regards,
>
> Christian Ledermann
>
> Nairobi - Kenya
> Mobile : +254 702978914
>
> <*)))>{
>
> If you save the living environment, the biodiversity that we have left,
> you will also automatically save the physical environment, too. But If
> you only save the physical environment, you will ultimately lose both.
>
> 1) Don’t drive species to extinction
>
> 2) Don’t destroy a habitat that species rely on.
>
> 3) Don’t change the climate in ways that will result in the above.
>
> }<(((*>



-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

Reply via email to