External Publication
Visit Post

How should I write to bucket from a space

Hugging Face Forums [Unofficial] April 10, 2026
Source

I’m sure mkdir and touch in /data fail.

and when I execute

print(runtime)
print(runtime.volumes)

I got

SpaceRuntime(stage='APP_STARTING', hardware=None, requested_hardware='zero-a10g', sleep_time=172800, storage=None, hot_reloading=None, raw={'stage': 'APP_STARTING', 'hardware': {'current': None, 'requested': 'zero-a10g'}, 'gcTimeout': 172800, 'replicas': {'requested': 1}, 'devMode': False, 'domains': [{'domain': 'qqnyanddld-its-my-party-time.hf.space', 'stage': 'READY'}]})

Traceback (most recent call last):
  File "/home/user/app/app.py", line 36, in <module>
    eprint(runtime.volumes)
           ^^^^^^^^^^^^^^^
AttributeError: 'SpaceRuntime' object has no attribute 'volumes'

and I checked the document, volumes should exist.

this is super weird. I can run ls /data and cat /data/x successfully, which means the bucket is mounted, but I cannot view it through the SpaceRuntime endpoint.

and I still don’t understand why ls -l /data would show

drwxr-xr-x. 2 nobody nogroup 0 Apr 9 12:20 data

seems like the owner:group config is somehow wrong?

Discussion in the ATmosphere

Loading comments...