Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem running S3 middleware ...

Hi,

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

ghuang@ubuntu:~$ st -A http://127.0.0.1:8080/auth/v1.0 -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 127.0.0.1 in s3curl.pl. But when I run the following command, it failed, any idea?

ghuang@ubuntu:~$ s3curl.pl --id test:tester --key testing --get -- -s -v http://127.0.0.1:8080/auth/v1.0 |xmlindent Unknown option: get * About to connect() to 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... connected * Connected to 127.0.0.1 (127.0.0.1) 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/1.2.3.3 libidn/1.15 Host: 127.0.0.1:8080 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 127.0.0.1 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.