<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><pre style="font-family: 'Courier New'; margin-top: 0px; margin-bottom: 0px; padding: 5px 0px; font-size: 13px;">root@arun-Aspire-5742:/etc/swift# swift-ring-builder account.builder add z1-127.0.0.1:6002/d1 100
WARNING: No region specified for z1-127.0.0.1:6002/d1. Defaulting to region 1.
Device d2r1z1-127.0.0.1:6002R127.0.0.1:6002/d1_"" with 100.0 weight got id 2
root@arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder add z1-127.0.0.1:6001/d1 100
WARNING: No region specified for z1-127.0.0.1:6001/d1. Defaulting to region 1.
Device d1r1z1-127.0.0.1:6001R127.0.0.1:6001/d1_"" with 100.0 weight got id 1
root@arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder add z1-127.0.0.1:6000/d1 100
WARNING: No region specified for z1-127.0.0.1:6000/d1. Defaulting to region 1.
Device d2r1z1-127.0.0.1:6000R127.0.0.1:6000/d1_"" with 100.0 weight got id 2
root@arun-Aspire-5742:/etc/swift# swift-ring-builder account.builder rebalance
Reassigned 262144 (100.00%) partitions. Balance is now 0.00.
root@arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder rebalance 
Reassigned 262144 (100.00%) partitions. Balance is now 33.33.
-------------------------------------------------------------------------------
NOTE: Balance of 33.33 indicates you should push this 
      ring, wait at least 24 hours, and rebalance/repush.
-------------------------------------------------------------------------------
root@arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder pretend_min_part_hours_passed
root@arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder pretend_min_part_hours_passed
root@arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder rebalanceReassigned 131072 (50.00%) partitions. Balance is now 0.00.
root@arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder rebalanceReassigned 262144 (100.00%) partitions. Balance is now 0.00.
root@arun-Aspire-5742:/etc/swift# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' <a rel="nofollow" target="_blank" href="http://localhost:8080/auth/v1.0/" style="color: rgb(40, 98, 197); outline: 0px;">http://localhost:8080/auth/v1.0/</a>
* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
root@arun-Aspire-5742:/etc/swift# sudo swift-init account start
Starting account-server...(/etc/swift/account-server.conf)
root@arun-Aspire-5742:/etc/swift# sudo swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
root@arun-Aspire-5742:/etc/swift# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' <a rel="nofollow" target="_blank" href="http://localhost:8080/auth/v1.0/" style="color: rgb(40, 98, 197); outline: 0px;">http://localhost:8080/auth/v1.0/</a><div class="yiv992413477im">

* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... connected
> GET /auth/v1.0/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a rel="nofollow" target="_blank" href="http://1.2.3.4/" style="color: rgb(40, 98, 197); outline: 0px;">1.2.3.4</a> libidn/1.23 librtmp/2.3
> Host: localhost:8080
> Accept: */*
> X-Auth-User:prag2648:pragya
> X-Auth-Key:pj2648

< HTTP/1.1 200 OK
< X-Storage-Url: <a rel="nofollow" target="_blank" href="http://localhost:8080/v1/AUTH_prag2648" style="color: rgb(40, 98, 197); outline: 0px;">http://localhost:8080/v1/AUTH_prag2648</a></div><div class="yiv992413477im">
< X-Auth-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
< Content-Type: text/html; charset=UTF-8
< X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbe</div>f396
< Content-Length: 0
< X-Trans-Id: tx21f0255793574234b88aa-005221bf20
< Date: Sat, 31 Aug 2013 10:02:08 GMT

* Connection #0 to host localhost left intact
* Closing connection #0
root@arun-Aspire-5742:/etc/swift# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank" href="http://127.0.0.1/v1/AUTH_prag2648/" style="color: rgb(40, 98, 197); outline: 0px;">http://127.0.0.1/v1/AUTH_prag2648/</a>
* About to connect() to 127.0.0.1 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
root@arun-Aspire-5742:/etc/swift# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank" href="http://127.0.0.1:6002/v1/AUTH_prag2648/" style="color: rgb(40, 98, 197); outline: 0px;">http://127.0.0.1:6002/v1/AUTH_prag2648/</a>
* About to connect() to 127.0.0.1 port 6002 (#0)
*   Trying 127.0.0.1... connected
> GET /v1/AUTH_prag2648/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a rel="nofollow" target="_blank" href="http://1.2.3.4/" style="color: rgb(40, 98, 197); outline: 0px;">1.2.3.4</a> libidn/1.23 librtmp/2.3
> Host: <a rel="nofollow" target="_blank" href="http://127.0.0.1:6002/" style="color: rgb(40, 98, 197); outline: 0px;">127.0.0.1:6002</a>
> Accept: */*
> X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396

< HTTP/1.1 400 Bad Request
< Content-Length: 32
< Content-Type: text/plain
< Date: Sat, 31 Aug 2013 10:04:14 GMT

* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0</pre><pre style="font-family: 'Courier New'; margin-top: 0px; margin-bottom: 0px; padding: 5px 0px; font-size: 13px;"><span style="white-space: normal; background-color: rgb(240, 247, 255);">it shows a bad request error in retrieving the content of account</span></pre><pre style="font-family: 'Courier New'; margin-top: 0px; margin-bottom: 0px; padding: 5px 0px; font-size: 13px;"><span style="white-space: normal; background-color: rgb(240, 247, 255);"><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">then, I did thefolowing job:</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">root@arun-Aspire-5742:~# sudo swift-init account start</div><div
 style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">Starting account-server...(/etc/swift/account-server.conf)</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">root@arun-Aspire-5742:~# sudo swift-init proxy start</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">Starting proxy-server...(/etc/swift/proxy-server.conf)</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' http://localhost:8080/auth/v1.0/</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* About to connect() to localhost port 8080 (#0)</div><div
 style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">*   Trying 127.0.0.1... connected</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> GET /auth/v1.0/ HTTP/1.1</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> Host: localhost:8080</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> Accept: */*</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color:
 transparent;">> X-Auth-User:prag2648:pragya</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> X-Auth-Key:pj2648</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< HTTP/1.1 200 OK</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< X-Storage-Url: http://localhost:8080/v1/AUTH_prag2648</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< X-Auth-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color:
 transparent;">< Content-Type: text/html; charset=UTF-8</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Content-Length: 0</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< X-Trans-Id: tx8f658e6bd3b244b793815-005222de45</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Date: Sun, 01 Sep 2013 06:27:17 GMT</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size:
 16px; background-color: transparent;">* Connection #0 to host localhost left intact</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;"><span style="background-color: transparent;">* Closing connection #0</span></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5' http://127.0.0.1:8080/v1/AUTH_prag2648/</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* About to connect() to 127.0.0.1 port 8080 (#0)</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">*   Trying 127.0.0.1... connected</div><div style="font-family: 'bookman old style', 'new york', times, serif;
 font-size: 16px; background-color: transparent;">> GET /v1/AUTH_prag2648/ HTTP/1.1</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> Host: 127.0.0.1:8080</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> Accept: */*</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> </div><div
 style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< HTTP/1.1 503 Internal Server Error</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Content-Length: 118</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Content-Type: text/html; charset=UTF-8</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< X-Trans-Id: tx1c1cb6e3a9f64b56a9550-005222dea4</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Date: Sun, 01 Sep 2013 06:28:54 GMT</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color:
 transparent;">< </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* Connection #0 to host 127.0.0.1 left intact</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* Closing connection #0</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;"><html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>root@arun-Aspire-5742:~# </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk9867f9725a1246a1af3e30b9f7161eb5' http://localhost:8080/v1/AUTH_prag2648/</div><div style="font-family: 'bookman old
 style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* About to connect() to localhost port 8080 (#0)</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">*   Trying 127.0.0.1... connected</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> GET /v1/AUTH_prag2648/ HTTP/1.1</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> Host: localhost:8080</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color:
 transparent;">> Accept: */*</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> X-Storage-Token:AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">> </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< HTTP/1.1 503 Internal Server Error</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Content-Length: 118</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Content-Type: text/html; charset=UTF-8</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color:
 transparent;">< X-Trans-Id: txa4c98c518382430ab9f5f-005222dede</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< Date: Sun, 01 Sep 2013 06:29:51 GMT</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">< </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* Connection #0 to host localhost left intact</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">* Closing connection #0</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;"><html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later
 time.</p></html>root@arun-Aspire-5742:~# </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;"></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; background-color: transparent;">root@arun-Aspire-5742:~# </div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;">But it again shows internal server error.</div><div>---</div><div><br></div><div>Please help me in this regard.</div><div><br></div><div>Pragya Jain</div></span></pre></div></body></html>