Getting a persistent error on our Code (Python) nodes in an advanced chatflow on Dify Cloud:
Got error code: -500. Got error msg: open /var/sandbox/sandbox-python/tmp/hash_id.py: no space left on device
The code node is a simple JSON parser — 10 lines of Python, no file writes, no imports beyond json. It was working fine until recently. The error started appearing after ~80 conversations in the app’s logs.
What we’ve tried:
- Re-publishing the app
- Creating a new conversation
Questions:
- Is the sandbox /tmp shared across all conversations/executions? Does it get cleaned up automatically?
- Is there a way to manually clear the sandbox temp files on Dify Cloud?
- Is there a known limit on sandbox disk space for Cloud plans?