Ken Stillson
unread,Jan 7, 2011, 6:00:29 PM1/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Storage for Developers
I've got an automated script that's uploading changed files on one of
my servers. It's uploaded many thousands of files, and generally
works fine.
However, I'm consistently getting "[Errno 28] No space left on
device" for several particular files, even though I've only used 70gb
of my 100gb limit (according to the key management page).
one of the files is large (1.6gb), but the other is only 11mb- no
where near the largest file I have uploaded.
my script is in Python, using the boto library.. The actual failing
code looks something like this:
src_key = boto.storage_uri(src, "file").get_key()
size = os.path.getsize(src)
dst_url = boto.storage_uri("%s/%s" % (bucket, dest), "gs", True)
dst_key = dst_url.new_key()
tmp = tempfile.TemporaryFile()
src_key.get_file(tmp)
tmp.seek(0)
dst_key.set_contents_from_file(tmp)
Interesting, the copy works (at least for the smaller file) if I do it
"manually" with gsutil cp.
Any thoughts? Thanks!
- Ken