<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div><span><br></span></div><div>hello,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;">please help me in this regard.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> pragya
 jain <prag_2648@yahoo.co.in><br> <b><span style="font-weight: bold;">To:</span></b> Clay Gerrard <clay.gerrard@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "openstack@lists.openstack.org" <openstack@lists.openstack.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, 1 September 2013 12:02 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Openstack] Fw: problem in creating account in swift<br> </font> </div> <div class="y_msg_container"><br><div id="yiv992413477"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><span>hello sir,</span></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent;
 font-style: normal;"><span><br></span></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>I did the following job:</span></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color:transparent;">arun@arun-Aspire-5742:~$ su -</div><div style="
background-color:transparent;">Password: </div><div style="background-color:transparent;">root@arun-Aspire-5742:~# sudo swift-init account start</div><div style="background-color:transparent;">Starting account-server...(/etc/swift/account-server.conf)</div><div style="background-color:transparent;">root@arun-Aspire-5742:~# sudo swift-init proxy start</div><div style="background-color:transparent;">Starting proxy-server...(/etc/swift/proxy-server.conf)</div><div style="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="background-color:transparent;">* About to connect() to localhost port 8080 (#0)</div><div style="background-color:transparent;">*   Trying 127.0.0.1... connected</div><div style="background-color:transparent;">> GET /auth/v1.0/ HTTP/1.1</div><div style="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="background-color:transparent;">> Host: localhost:8080</div><div style="background-color:transparent;">> Accept: */*</div><div style="background-color:transparent;">> X-Auth-User:prag2648:pragya</div><div style="background-color:transparent;">> X-Auth-Key:pj2648</div><div style="background-color:transparent;">> </div><div style="background-color:transparent;">< HTTP/1.1 200 OK</div><div style="background-color:transparent;">< X-Storage-Url: http://localhost:8080/v1/AUTH_prag2648</div><div style="background-color:transparent;">< X-Auth-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="background-color:transparent;">< Content-Type: text/html; charset=UTF-8</div><div style="background-color:transparent;">< X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="
background-color:transparent;">< Content-Length: 0</div><div style="background-color:transparent;">< X-Trans-Id: tx8f658e6bd3b244b793815-005222de45</div><div style="background-color:transparent;">< Date: Sun, 01 Sep 2013 06:27:17 GMT</div><div style="background-color:transparent;">< </div><div style="background-color:transparent;">* Connection #0 to host localhost left intact</div><div style="background-color:transparent;">* Closing connection #0</div><div style="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="background-color:transparent;">* About to connect() to 127.0.0.1 port 8080 (#0)</div><div style="background-color:transparent;">*   Trying 127.0.0.1... connected</div><div style="background-color:transparent;">> GET /v1/AUTH_prag2648/ HTTP/1.1</div><div
 style="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="background-color:transparent;">> Host: 127.0.0.1:8080</div><div style="background-color:transparent;">> Accept: */*</div><div style="background-color:transparent;">> X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="background-color:transparent;">> </div><div style="background-color:transparent;">< HTTP/1.1 503 Internal Server Error</div><div style="background-color:transparent;">< Content-Length: 118</div><div style="background-color:transparent;">< Content-Type: text/html; charset=UTF-8</div><div style="background-color:transparent;">< X-Trans-Id: tx1c1cb6e3a9f64b56a9550-005222dea4</div><div style="background-color:transparent;">< Date: Sun, 01 Sep 2013 06:28:54 GMT</div><div style="background-color:transparent;">< </div><div style="
background-color:transparent;">* Connection #0 to host 127.0.0.1 left intact</div><div style="background-color:transparent;">* Closing connection #0</div><div style="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="background-color:transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk9867f9725a1246a1af3e30b9f7161eb5' http://localhost:8080/v1/AUTH_prag2648/</div><div style="background-color:transparent;">* About to connect() to localhost port 8080 (#0)</div><div style="background-color:transparent;">*   Trying 127.0.0.1... connected</div><div style="background-color:transparent;">> GET /v1/AUTH_prag2648/ HTTP/1.1</div><div style="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="background-color:transparent;">> Host: localhost:8080</div><div style="background-color:transparent;">> Accept: */*</div><div style="background-color:transparent;">> X-Storage-Token:AUTH_tk9867f9725a1246a1af3e30b9f7161eb5</div><div style="background-color:transparent;">> </div><div style="background-color:transparent;">< HTTP/1.1 503 Internal Server Error</div><div style="background-color:transparent;">< Content-Length: 118</div><div style="background-color:transparent;">< Content-Type: text/html; charset=UTF-8</div><div style="background-color:transparent;">< X-Trans-Id: txa4c98c518382430ab9f5f-005222dede</div><div style="background-color:transparent;">< Date: Sun, 01 Sep 2013 06:29:51 GMT</div><div style="background-color:transparent;">< </div><div style="background-color:transparent;">* Connection #0 to host localhost left intact</div><div
 style="background-color:transparent;">* Closing connection #0</div><div style="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="background-color:transparent;"><span></span></div><div style="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 style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-family: 'bookman old style', 'new york', times, serif; font-size:
 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <clay.gerrard@gmail.com><br> <b><span style="font-weight:bold;">To:</span></b> pragya jain <prag_2648@yahoo.co.in> <br> <b><span style="font-weight:bold;">Sent:</span></b> Saturday, 31 August 2013 7:38 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: Fw: problem in creating account in swift<br> </font> </div> <div class="yiv992413477y_msg_container"><br><div id="yiv992413477"><div dir="ltr">I was only just connecting to the account directly (<a rel="nofollow" target="_blank"  href="http://127.0.0.1:6002/">127.0.0.1:6002</a>) to prove a point - normally clients would always only talk to the proxy (<a rel="nofollow" target="_blank"  href="http://127.0.0.1:8080/">127.0.0.1:8080</a>).<br>
<br>curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank"  href="http://127.0.0.1:8080/v1/AUTH_prag2648/">http://127.0.0.1:8080/v1/AUTH_prag2648/</a><br><br>... should work?<div class="yiv992413477gmail_extra">
<br><br><div class="yiv992413477gmail_quote">On Sat, Aug 31, 2013 at 3:17 AM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br><blockquote class="yiv992413477gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-size: 12pt; font-family: 'bookman old style', 'new york', times, serif;"><div><span></span></div><pre style="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/">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/">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/">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">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/">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/">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/">1.2.3.4</a> libidn/1.23 librtmp/2.3
> Host: <a rel="nofollow" target="_blank"  href="http://127.0.0.1:6002/">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="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:13px;"><span style="font-family:Consolas,;white-space:normal;background-color:rgb(240,247,255);">it shows a bad request error in retrieving the content of account</span><br>
</pre><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;">
 <div style="font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial"><div class="yiv992413477im"> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br>
 <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br> </div><b><span style="font-weight:bold;">Sent:</span></b> Saturday, 31 August 2013 1:42 PM<div>
<div class="yiv992413477h5"><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: Fw: problem in creating account in swift<br> </div></div></font> </div><div><div class="yiv992413477h5"> <div><br><div><div dir="ltr">so that was only a couple of minutes of logs and it was ll the boring info lines from the background daemons.  Let's stop those while we troubeshoot:<div>
<br></div><div>`swift-init rest stop`<br><div><br>
</div><div>the listening servers show there's something listening on all interfaces on 6002.  It doesn't make sense that you wouldn't be able to connect to it?  Maybe this machine isn't really 10.0.2.15?  Can you ping it?  Maybe there's a weird route?  Try localhost:</div>

<div><br></div><div>`curl http://localhost:6002`</div><div><br></div><div>can you /msg clayg on Freenode so we can chat realtime?</div></div></div><div><br><br><div>On Sat, Aug 31, 2013 at 1:01 AM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div>hello sir,</div><div><br></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;">I run the following command:</div><div style="font-style:normal;font-size:16px;background-color:transparent;">
<span style="background-color:transparent;"><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><span style="background-color:transparent;">root@arun-Aspire-5742:~# sudo netstat -plnt</span></div>

<div>Active Internet connections (only servers)</div><div>Proto Recv-Q Send-Q Local Address        
   Foreign Address         State       PID/Program name</div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:11211/">127.0.0.1:11211</a>         0.0.0.0:*               LISTEN      948/memcached   </div>

<div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:8080/">0.0.0.0:8080</a>            0.0.0.0:*               LISTEN      2589/python     </div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:6000/">0.0.0.0:6000</a>            0.0.0.0:*               LISTEN      2613/python     </div>

<div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:6001/">0.0.0.0:6001</a>            0.0.0.0:*            
   LISTEN      2593/python     </div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:6002/">0.0.0.0:6002</a>            0.0.0.0:*               LISTEN      2594/python     </div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:53/">127.0.0.1:53</a>            0.0.0.0:*               LISTEN      4137/dnsmasq    </div>

<div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:631/">127.0.0.1:631</a>           0.0.0.0:*               LISTEN      579/cupsd       </div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:873/">0.0.0.0:873</a>             0.0.0.0:*               LISTEN  
    2816/rsync      </div><div>tcp6       0      0 ::1:631                 :::*                    LISTEN      579/cupsd       </div><div><span></span></div><div>tcp6       0      0 :::873                  :::*                    LISTEN      2816/rsync      </div>

<div style="font-size:12pt;"><br></div><div style="font-size:12pt;"><span><span>root@arun-Aspire-5742:~# </span>cat /var/log/syslog</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;"><font face="times new roman, new york, times, serif">paste the result on <a rel="nofollow" target="_blank" href="http://paste.openstack.org/">http://paste.openstack.org/</a></font></div>

<h2 style="font-size:24px;color:rgb(225,143,0);">Paste #45522</h2><div style="font-style:normal;font-size:16px;background-color:transparent;">
<font face="times new roman, new york, times, serif"></font><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">
  <div style="font-size:12pt;"> <div style="font-size:12pt;"> <div dir="ltr"> <hr size="1">
  <font face="Arial"><div> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br> <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br>

 </div><b><span style="font-weight:bold;">Sent:</span></b> Saturday, 31 August 2013 1:15 PM<div><div><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: Fw: problem in creating account in swift<br> </div>
</div></font> </div><div><div> <div><br><div><div dir="ltr">so what port is it listening on?<div><br></div><div>`sudo netstat -plnt`<br><div><br></div><div>The logs man... the logs.  `cat /var/log/syslog` copy the whole thing in <a rel="nofollow" target="_blank" href="http://paste.openstack.org/">http://paste.openstack.org/</a> if you have to.<div>


<br></div><div><br></div></div></div></div><div><br><br><div>On Sat, Aug 31, 2013 at 12:37 AM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>


<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div><div style="font-size:16px;">
<div style="background-color:transparent;">root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder</div><div>/etc/swift/account.builder, build version 1</div><div>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div>


<div>The minimum number of hours before a partition can be reassigned is 24</div></div><div style="font-size:16px;">Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div>


<div style="font-size:16px;"><div>             0       1     1       10.0.2.15  6000    
   10.0.2.15              6000        d1 100.00     786432    0.00 </div><div><br></div></div><div style="font-size:16px;background-color:transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396'<a rel="nofollow" target="_blank"  href="http://10.0.2.15:6000/v1/AUTH_prag2648/">http://10.0.2.15:6000/v1/AUTH_prag2648/</a></div>


<div style="font-size:16px;">* About to connect() to 10.0.2.15 port 6000 (#0)</div><div style="font-size:16px;">*   Trying 10.0.2.15... Connection timed out</div><div style="font-size:16px;"><div>* couldn't connect to host</div>


<div>* Closing connection #0</div><div></div><div>curl: (7) couldn't connect to host</div><div style="font-size:12pt;"><br></div></div><div style="font-size:16px;">/etc/swift/account-server.conf file says:</div><div style="font-size:16px;">


<br></div><div style="font-size:16px;">[DEFAULT]</div><div style="font-size:16px;"># bind_ip = 0.0.0.0</div><div style="font-size:16px;"># bind_port = 6002</div><div style="font-size:16px;"># bind_timeout = 30</div><div style="font-size:16px;">


# backlog = 4096</div><div style="font-size:16px;"># user = swift</div><div style="font-size:16px;"># swift_dir = /etc/swift</div><div style="font-size:16px;"># devices = /srv/node</div><div style="font-size:16px;"># mount_check = true</div>


<div style="font-size:16px;"># disable_fallocate = false</div><div><span style="font-size:16px;">....</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;">
<br></div></div><div style="font-style:normal;font-size:16px;background-color:transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank"  href="http://10.0.2.15:6002/v1/AUTH_prag2648/">http://10.0.2.15:6002/v1/AUTH_prag2648/</a></div>


<div>* About to connect() to 10.0.2.15 port 6002 (#0)</div><div><div>*   Trying 10.0.2.15... Connection timed out</div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div><span></span></div>
<div>curl: (7) couldn't connect to host</div><div style="font-size:12pt;"><br></div></div><div style="font-size:12pt;">
<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;"> <div style="font-size:12pt;">
 <div dir="ltr"> <hr size="1">  <font face="Arial"><div> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br>


 <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br> </div><b><span style="font-weight:bold;">Sent:</span></b> Saturday, 31 August 2013 12:49 PM<div>


<div><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: Fw: problem in creating account in swift<br> </div></div></font> </div><div><div> <div><br><div><div dir="ltr"><div>ok, so you're getting the exact same error the proxy is - unable to connect.  I'm sure that is in the log - can you check?</div>


<div><br></div>By default the account server's listen on 6002:<div>
<a rel="nofollow" target="_blank" href="http://docs.openstack.org/developer/swift/deployment_guide.html#account-server-configuration">http://docs.openstack.org/developer/swift/deployment_guide.html#account-server-configuration</a><br>


</div><div><br></div>
<div>not 6000 - so your ring is pointing your proxy at the wrong place (or your account server is listening on the wrong port, however you want to look at it)</div><div><br></div><div>Can you connect to the account server on 6002?</div>



<div><br></div><div>Here's how you remove/add a server from the ring:</div><div><a rel="nofollow" target="_blank" href="http://docs.openstack.org/developer/swift/admin_guide.html">http://docs.openstack.org/developer/swift/admin_guide.html</a><br>


<div>
<br></div><div><br></div></div></div><div><br><br><div>On Fri, Aug 30, 2013 at 11:43 PM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div>hello sir,</div><div><br></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;">I run the following commands:</div><div><div style="font-style:normal;font-size:16px;background-color:transparent;">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder</div>
<div>/etc/swift/account.builder, build version 1</div><div>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div><div>The minimum number of hours before a
 partition can be reassigned is 24</div></div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div><div><div>             0       1     1       10.0.2.15  6000       10.0.2.15              6000        d1 100.00     786432    0.00 </div>



<div><br></div></div><div style="font-style:normal;font-size:16px;background-color:transparent;">root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank"  href="http://10.0.2.15:6000/v1/AUTH_prag2648/">http://10.0.2.15:6000/v1/AUTH_prag2648/</a></div>



<div>* About to connect() to 10.0.2.15 port 6000 (#0)</div><div>*   Trying 10.0.2.15... Connection
 timed out</div><div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div><span></span></div><div>curl: (7) couldn't connect to host</div><div style="font-size:12pt;">
<br></div></div><div>/etc/swift/account-server.conf file says:</div><div><br></div><div>[DEFAULT]</div><div># bind_ip = 0.0.0.0</div><div># bind_port = 6002</div><div># bind_timeout = 30</div><div># backlog = 4096</div><div>



# user = swift</div><div># swift_dir = /etc/swift</div><div># devices = /srv/node</div><div># mount_check = true</div><div># disable_fallocate = false</div><div>....</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">



I am working on single node.</div><div style="font-style:normal;font-size:16px;background-color:transparent;"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">
----</div><div style="font-style:normal;font-size:16px;background-color:transparent;"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">
Pragya Jain</div><div style="font-style:normal;font-size:16px;background-color:transparent;">Delhi, India</div><div style="font-size:12pt;">
<blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;"> <div style="font-size:12pt;">
 <div dir="ltr"> <hr size="1">  <font face="Arial"><div> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br>



 <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br> </div><b><span style="font-weight:bold;">Sent:</span></b> Saturday, 31 August 2013 11:22 AM<div>



<div><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: Fw: problem in creating account in swift<br> </div></div></font> </div><div><div> <div><br><div><div dir="ltr">Right so the service seems to start, but then the proxy can't seem to talk to it.  Maybe the proxy is looking in the wrong place?  You said you can't connect to the account-server on <a rel="nofollow" target="_blank"  href="http://10.0.2.15:6000/">10.0.2.15:6000</a> earlier - which is where the ring seems to indicate the proxy should be looking for it - can you connect now?  What port does the account server(s) config file *say* they're listening on?  After you start them - are they listening there?   What is the topology of your cluster - is it just the one node?<div>




<br></div><div>I really could guess about *why* that is happening all day, but the proxy logs would just tell us.  Can you read /var/log/syslog?</div><div><br></div><div>Where are you located?  Maybe we could find you some real over the shoulder help?</div>




<div><br></div></div><div><br><br><div>On Fri, Aug 30, 2013 at 10:05 PM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>




<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div style="font-size:12pt;"><span>hello sir,</span></div>

<div style="background-color:transparent;"><span><br></span></div><div style="font-size:medium;background-color:transparent;">I start all services using the command:</div><div style="font-size:medium;background-color:transparent;">




<br></div><div style="background-color:transparent;">root@arun-Aspire-5742:~# sudo swift-init all start</div><div style="font-size:medium;background-color:transparent;">Starting container-updater...(/etc/swift/container-server.conf)</div>




<div style="font-size:medium;background-color:transparent;">Starting account-auditor...(/etc/swift/account-server.conf)</div><div style="font-size:medium;background-color:transparent;">Starting object-replicator...(/etc/swift/object-server.conf)</div>




<div style="font-size:medium;background-color:transparent;">Starting proxy-server...(/etc/swift/proxy-server.conf)</div><div style="font-size:medium;background-color:transparent;">Starting container-replicator...(/etc/swift/container-server.conf)</div>




<div style="font-size:medium;background-color:transparent;">Starting object-auditor...(/etc/swift/object-server.conf)</div><div style="font-size:medium;background-color:transparent;">Unable to locate config for object-expirer</div>




<div style="font-size:medium;background-color:transparent;">Starting container-auditor...(/etc/swift/container-server.conf)</div><div style="font-size:medium;background-color:transparent;">Starting container-server...(/etc/swift/container-server.conf)</div>




<div style="font-size:medium;background-color:transparent;">Starting account-server...(/etc/swift/account-server.conf)</div><div style="font-size:medium;background-color:transparent;">Starting
 account-reaper...(/etc/swift/account-server.conf)</div><div style="font-size:medium;background-color:transparent;">Starting container-sync...(/etc/swift/container-server.conf)</div><div style="font-size:medium;background-color:transparent;">




Starting account-replicator...(/etc/swift/account-server.conf)</div><div style="font-size:medium;background-color:transparent;">Starting object-updater...(/etc/swift/object-server.conf)</div><div style="font-size:medium;background-color:transparent;">




Starting object-server...(/etc/swift/object-server.conf)</div><div style="font-size:medium;background-color:transparent;"><br></div><div style="background-color:transparent;">root@arun-Aspire-5742:~# sudo apt-get install rsync</div>




<div style="font-size:medium;background-color:transparent;">Reading package lists... Done</div><div style="font-size:medium;background-color:transparent;">Building dependency tree       </div><div style="font-size:medium;background-color:transparent;">




Reading state information... Done</div><div style="font-size:medium;background-color:transparent;">rsync is already the newest version.</div><div style="font-size:medium;background-color:transparent;">0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.</div>




<div style="font-size:medium;background-color:transparent;"><span></span></div><div style="font-size:medium;background-color:transparent;">root@arun-Aspire-5742:~# vi /etc/default/rsync</div><div style="font-size:12pt;"><br>




</div><div style="font-size:12pt;">set rsync_enable = true</div><div style="font-size:12pt;"><br></div><div style="background-color:transparent;">then,</div><div style="background-color:transparent;"><br></div><div style="font-size:medium;background-color:transparent;">




root@arun-Aspire-5742:~# service rsync start</div><div style="font-size:medium;background-color:transparent;"> *
 Starting rsync daemon rsync                                           [ OK ] </div><div style="font-size:medium;"><br></div><div><span></span></div><div style="font-size:16px;"><div>root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-key:pj2648' <a rel="nofollow" target="_blank" href="http://localhost/auth/v1.0/">http://localhost/auth/v1.0/</a></div>




<div>* About to connect() to localhost port 80 (#0)</div><div><div>*   Trying 127.0.0.1... Connection refused</div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div>curl: (7) couldn't connect to host</div>




</div><div>root@arun-Aspire-5742:~# 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/">http://localhost:8080/auth/v1.0/</a></div>



<div>
<div>* About to connect() to localhost port 8080 (#0)</div><div>*   Trying 127.0.0.1... connected</div><div>> GET /auth/v1.0/ HTTP/1.1</div><div>> 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/">1.2.3.4</a> libidn/1.23 librtmp/2.3</div><div>> Host: localhost:8080</div><div>> Accept: */*</div><div>



> X-Auth-User:prag2648:pragya</div>
</div><div>> X-Auth-key:pj2648</div><div><div>> </div><div>< HTTP/1.1 200 OK</div><div>< X-Storage-Url: <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648">http://localhost:8080/v1/AUTH_prag2648</a></div>




</div><div>< X-Auth-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396</div><div>< Content-Type: text/html; charset=UTF-8</div><div>< X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396</div><div>< Content-Length: 0</div>




<div>< X-Trans-Id: tx44b17cb561a84a34bee95-00522171e4</div><div>< Date: Sat, 31 Aug 2013 04:32:36 GMT</div><div>< </div><div><div><div>* Connection #0 to host localhost left intact</div><div>* Closing connection #0</div>




</div><div>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank"  href="http://127.0.0.1/v1/AUTH_prag2648/">http://127.0.0.1/v1/AUTH_prag2648/</a></div>



<div>
<div>* About to
 connect() to 127.0.0.1 port 80 (#0)</div><div>*   Trying 127.0.0.1... Connection refused</div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div>curl: (7) couldn't connect to host</div></div>




<div>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank" href="http://localhost/v1/AUTH_prag2648/">http://localhost/v1/AUTH_prag2648/</a></div>



<div>* About to connect() to localhost port 80 (#0)</div>
<div><div>*   Trying 127.0.0.1... Connection refused</div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div>curl: (7) couldn't connect to host</div></div><div>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648/">http://localhost:8080/v1/AUTH_prag2648/</a></div>




<div><div>* About to connect() to localhost port 8080 (#0)</div><div>*   Trying 127.0.0.1... connected</div><div>> GET /v1/AUTH_prag2648/ HTTP/1.1</div></div><div><div>> 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/">1.2.3.4</a> libidn/1.23 librtmp/2.3</div><div>> Host: localhost:8080</div><div>> Accept: */*</div></div><div>> X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396</div>




<div><div>> </div><div>< HTTP/1.1 503 Internal Server Error</div><div>< Content-Length: 118</div><div>< Content-Type: text/html; charset=UTF-8</div></div><div>< X-Trans-Id: txbe793299553c42f2820dc-005221728d</div>




<div>< Date: Sat, 31 Aug 2013 04:35:26 GMT</div><div><div>< </div><div>* Connection #0 to host localhost left intact</div><div>* Closing connection #0</div><div><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></div></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;">
 <div style="font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial"><div> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br>




 <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br> </div><b><span style="font-weight:bold;">Sent:</span></b> Friday, 30 August 2013 8:14 PM<br>




 <b><span style="font-weight:bold;">Subject:</span></b> Re: Fw: problem in creating account in swift<br> </font> </div><div><div> <div><br><div><div dir="ltr">yeah sorry on the ring-builder command, i'm going from memory... so... the account server isn't running - any idea why?  can you start it?<div>




<br></div><div>swift-container-server /etc/swift/container-server.conf</div>
<div><br></div><div>^ on the 10.0.2.15 host</div></div><div><br><br><div>On Fri, Aug 30, 2013 at 12:29 AM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>





<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div style="font-size:12pt;">
<span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">
  <div style="font-size:12pt;"> <div style="font-size:12pt;"><div> <div dir="ltr">
 ----- Forwarded Message -----<br>
  <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>><br> <b><span style="font-weight:bold;">To:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>> <br>





 <b><span style="font-weight:bold;">Sent:</span></b> Friday, 30 August 2013 12:54 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: problem in creating account in swift<br> </font> </div> </div><div><br><div>





<div><div><div style="font-size:12pt;"><div>hello sir,</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">

this shows problem:</div></div></div></div></div></div></div></div></blockquote></div><div style="background-color:transparent;">root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder</div><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">





<div><div><div><div><div>
<div style="background-color:transparent;"><div style="background-color:transparent;">/etc/swift/account.builder, build version 1</div><div style="background-color:transparent;">262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div>





<div style="background-color:transparent;">The minimum number of hours before a partition can be reassigned is 24</div><div style="background-color:transparent;">Devices:    id  region  zone      ip address  port  replication ip  replic</div>





<div style="background-color:transparent;"><div style="background-color:transparent;">port      name weight partitions balance meta</div><div style="background-color:transparent;">             0       1     1       10.0.2.15  6000       10.0.2.15              6000        d1 100.00     786432    0.00 </div>





<div><br></div></div></div><div><div><div style="font-style:normal;font-size:16px;background-color:transparent;">root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.ring.gz</div>
<div style="font-size:12pt;">Traceback (most recent call last):</div><div style="font-size:12pt;">
  File "/usr/local/bin/swift-ring-builder", line 5, in <module></div><div style="font-size:12pt;">    pkg_resources.run_script('swift==1.9.2', 'swift-ring-builder')</div>
<div style="font-size:12pt;">  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script</div><div style="font-size:12pt;">
   
 self.require(requires)[0].run_script(script_name, ns)</div><div style="font-size:12pt;">  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script</div>
<div style="font-size:12pt;">    execfile(script_filename, namespace, namespace)</div><div style="font-size:12pt;">
  File "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/EGG-INFO/scripts/swift-ring-builder", line 808, in <module></div><div style="font-size:12pt;">
    builder = RingBuilder.load(argv[1])</div><div style="font-size:12pt;">  File
 "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/swift/common/ring/builder.py", line 993, in load</div><div style="font-size:12pt;">
    builder = pickle.load(open(builder_file, 'rb'))</div><div style="font-size:12pt;">cPickle.UnpicklingError: invalid load key, ''.</div>
<div style="font-size:12pt;">root@arun-Aspire-5742:~# curl http://<ip>:<port></div><div style="font-size:12pt;">
-su: syntax error near unexpected token `newline'</div><div style="font-size:12pt;">root@arun-Aspire-5742:~# curl <a rel="nofollow" target="_blank"  href="http://10.0.2.15:6000/">http://10.0.2.15:6000</a></div>
<div style="font-size:12pt;"><span></span></div><div style="font-size:12pt;">curl: (7) couldn't connect to
 host</div><div style="font-size:12pt;"><br></div><div style="font-size:12pt;">Please help</div>
<div style="font-size:12pt;"><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;">
 <div style="font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br>





 <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br> <b><span style="font-weight:bold;">Sent:</span></b> Friday, 30 August 2013 12:35 PM<br>





 <b><span style="font-weight:bold;">Subject:</span></b> Re: problem in creating account in swift<br> </font> </div> <div><br><div><div dir="ltr">swift-ring-builder /etc/swift/account.ring.gz<div><br></div><div>and then</div>





<div><br></div><div>curl http://<ip>:<port></div><div><br></div><div>you can also check the proxy logs - it should have the backend requests there you could still the urls from them and make sure they match what's in the ring.</div>






<div><br></div><div>-Clay</div></div><div><br><br><div>On Thu, Aug 29, 2013 at 10:38 PM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>






<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div><span>hello sir,</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;">
<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><span>Please help me to know how to check port of account server and how can I connect to them directly.</span></div>
<div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;"> <div style="font-size:12pt;">
 <div dir="ltr"> <hr size="1"> 
 <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>><br> <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br>






 <b><span style="font-weight:bold;">Sent:</span></b> Thursday, 29 August 2013 8:59 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: problem in creating account in swift<br> </font> </div><div><div>
 <div><br><div><div dir="ltr">Probably something in the rings, maybe the wrong ports for the account servers?  Or maybe something in the account server config - what port are they on?  can you connect to them directly?  The proxy log lines would say exactly what caused the 503 - can see anything in /var/log/syslog - or maybe /var/log/swift ?</div>







<div><br><br><div>On Thu, Aug 29, 2013 at 7:01 AM, pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div style="font-size:12pt;"><span>hello sir,</span></div>

<div style="background-color:transparent;"><span><br></span></div><div style="font-size:medium;">connection is established successfully. But, when I try to create an account, I face the problem.</div><div style="font-size:medium;">







<br></div><div style="background-color:transparent;">root@arun-Aspire-5742:~# sudo swift-init account start</div><div style="font-size:medium;">Starting account-server...(/etc/swift/account-server.conf)</div><div style="font-size:medium;">







root@arun-Aspire-5742:~# sudo swift-init proxy start</div><div style="font-size:medium;">Starting proxy-server...(/etc/swift/proxy-server.conf)</div><div style="font-size:medium;">root@arun-Aspire-5742:~# 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/">http://localhost:8080/auth/v1.0/</a></div><div style="font-size:medium;">* About to connect() to localhost port 8080 (#0)</div><div style="font-size:medium;">






*   Trying 127.0.0.1... connected</div>
<div style="font-size:medium;">> GET /auth/v1.0/ HTTP/1.1</div><div style="font-size:medium;">> 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/">1.2.3.4</a> libidn/1.23 librtmp/2.3</div>







<div style="font-size:medium;">> Host: localhost:8080</div><div style="font-size:medium;">> Accept: */*</div><div style="font-size:medium;">> X-Auth-User:prag2648:pragya</div><div style="font-size:medium;">> X-Auth-Key:pj2648</div>







<div style="font-size:medium;">> </div><div style="font-size:medium;">< HTTP/1.1 200 OK</div><div style="font-size:medium;">< X-Storage-Url: <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648">http://localhost:8080/v1/AUTH_prag2648</a></div>







<div style="font-size:medium;">< X-Auth-Token:
 AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div style="font-size:medium;">< Content-Type: text/html; charset=UTF-8</div><div style="font-size:medium;">< X-Storage-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div>







<div style="font-size:medium;">< Content-Length: 0</div><div style="font-size:medium;">< X-Trans-Id: txe2ab76a7617e40399f456-00521f3d16</div><div style="font-size:medium;">< Date: Thu, 29 Aug 2013 12:22:46 GMT</div>







<div style="font-size:medium;">< </div><div style="font-size:medium;">* Connection #0 to host localhost left intact</div><div style="font-size:medium;">* Closing connection #0</div><div style="font-size:medium;">root@arun-Aspire-5742:~# python</div>







<div style="font-size:medium;">Python 2.7.3 (default, Apr 10 2013, 05:46:21) </div><div style="font-size:medium;">[GCC 4.6.3] on linux2</div><div style="font-size:medium;">Type "help", "copyright", "credits" or "license" for more
 information.</div><div style="font-size:medium;"><div>>>> import swift.common.memcached as memcached</div><div>>>> memcache = memcached.MemcacheRing(['127.0.0.1:11211'])</div><div>>>> print memcache.get('AUTH_/user/prag2648:pragya')</div>







<div>AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div>>>> print memcache.get('AUTH_/token/AUTH_tk3867b7599d5346559ee0baaa09e0f40d')</div><div>[1377865366.826027, 'prag2648,prag2648:pragya,.reseller_admin,AUTH_prag2648']</div>







<div>>>> </div><div><div>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' <a rel="nofollow" target="_blank"  href="http://127.0.0.1/v1/Auth_prag2648/">http://127.0.0.1/v1/Auth_prag2648/</a></div>







<div>* About to connect() to 127.0.0.1 port 80 (#0)</div><div>*   Trying 127.0.0.1... Connection refused</div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div>curl: (7) couldn't connect to host</div>







<div><div>root@arun-Aspire-5742:~# curl -v -H
 'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648/">http://localhost:8080/v1/AUTH_prag2648/</a></div><div>* About to connect() to localhost port 8080 (#0)</div>







<div>*   Trying 127.0.0.1... connected</div><div>> GET /v1/AUTH_prag2648/ HTTP/1.1</div><div>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/</div></div></div></div><div style="font-size:16px;">







<div>1.2.3.4 libidn/1.23 librtmp/2.3</div><div>> Host: localhost:8080</div><div>> Accept: */*</div><div>> X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div>> </div><div>< HTTP/1.1 503 Internal Server Error</div>







<div>< Content-Length: 118</div><div>< Content-Type: text/html; charset=UTF-8</div><div>< X-Trans-Id: txd6fd9eead36e4b74b0869-00521f3efe</div><div>< Date: Thu, 29 Aug 2013 12:30:55 GMT</div><div>< </div><div>







* Connection #0 to host localhost left intact</div><div>* Closing connection
 #0</div><div><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><br></div><div>Please help me in this regard.</div>







<div><br></div><div>---</div><div><br></div><div>Pragya Jain</div></div></div></div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote></div>   </div></div></blockquote></div><br></div>





</div><br><br></div> </div> </div> </blockquote></div>   </div></div></div></div><br><br></div> </div> </div> </blockquote>   </div></div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote>




</div>   </div></div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote></div>   </div></div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote>


</div>   </div></div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote></div>   </div></div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote>
</div>   </div></div></blockquote></div><br></div></div></div><br><br></div> </div> </div> </blockquote></div>   </div></div></div><br>_______________________________________________<br>Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>Post to     : <a ymailto="mailto:openstack@lists.openstack.org" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br><br><br></div> </div> </div> </blockquote></div>   </div></body></html>