Hi Ariel
On Fri, Mar 22, 2013 at 1:29 PM, Ariel Nunez <
ingenie...@gmail.com> wrote:
> Thanks for the detailed testing Paolo.
>
> I have never gotten #1 to work, seems related to the thread you shared from
> the geoserver mailing list.
>
for me this sometime has worked, but not always. Not sure what can it
be wrong from time to time.
> For #2 you only sent the part of the log where geoserver is shutting down,
> is there a link to the full one? If it works when you build it in another
> server (I built one yesterday) try removing your .m2 folder to make sure you
> have a fresh set of dependencies.
>
this should be the full link (copied from IRC):
http://pastebin.com/yfEn3ZVk
About the .m2 folder: effectively after I removed it I can now build
latest geoserver on my dev computer and successfully deploy to tomcat
in production.
Everything seems work perfectly, I can log in geonode and geoserver,
but upload are not working.
After some debugging (nothing is logged by geonode neither by
geoserver) I think there can be a communication problem using the rest
interface (as it is done by the upload python method).
For example If I try to create a new workspace:
======================================
# curl -u admin:geoserver -v -XPOST -H 'Content-type: text/x' -d
'<workspace><name>acme</name></workspace>'
http://localhost:8082/geoserver/rest/workspaces
* About to connect() to localhost port 8082 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8082 (#0)
* Server auth using Basic with user 'admin'
> POST /geoserver/rest/workspaces HTTP/1.1
> Authorization: Basic YWRtaW46Z2Vvc2VydmVy
> User-Agent: curl/7.21.7 (x86_64-pc-linux-gnu) libcurl/7.21.7 OpenSSL/1.0.0d zlib/
1.2.3.4 libidn/1.20 libssh2/1.2.8 librtmp/2.3
> Host: localhost:8082
> Accept: */*
> Content-type: text/x
> Content-Length: 40
>
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="GeoServer Realm"
< Content-Type: text/html;charset=utf-8
< Content-Length: 1061
< Date: Wed, 20 Mar 2013 12:49:37 GMT
<
<html><head><title>Apache Tomcat/7.0.34 - 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.</u></p><HR size="1" noshade="noshade"><h3>Ap*
Connection #0 to host localhost left intact
* Closing connection #0
======================================
This is the error I get using the importlayers command:
======================================
# ./manage.py importlayers /tmp/global/ -v 3
Notifications Configured for geonode.layers.managment.commands
Verifying that GeoNode is running ...
Found 1 potential layers.
----------------------------------------------------------------------------------------------------
Uploading layer: [global], base filename: [/tmp/global/global.shp]
>>> Step 0. Verify if the file /tmp/global/global.shp exists so we can create the layer [global]
>>> Step 1. Figure out a name for global
Using name as requested
>>> Step 2. Make sure we are not trying to overwrite a existing resource named [global] with the wrong type
>>> Step 3. Identifying if [global] is vector or raster and gathering extra files
Uploading vector layer: [/tmp/global/global.shp]
>>> Step 4. Starting upload of [global] to GeoServer...
Could not save the layer global, there was an upload error: <!DOCTYPE
HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.2.17 (Debian) Server at
beta.geonode.wfp.org Port 80</address>
</body></html>
[failed] Layer for '/tmp/global/global.shp' (1/1)
Detailed report of failures:
/tmp/global/global.shp
================
Traceback (most recent call last):
File "/opt/geonode-2.0/geonode/geonode/layers/utils.py", line 664, in upload
keywords=keywords,
File "/opt/geonode-2.0/geonode/geonode/layers/utils.py", line 584,
in file_upload
keywords=keywords, title=title)
File "/opt/geonode-2.0/geonode/geonode/layers/utils.py", line 375, in save
overwrite=overwrite)
File "/opt/geonode-2.0/geonode/geonode/layers/utils.py", line 700,
in _create_featurestore
cat.create_featurestore(name, data, overwrite=overwrite)
File "/opt/geonode-2.0/geonode-env/local/lib/python2.7/site-packages/geoserver/catalog.py",
line 317, in create_featurestore
raise UploadError(response)
UploadError: Could not save the layer global, there was an upload
error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.2.17 (Debian) Server at
beta.geonode.wfp.org Port 80</address>
</body></html>
Finished processing 1 layers in 10.0 seconds.
0 Created layers
0 Updated layers
0 Skipped layers
1 Failed layers
10.000000 seconds per layer
======================================
The 401 error I get it is just the same I get in the geonode upload interface.
Ideas?
Thanks so much for the great help!
cheers
p
--