← Back to team overview

openstack team mailing list archive

Re: How to debug a Swift's "not found" error while downloading a file?

 

Thanks Chuck,

this helped me a lot to figure out what was going on.

Regards,
Giuseppe


2013/2/13 Chuck Thier <cthier@xxxxxxxxx>:
> Hi Giuseppe,
>
> The first thing you can do is use the swift-get-nodes utility to find
> out where those objects would normally be located.  In your case it
> will look something like:
>
> swift-get-nodes /etc/swift/object.ring.gz AUTH_ACCOUNTHASH images
> 8ab06434-5152-4563-b122-f293fd9af465
>
> Of course substituting the correct info for the account.
>
>
> --
> Chuck
>
> On Wed, Feb 13, 2013 at 6:32 AM, Giuseppe Civitella
> <giuseppe.civitella@xxxxxxxxx> wrote:
>> Hi all,
>>
>> I'm receiving an error "not found" while trying to download a file
>> from a Swift container. This happens even if I can see that file when
>> listing the container's content.
>> I was wondering which is the best way to inspect the problem and
>> manually recover the file when this kind of things happen.
>>
>> This is the command output:
>>
>> gcivitella@arale:~/Lab/openstack/nova$ swift -V 2 -A
>> http://folsom.xxx.it:5000/v2.0 -U service:glance -K xxx list images
>> 325f4900-649a-459f-b509-a08ad5bc95b3
>> 83bd8ac7-48a1-4f1f-9695-0ad255d72132
>> 8ab06434-5152-4563-b122-f293fd9af465
>> be44d07b-9a64-427b-9b27-3cad99ae8cda
>> c13018d6-46a2-4a6a-9df6-7976f8b44aaa
>> f3f64460-3486-49e1-8320-78abecd0c1b9
>>
>> gcivitella@arale:~/Lab/openstack/nova$ swift -V 2 -A
>> http://folsom.xxx.it:5000/v2.0 -U service:glance -K xxx download
>> images 8ab06434-5152-4563-b122-f293fd9af465
>> Object 'images/8ab06434-5152-4563-b122-f293fd9af465' not found
>>
>> Thanks a lot
>> Giuseppe
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp


References