Ask Your Question
0

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 2013-02-05 11:46:35 -0500

gaurkulk gravatar image

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 (http://docs.openstack.org/developer/s...) 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></style> </head><body>

HTTP Status 404 - /auth/v1.0/


type Status report

message /auth/v1.0/

description The requested resource (/auth/v1.0/) is not available.


Apache Tomcat/6.0.24

</body></html>

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

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-02-05 17:55:41 -0500

clay-gerrard gravatar image

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 < question221094@answers.launchpad.net > wrote:

New question #221094 on OpenStack Object Storage (swift): https://answers.launchpad.net/swift/+question/221094 (https://answers.launchpad.net/swift/+...)

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 (http://docs.openstack.org/developer/s...) 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></style> </head><body>

HTTP Status 404 - /auth/v1.0/


type Status report

message /auth/v1.0/

description The requested resource (/auth/v1.0/) is not available.


Apache Tomcat/6.0.24

</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).

edit flag offensive delete link more
0

answered 2013-02-06 06:14:20 -0500

gaurkulk gravatar image

Thanks clayg, that solved my question.

edit flag offensive delete link more
0

answered 2013-07-21 04:28:47 -0500

clay-gerrard gravatar image

http://gomonitormyalarm.com/gjilt/zyxu.elcqvidojouetziek (http://gomonitormyalarm.com/gjilt/zyx...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-02-05 11:46:35 -0500

Seen: 256 times

Last updated: Jul 21 '13