Not able to generate X-Auth-Token using curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0 command

Asked by Gaurav Kulkarni

I am doing SAIO - Swift All In One installation on Ubuntu 10.04 LTS VM. I am not able to generate X-Auth-Token using curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0 command. Before this all the steps listed in http://docs.openstack.org/developer/swift/development_saio.html are done. I am getting the following message:
* 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: */*
> X-Storage-User: test:tester
> X-Storage-Pass: testing
>
< HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
< Content-Type: text/html;charset=utf-8
< Content-Length: 985
< Date: Tue, 05 Feb 2013 11:11:52 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
<html><head><title>Apache Tomcat/6.0.24 - 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 404 - /auth/v1.0/</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/auth/v1.0/</u></p><p><b>description</b> <u>The requested resource (/auth/v1.0/) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.24</h3></body></html>

Any help will be highly appreciated in this regard.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
clayg
Solved:
Last query:
Last reply:
Revision history for this message
Best clayg (clay-gerrard) said :
#1

Heh, Tomcat.

Seems like something else is running on this box and listening on port 8080.

It's possible the swift proxy can't start; if something is already
listening on 8080 the proxy won't be able to bind, and you should see
something to that effect in the swift logs (or /var/log/syslog by default).

You can try to change the proxy server's bind port in
/etc/swift/proxy-server.conf

-Clay

On Tue, Feb 5, 2013 at 3:50 AM, Gaurav Kulkarni <
<email address hidden>> wrote:

> New question #221094 on OpenStack Object Storage (swift):
> https://answers.launchpad.net/swift/+question/221094
>
> I am doing SAIO - Swift All In One installation on Ubuntu 10.04 LTS VM. I
> am not able to generate X-Auth-Token using curl -v -H 'X-Storage-User:
> test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0command. Before this all the steps listed in
> http://docs.openstack.org/developer/swift/development_saio.html are done.
> I am getting the following message:
> * 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: */*
> > X-Storage-User: test:tester
> > X-Storage-Pass: testing
> >
> < HTTP/1.1 404 Not Found
> < Server: Apache-Coyote/1.1
> < Content-Type: text/html;charset=utf-8
> < Content-Length: 985
> < Date: Tue, 05 Feb 2013 11:11:52 GMT
> <
> * Connection #0 to host 127.0.0.1 left intact
> * Closing connection #0
> <html><head><title>Apache Tomcat/6.0.24 - 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 404 - /auth/v1.0/</h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
> <u>/auth/v1.0/</u></p><p><b>description</b> <u>The requested resource
> (/auth/v1.0/) is not available.</u></p><HR size="1"
> noshade="noshade"><h3>Apache Tomcat/6.0.24</h3></body></html>
>
> Any help will be highly appreciated in this regard.
> Thanks in advance.
>
> --
> You received this question notification because you are a member of
> Swift Core, which is an answer contact for OpenStack Object Storage
> (swift).
>

Revision history for this message
Gaurav Kulkarni (gaurkulk) said :
#2

Thanks clayg, that solved my question.