Sandbox service didn't listen on 8194 port for deploying on kubernetes #2257

Closed
opened 2026-02-21 17:43:36 -05:00 by yindo · 0 comments
Owner

Originally created by @namnh13 on GitHub (Apr 16, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

v0.6.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I deployed sandbox on kubernetes but it listened on random port instead of 8194 port.

2024/04/12 22:06:07 nodejs.go:94: [INFO]nodejs runner environment initialized
2024/04/12 22:06:07 python.go:32: [INFO]initializing python runner environment...
2024/04/12 22:06:07 python.go:45: [INFO]python runner environment initialized
2024/04/12 22:06:07 server.go:18: [INFO]config init success
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

2024/04/12 22:06:07 cocrrent.go:31: [INFO]setting max requests to 50
2024/04/12 22:06:07 cocrrent.go:13: [INFO]setting max workers to 4
[GIN-debug] POST   /v1/sandbox/run           --> github.com/langgenius/dify-sandbox/internal/controller.RunSandboxController (6 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on :0

✔️ Expected Behavior

The sandbox listened on 8194 port.

Actual Behavior

The sandbox listened on random port

Originally created by @namnh13 on GitHub (Apr 16, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version v0.6.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I deployed [sandbox](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml#L316) on kubernetes but it listened on random port instead of 8194 port. ``` 2024/04/12 22:06:07 nodejs.go:94: [INFO]nodejs runner environment initialized 2024/04/12 22:06:07 python.go:32: [INFO]initializing python runner environment... 2024/04/12 22:06:07 python.go:45: [INFO]python runner environment initialized 2024/04/12 22:06:07 server.go:18: [INFO]config init success [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode) 2024/04/12 22:06:07 cocrrent.go:31: [INFO]setting max requests to 50 2024/04/12 22:06:07 cocrrent.go:13: [INFO]setting max workers to 4 [GIN-debug] POST /v1/sandbox/run --> github.com/langgenius/dify-sandbox/internal/controller.RunSandboxController (6 handlers) [GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details. [GIN-debug] Listening and serving HTTP on :0 ``` ### ✔️ Expected Behavior The sandbox listened on 8194 port. ### ❌ Actual Behavior The sandbox listened on random port
yindo added the 🐞 bug label 2026-02-21 17:43:36 -05:00
yindo closed this issue 2026-02-21 17:43:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2257