Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem running S3 middleware ...


I set up SWIFT following SAIO 1.4.0 instructions. I am able to run st command as follows:

ghuang@ubuntu:~$ st -A -U test:tester -K testing stat Account: AUTH_6ae1aeae-e287-4c25-9503-6bb9d137a1f3 Containers: 2 Objects: 9 Bytes: 424992505 Accept-Ranges: bytes

So my next step is trying to make S3 compatibility work on SWIFT by running S3 middleware. I installed s3curl and modified endpoint to in But when I run the following command, it failed, any idea?

ghuang@ubuntu:~$ --id test:tester --key testing --get -- -s -v |xmlindent Unknown option: get * About to connect() to port 8080 (#0) * Trying connected * Connected to ( port 8080 (#0)

GET /auth/v1.0 HTTP/1.1 User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/ libidn/1.15 Host: Accept: / Date: Mon, 27 Jun 2011 17:01:02 +0000 Authorization: AWS test:tester:zUXS7NLKJpSFPqkKVa814QGIc9M=

< HTTP/1.1 401 Unauthorized < Content-Length: 358 < Content-Type: text/html; charset=UTF-8 < Date: Mon, 27 Jun 2011 17:01:04 GMT < { [data not shown] * Connection #0 to host left intact * Closing connection #0 <html> <head> <title>401 Unauthorized</title> </head> <body>

401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

</body> </html>

Did I miss any configuration step? Any insight is very much appreciated.

Thanks in advance.