{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibwj2ne3xfmn5s2uzxa3vwtjg5eqphksno5mcojymwkpknoqj5n4u",
"uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mj4rqtt57pj2"
},
"path": "/t/how-should-i-write-to-bucket-from-a-space/175123#post_3",
"publishedAt": "2026-04-10T01:34:12.000Z",
"site": "https://discuss.huggingface.co",
"textContent": "I’m sure `mkdir` and `touch` in `/data` fail.\n\nand when I execute\n\n\n print(runtime)\n print(runtime.volumes)\n\n\nI got\n\n\n 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'}]})\n\n Traceback (most recent call last):\n File \"/home/user/app/app.py\", line 36, in <module>\n eprint(runtime.volumes)\n ^^^^^^^^^^^^^^^\n AttributeError: 'SpaceRuntime' object has no attribute 'volumes'\n\n\nand I checked the document, `volumes` should exist.\n\nthis 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.\n\nand I still don’t understand why `ls -l /data` would show\n\n`drwxr-xr-x. 2 nobody nogroup 0 Apr 9 12:20 data`\n\nseems like the owner:group config is somehow wrong?",
"title": "How should I write to bucket from a space"
}