External Publication
Visit Post

Spaces Persistent Storage Upgrade Not Accessible

Hugging Face Forums [Unofficial] April 7, 2026
Source

I have two python-gradio spaces that use persistent storage, which I have converted to use buckets.

To access stored files my python code does this:

from pathlib import Path

dp = Path(‘/data’) dp.mkdir(exist_ok=True) dataDir = ‘/data/’

foo_path = dataDir + ‘foo.txt’

with open(foo_path, ‘rt’) as fp:

lines = fp.readlines()

etc.

This worked fine under the old presistent storage system. And it worked fine after I set up a mounted bucket in settings with

/data

as the path. BUT only for several hours. Now I’m getting input/output errors (errno 5) when attempting to access the bucket files. Buckets are public if that makes a difference. And the files I expect to be in the bucket are there.

I’m now doing factory rebuilds on the two spaces and they’re both stuck on restarting. Now one of them says runtime error: Scheduling failure: unable to schedule (???)

And other says runtime error: Error: BodyStreamBuffer was aborted (???)

these errors are in the Container log.

I wonder if the mkdir call is a problem because the bucket is already mounted?

Or do I need a completely different method to access the bucket in Python?

Discussion in the ATmosphere

Loading comments...