hi Kuo,
curl command are also giving the same result.
Below are the steps which I follow with output:
-------------
1. get account detail
root@swift-VirtualBox:~# curl -v -H
'X-Auth-Token: AUTH_tk5525a1165f6f40268df460e09b9ba64b'
http://127.0.0.1:8080/v1/AUTH_prag2648
* About to connect() to 127.0.0.1 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: 127.0.0.1:8080
> Accept: */*
> X-Auth-Token:
AUTH_tk5525a1165f6f40268df460e09b9ba64b
>
< HTTP/1.1 200 OK
< Content-Length: 9
< Accept-Ranges: bytes
< X-Timestamp: 1387439464.98376
< X-Account-Bytes-Used: 0
< X-Account-Container-Count: 1
< Content-Type: text/plain;
charset=utf-8
< X-Account-Object-Count: 0
< X-Trans-Id:
txd554a374c5b540529137d-0052f9a2d5
< Date: Tue, 11 Feb 2014 04:11:01
GMT
<
minerals
* Connection #0 to host 127.0.0.1 left
intact
* Closing connection #0
2. get container detail
root@swift-VirtualBox:~#
curl -X GET
-i -H 'X-Auth-Token: AUTH_tk5525a1165f6f40268df460e09b9ba64b'
http://127.0.0.1:8080/v1/AUTH_prag2648/minerals
HTTP/1.1 200 OK
Content-Length: 49
X-Container-Object-Count: 1
Accept-Ranges: bytes
X-Timestamp: 1387439465.02723
X-Container-Bytes-Used: 22572
Content-Type: text/plain;
charset=utf-8
X-Trans-Id:
txb2459f1c5d174f5e9eb30-0052f9a565
Date: Tue, 11 Feb 2014 04:21:57 GMT
home/swift/Desktop/swift_installation_steps.docx
3. retrieve object
root@swift-VirtualBox:~# curl -X GET -i
-H 'X-Auth-Token: AUTH_tk5525a1165f6f40268df460e09b9ba64b'
http://127.0.0.1:8080/v1/AUTH_prag2648/minerals/home/swift/Desktop/swift_installation_steps.docx
HTTP/1.1 404 Not Found
Content-Length: 70
Content-Type: text/html; charset=UTF-8
X-Trans-Id:
txe1abfb8ec917421488fa3-0052f9a5a3
Date: Tue, 11 Feb 2014 04:22:59 GMT
<html><h1>Not
Found</h1><p>The resource could not be
found.</p></html>root@swift-VirtualBox:~#
------------
account detail shows object count = 0
container detail shows object count = 1
retrieve object shows 'resource could not be
found'
I can't analyse where is the actual problem.
Pragya jain
On Monday, 10 February 2014 2:57 PM, Kuo Hugo <[email protected]> wrote:
It's woking on my box.
>Perhaps you can give a try with curl command.
>
>
>
>2014-02-10 15:25 GMT+08:00 pragya jain <[email protected]>:
>
>hi all,
>>
>>
>>i create an account in swift.
>>status of account shows that there is a container and zero objects in the
>>account.
>>when I list the container, it shows an object in it.
>>But whenI am downloading the object, it shows object not found.
>>
>>
>>Below are the steps which I follow:
>>----------
>>
>>root@swift-VirtualBox:~# export ST_AUTH=http://127.0.0.1:8080/auth/v1.0
>>root@swift-VirtualBox:~# export ST_USER=prag2648:pragya
>>root@swift-VirtualBox:~# export ST_KEY=pj2648
>>root@swift-VirtualBox:~# swift stat
>> Account: AUTH_prag2648
>> Containers: 1
>> Objects: 0
>> Bytes: 0
>> Accept-Ranges: bytes
>> X-Timestamp: 1387439464.98256
>> X-Trans-Id: tx07ace110079247cfa7e27-0052f8762d
>> Content-Type: text/plain; charset=utf-8
>>root@swift-VirtualBox:~# swift list
>>minerals
>>root@swift-VirtualBox:~# swift list minerals
>>home/swift/Desktop/swift_installation_steps.docx
>>root@swift-VirtualBox:~# swift download minerals
>>home/swift/Desktop/swift_installation_steps.docx
>>Object
'minerals/home/swift/Desktop/swift_installation_steps.docx' not found
>>-----------
>>
>>
>>Please help me in finding where is the problem.
>>
>>
>>Thanks
>>
>>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
>>
>>
>
>
>
_______________________________________________
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