Dify python code execution error: No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'] error: exit status 255 #13294

Closed
opened 2026-02-21 19:11:30 -05:00 by yindo · 1 comment
Owner

Originally created by @wolfei666 on GitHub (Apr 24, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Hi team,

I am trying to run a python script to get exchange mail. I have solved the network and permission error. But I got a new error:
No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'] error: exit status 255

Image

I have checked the /tmp in sandbox, in which I can easily touch file.
drwxrwxrwt 1 root root 4096 Apr 24 05:36 tmp

I also tried to upload this python script to sandbox and run it directly and it can be executed successfully.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @wolfei666 on GitHub (Apr 24, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.2.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Hi team, I am trying to run a python script to get exchange mail. I have solved the network and permission error. But I got a new error: No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'] error: exit status 255 ![Image](https://github.com/user-attachments/assets/32696165-d543-4f4f-bf88-a85f4a55be7e) I have checked the /tmp in sandbox, in which I can easily touch file. drwxrwxrwt 1 root root 4096 Apr 24 05:36 tmp I also tried to upload this python script to sandbox and run it directly and it can be executed successfully. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 19:11:30 -05:00
Author
Owner
@crazywoola commented on GitHub (Apr 24, 2025): Add the required sys_calls accordingly. https://github.com/langgenius/dify/blob/4d38798dd561a269220f24e140878dc9a62a7a59/docker/volumes/sandbox/conf/config.yaml.example#L27-L31
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13294