keep getting error number 28: No space left on device, although I'm no where near my limit

477 views
Skip to first unread message

Ken Stillson

unread,
Jan 7, 2011, 6:00:29 PM1/7/11
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

Jerjou Cheng

unread,
Jan 7, 2011, 6:10:16 PM1/7/11
to gs-dis...@googlegroups.com
Hello-

Do you know at what line of code you get the failure at? The error message you're getting doesn't look like an error you're getting from the network, and looking at the code, it looks like it creates a temporary file on a local partition. Maybe your /tmp partition doesn't have enough space for the temporary file?

Cheers,
-Jerjou


--
You received this message because you are subscribed to the Google Groups "Google Storage for Developers" group.
To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.




--
Developer Programs Engineer
Google Storage

Ken Stillson

unread,
Jan 8, 2011, 3:31:40 AM1/8/11
to Google Storage for Developers
Hey Jerjou,

Thanks- that's probably it. Now that I see the alternate method, I'll
change my Python to use set_contents_from_filename, and hopefully
that'll get around the tmp space issue. Thanks again!

- Ken
Reply all
Reply to author
Forward
0 new messages