Sandbox network error issue : workflow code node throws sandbox network error issue while running from DEV server #48

Closed
opened 2026-02-16 05:19:02 -05:00 by yindo · 1 comment
Owner

Originally created by @gobind08 on GitHub (May 23, 2025).

Issue Description

I have setup the dify (version 0.15.3) in my local pc and same is deployed to our Dev server as well. but workflow containing code node fails to run in my DEV server due to sandbox network error, though it works fine in my local machine (localhost). we don't have our own sandbox infra in our DEV server.

can we use dify-sandbox from our DEV server somehow through proxy/whitelisting or Do we need to standup our own sandbox infra in our DEV server, to make code node work (if yes, what is configuration for sandbox we need to have and/or what is process around it) ?

Below is sandbox container config in my docker-compose in my local pc and DEV server.

# The DifySandbox
sandbox:
image: langgenius/dify-sandbox:latest
restart: always
cap_add:
# Why is sys_admin permission needed?
# https://docs.dify.ai/getting-started/install-self-hosted/install-faq#id-16.-why-is-sys_admin-permission-needed
- SYS_ADMIN
environment:
# The DifySandbox configurations
API_KEY: dify-sandbox
GIN_MODE: release
WORKER_TIMEOUT: 15
ENABLE_NETWORK: 'true'

Please refer the attached screenshot for error. Any help in this regard would be greatly appreciated.

Image
Originally created by @gobind08 on GitHub (May 23, 2025). ## Issue Description I have setup the dify (version 0.15.3) in my local pc and same is deployed to our Dev server as well. but workflow containing **code** node fails to run in **my DEV server** due to **sandbox network error**, though it works fine in my **local** machine (localhost). we don't have our own sandbox infra in our DEV server. can we use dify-sandbox from our DEV server somehow through proxy/whitelisting or Do we need to standup our **own sandbox** infra in our DEV server, to make code node work (if yes, what is configuration for sandbox we need to have and/or what is process around it) ? Below is sandbox container config in my docker-compose in my local pc and DEV server. **# The DifySandbox** sandbox: image: langgenius/dify-sandbox:latest restart: always cap_add: # Why is sys_admin permission needed? # https://docs.dify.ai/getting-started/install-self-hosted/install-faq#id-16.-why-is-sys_admin-permission-needed - SYS_ADMIN environment: # The DifySandbox configurations API_KEY: dify-sandbox GIN_MODE: release WORKER_TIMEOUT: 15 ENABLE_NETWORK: 'true' Please refer the attached screenshot for error. Any help in this regard would be greatly appreciated. <img width="1095" alt="Image" src="https://github.com/user-attachments/assets/b754c515-fa9f-43aa-a4a7-e590f7cad06e" />
yindo closed this issue 2026-02-16 05:19:02 -05:00
Author
Owner

@AllenWriter commented on GitHub (May 26, 2025):

Hi, thank you for providing the detailed problem description. But here is the documentation repo, not a technical support channel.

I’m afraid unable to address the issue you mentioned here.

You can submit your request or issue to the main Dify GitHub repository.

@AllenWriter commented on GitHub (May 26, 2025): Hi, thank you for providing the detailed problem description. But here is the documentation repo, not a technical support channel. I’m afraid unable to address the issue you mentioned here. You can submit your request or issue to the main [Dify GitHub repository](https://github.com/langgenius/dify).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs#48