hello sir,

Please help me to know how to check port of account server and how can I 
connect to them directly.



>________________________________
> From: Clay Gerrard <[email protected]>
>To: pragya jain <[email protected]> 
>Sent: Thursday, 29 August 2013 8:59 PM
>Subject: Re: problem in creating account in swift
> 
>
>
>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 ?
>
>
>
>On Thu, Aug 29, 2013 at 7:01 AM, pragya jain <[email protected]> wrote:
>
>hello sir,
>>
>>
>>connection is established successfully. But, when I try to create an account, 
>>I face the problem.
>>
>>
>>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 start
>>Starting proxy-server...(/etc/swift/proxy-server.conf)
>>root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 
>>'X-Auth-Key:pj2648' http://localhost:8080/auth/v1.0/
>>* 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/1.2.3.4 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: http://localhost:8080/v1/AUTH_prag2648
>>< X-Auth-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>< Content-Type: text/html; charset=UTF-8
>>< X-Storage-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>< Content-Length: 0
>>< X-Trans-Id: txe2ab76a7617e40399f456-00521f3d16
>>< Date: Thu, 29 Aug 2013 12:22:46 GMT
>>< 
>>* Connection #0 to host localhost left intact
>>* Closing connection #0
>>root@arun-Aspire-5742:~# python
>>Python 2.7.3 (default, Apr 10 2013, 05:46:21) 
>>[GCC 4.6.3] on linux2
>>Type "help", "copyright", "credits" or "license" for more information.
>>>>> import swift.common.memcached as memcached
>>>>> memcache = memcached.MemcacheRing(['127.0.0.1:11211'])
>>>>> print memcache.get('AUTH_/user/prag2648:pragya')
>>AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>>>> print memcache.get('AUTH_/token/AUTH_tk3867b7599d5346559ee0baaa09e0f40d')
>>[1377865366.826027, 'prag2648,prag2648:pragya,.reseller_admin,AUTH_prag2648']
>>>>> 
>>root@arun-Aspire-5742:~# curl -v -H 
>>'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' 
>>http://127.0.0.1/v1/Auth_prag2648/
>>* 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:~# curl -v -H 
>>'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' 
>>http://localhost:8080/v1/AUTH_prag2648/
>>* About to connect() to localhost port 8080 (#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/
>>1.2.3.4 libidn/1.23 librtmp/2.3
>>> Host: localhost:8080
>>> Accept: */*
>>> X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>> 
>>< HTTP/1.1 503 Internal Server Error
>>< Content-Length: 118
>>< Content-Type: text/html; charset=UTF-8
>>< X-Trans-Id: txd6fd9eead36e4b74b0869-00521f3efe
>>< Date: Thu, 29 Aug 2013 12:30:55 GMT
>>< 
>>* Connection #0 to host localhost left intact
>>* Closing connection #0
>><html><h1>Service Unavailable</h1><p>The server is currently unavailable. 
>>Please try again at a later time.</p></html>root@arun-Aspire-5742:~# 
>>
>>
>>Please help me in this regard.
>>
>>
>>---
>>
>>
>>Pragya Jain
>
>
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to