hello sir!
I tried the commands again.
root@arun-Aspire-5742:~# sudo swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
root@arun-Aspire-5742:~# sudo useradd swift
useradd: user 'swift' already exists
root@arun-Aspire-5742:~# sudo swift-init account start
Starting account-server...(/etc/swift/account-server.conf)
root@arun-Aspire-5742:~# sudo swift-init proxy restart
Signal proxy-server pid: 2514 signal: 15
proxy-server (2514) appears to have stopped
Starting proxy-server...(/etc/swift/proxy-server.conf)
root@arun-Aspire-5742:~# sudo swift-init proxy restart
Signal proxy-server pid: 3008 signal: 15
proxy-server (3008) appears to have stopped
Starting proxy-server...(/etc/swift/proxy-server.conf)
root@arun-Aspire-5742:~#
curl -v -H 'X-Auth-User:prag_2648:pragya' -H 'X-Auth-Key:pj2648'
http://localhost/auth/v1.0/
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
again, the same problem is coming.
But if I am giving the command
sudo swift-init proxy start
It shows proxy server is running
root@arun-Aspire-5742:~# sudo swift-init proxy startproxy-server running (3024
- /etc/swift/proxy-server.conf)
proxy-server already started...
root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag_2648:pragya' -H
'X-Auth-Key:pj2648' http://localhost/auth/v1.0/
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
Please help me in this regard.
---
ThanksPragya Jain
----- Forwarded Message -----
>From: pragya jain <prag_2...@yahoo.co.in>
>To: "openstack@lists.openstack.org" <openstack@lists.openstack.org>
>Sent: Thursday, 22 August 2013 1:47 PM
>Subject: problem in setting up TempAuth authentication and authrization with
>swift
>
>
>
>hello all
>
>
>
>I am configuring swift on my PC on Ubuntu 12.04.
>
>
>after configuring logging to a single, local file, I have to configure proxy
>server.
>I changed the swift_hash_path_suffix using the command
>
>root@arun-Aspire-5742:~# vi /etc/swift/swift.conf
>
>
>Then, start proxy server process
>
>root@arun-Aspire-5742:~# sudo swift-init proxy start
>
>Starting proxy-server...(/etc/swift/proxy-server.conf)
>
>
>now, I have to set up TempAuth authentication and authrization with swift
>
>For this, I run following commands:
>root@arun-Aspire-5742:~# sudo swift-init account start
>
>Starting account-server...(/etc/swift/account-server.conf)
>
>root@arun-Aspire-5742:~# sudo swift-init proxy restart
>
>Signal proxy-server pid: 2485 signal: 15
>
>proxy-server (2485) appears to have stopped
>
>Starting proxy-server...(/etc/swift/proxy-server.conf)
>root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag_2648' -H
>'X-Auth-Key:pj2648' http://localhost/auth/v1.0/
>
>* About to connect() to localhost port 80 (#0)
>
>* Trying 127.0.0.1... Connection refused
* couldn't connect to host
>
>* Closing connection #0
curl: (7) couldn't connect to host
>
>
>But, it shows an error in connecting to host.
>
>
>Please help me in this regard.
>
>
>---
>Thanks
>
>
>
>Pragya Jain
>
>
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack