You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by Luciano Pacheco <lu...@bex.com.au> on 2012/05/29 07:16:33 UTC

[dev] Error uploading empty file using nine fold (Atmos storage driver)

Hi guys,

I've started using libclound to script my backup to nine fold.

I got a possible bug, when I try to upload a file that is empty (no
content, 0 bytes), it gives me:
exception:AtmosError() - 1003: "The requested object was not found."

However, I printout the body of response and I got:
<Error>
<Code>1002</Code>
 <Message>One or more arguments in the request was invalid.</Message>
</Error>

If I put any content in the file it works as usual.

I'm here to ask help to fix the problem.

1 - How is the best way to try to write a test to this case?
2 - Where can I find a documentation of the Atmos protocol ?
Because for me seems that our libcloud.storage.atmos is generating an
invalid request for empty files, but I don't know what is a valid request.
The fact of using "chunks" made a little bit confuse for me (a newbie in
libcloud) to figure out what should be a proper request.

[],
Luciano Pacheco

Re: [dev] Error uploading empty file using nine fold (Atmos storage driver)

Posted by Tomaž Muraus <to...@apache.org>.
Hi,

I haven't done much work on the Ninefold storage driver so I'm not that
familiar with it, but you can find API docs at
https://ninefold.com/support/download/attachments/1212608/ninefold-storage-API-v1.0.pdf?version=1&modificationDate=1303173287000

One thing which would also help us troubleshoot this problem is including
the debug output here:

LIBCLOUD_DEBUG=/dev/stderr python my_script.py

Don't forget to remove your API credentials from the debug output before
posting it here.

On Mon, May 28, 2012 at 10:16 PM, Luciano Pacheco <lu...@bex.com.au>wrote:

> Hi guys,
>
> I've started using libclound to script my backup to nine fold.
>
> I got a possible bug, when I try to upload a file that is empty (no
> content, 0 bytes), it gives me:
> exception:AtmosError() - 1003: "The requested object was not found."
>
> However, I printout the body of response and I got:
> <Error>
> <Code>1002</Code>
>  <Message>One or more arguments in the request was invalid.</Message>
> </Error>
>
> If I put any content in the file it works as usual.
>
> I'm here to ask help to fix the problem.
>
> 1 - How is the best way to try to write a test to this case?
> 2 - Where can I find a documentation of the Atmos protocol ?
> Because for me seems that our libcloud.storage.atmos is generating an
> invalid request for empty files, but I don't know what is a valid request.
> The fact of using "chunks" made a little bit confuse for me (a newbie in
> libcloud) to figure out what should be a proper request.
>
> [],
> Luciano Pacheco
>