The sandbox service has a certain error rate. #17589

Closed
opened 2026-02-21 19:37:16 -05:00 by yindo · 0 comments
Owner

Originally created by @Kain-90 on GitHub (Sep 17, 2025).

Originally assigned to: @Yeuoly, @crazywoola on GitHub.

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.8.1

Cloud or Self Hosted

Cloud

Steps to reproduce

After deploying the latest version of Dify myself, I found that the code node often encounters issues during long-term, high-volume calls. The most common problem is timeout errors. Even though I have modified the relevant parameters to 60 seconds, the actual code execution time shouldn't reach 60 seconds. Therefore, I conducted tests on the online version to check whether this node indeed has a certain failure rate. I believe your backend must frequently receive sandbox-related error reports as well. I want to know if there's any method to ensure it can succeed 100% of the time.

app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat
  name: test
  use_icon_as_answer_icon: false
dependencies: []
kind: app
version: 0.4.0
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions: []
      allowed_file_types:
      - image
      - document
      allowed_file_upload_methods:
      - local_file
      enabled: true
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 1
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: code
        targetType: iteration
      id: 1758087440507-source-1758087479356-target
      source: '1758087440507'
      sourceHandle: source
      target: '1758087479356'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: iteration
        targetType: answer
      id: 1758087479356-source-1748323500646-target
      selected: false
      source: '1758087479356'
      sourceHandle: source
      target: '1748323500646'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: true
        isInLoop: false
        iteration_id: '1758087479356'
        sourceType: iteration-start
        targetType: code
      id: 1758087479356start-source-1758087505082-target
      source: 1758087479356start
      sourceHandle: source
      target: '1758087505082'
      targetHandle: target
      type: custom
      zIndex: 1002
    - data:
        isInLoop: false
        sourceType: start
        targetType: code
      id: 1728455990246-source-1758087440507-target
      source: '1728455990246'
      sourceHandle: source
      target: '1758087440507'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: Start
        type: start
        variables: []
      height: 54
      id: '1728455990246'
      position:
        x: 297.1428571428571
        y: 287
      positionAbsolute:
        x: 297.1428571428571
        y: 287
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        answer: '{{#1758087479356.output#}}'
        desc: ''
        selected: false
        title: Answer
        type: answer
        variables: []
      height: 105
      id: '1748323500646'
      position:
        x: 1506
        y: 287
      positionAbsolute:
        x: 1506
        y: 287
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        code: "\ndef main() -> dict:\n    return {\n        \"result\": [\"\"] * 100,\n\
          \    }\n"
        code_language: python3
        desc: ''
        outputs:
          result:
            children: null
            type: array[string]
        selected: false
        title: 代码执行 2
        type: code
        variables: []
      height: 54
      id: '1758087440507'
      position:
        x: 634
        y: 287
      positionAbsolute:
        x: 634
        y: 287
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        error_handle_mode: terminated
        is_parallel: true
        iterator_input_type: array[string]
        iterator_selector:
        - '1758087440507'
        - result
        output_selector:
        - '1758087505082'
        - result
        output_type: array[string]
        parallel_nums: 10
        selected: true
        start_node_id: 1758087479356start
        title: 迭代
        type: iteration
        width: 388
      height: 148
      id: '1758087479356'
      position:
        x: 938
        y: 287
      positionAbsolute:
        x: 938
        y: 287
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 388
      zIndex: 1
    - data:
        desc: ''
        isInIteration: true
        selected: false
        title: ''
        type: iteration-start
      draggable: false
      height: 48
      id: 1758087479356start
      parentId: '1758087479356'
      position:
        x: 24
        y: 68
      positionAbsolute:
        x: 962
        y: 355
      selectable: false
      sourcePosition: right
      targetPosition: left
      type: custom-iteration-start
      width: 44
      zIndex: 1002
    - data:
        code: "\ndef main() -> dict:\n    return {\n        \"result\": \"\",\n  \
          \  }\n"
        code_language: python3
        desc: ''
        isInIteration: true
        isInLoop: false
        iteration_id: '1758087479356'
        outputs:
          result:
            children: null
            type: string
        selected: false
        title: 代码执行 2
        type: code
        variables: []
      height: 54
      id: '1758087505082'
      parentId: '1758087479356'
      position:
        x: 128
        y: 68
      positionAbsolute:
        x: 1066
        y: 355
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
      zIndex: 1002
    viewport:
      x: -70.39999999999986
      y: 220.8
      zoom: 0.7

✔️ Expected Behavior

I hope no mistakes occur.

Actual Behavior

Run failed: error: operation not permitted

Code execution service is unavailable

Image Image
Originally created by @Kain-90 on GitHub (Sep 17, 2025). Originally assigned to: @Yeuoly, @crazywoola on GitHub. ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.8.1 ### Cloud or Self Hosted Cloud ### Steps to reproduce After deploying the latest version of Dify myself, I found that the code node often encounters issues during long-term, high-volume calls. The most common problem is timeout errors. Even though I have modified the relevant parameters to 60 seconds, the actual code execution time shouldn't reach 60 seconds. Therefore, I conducted tests on the online version to check whether this node indeed has a certain failure rate. I believe your backend must frequently receive sandbox-related error reports as well. I want to know if there's any method to ensure it can succeed 100% of the time. ```yaml app: description: '' icon: 🤖 icon_background: '#FFEAD5' mode: advanced-chat name: test use_icon_as_answer_icon: false dependencies: [] kind: app version: 0.4.0 workflow: conversation_variables: [] environment_variables: [] features: file_upload: allowed_file_extensions: [] allowed_file_types: - image - document allowed_file_upload_methods: - local_file enabled: true fileUploadConfig: audio_file_size_limit: 50 batch_count_limit: 5 file_size_limit: 15 image_file_size_limit: 10 video_file_size_limit: 100 workflow_file_upload_limit: 10 image: enabled: false number_limits: 3 transfer_methods: - local_file - remote_url number_limits: 1 opening_statement: '' retriever_resource: enabled: true sensitive_word_avoidance: enabled: false speech_to_text: enabled: false suggested_questions: [] suggested_questions_after_answer: enabled: false text_to_speech: enabled: false language: '' voice: '' graph: edges: - data: isInIteration: false isInLoop: false sourceType: code targetType: iteration id: 1758087440507-source-1758087479356-target source: '1758087440507' sourceHandle: source target: '1758087479356' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: iteration targetType: answer id: 1758087479356-source-1748323500646-target selected: false source: '1758087479356' sourceHandle: source target: '1748323500646' targetHandle: target type: custom zIndex: 0 - data: isInIteration: true isInLoop: false iteration_id: '1758087479356' sourceType: iteration-start targetType: code id: 1758087479356start-source-1758087505082-target source: 1758087479356start sourceHandle: source target: '1758087505082' targetHandle: target type: custom zIndex: 1002 - data: isInLoop: false sourceType: start targetType: code id: 1728455990246-source-1758087440507-target source: '1728455990246' sourceHandle: source target: '1758087440507' targetHandle: target type: custom zIndex: 0 nodes: - data: desc: '' selected: false title: Start type: start variables: [] height: 54 id: '1728455990246' position: x: 297.1428571428571 y: 287 positionAbsolute: x: 297.1428571428571 y: 287 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: answer: '{{#1758087479356.output#}}' desc: '' selected: false title: Answer type: answer variables: [] height: 105 id: '1748323500646' position: x: 1506 y: 287 positionAbsolute: x: 1506 y: 287 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "\ndef main() -> dict:\n return {\n \"result\": [\"\"] * 100,\n\ \ }\n" code_language: python3 desc: '' outputs: result: children: null type: array[string] selected: false title: 代码执行 2 type: code variables: [] height: 54 id: '1758087440507' position: x: 634 y: 287 positionAbsolute: x: 634 y: 287 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' error_handle_mode: terminated is_parallel: true iterator_input_type: array[string] iterator_selector: - '1758087440507' - result output_selector: - '1758087505082' - result output_type: array[string] parallel_nums: 10 selected: true start_node_id: 1758087479356start title: 迭代 type: iteration width: 388 height: 148 id: '1758087479356' position: x: 938 y: 287 positionAbsolute: x: 938 y: 287 selected: true sourcePosition: right targetPosition: left type: custom width: 388 zIndex: 1 - data: desc: '' isInIteration: true selected: false title: '' type: iteration-start draggable: false height: 48 id: 1758087479356start parentId: '1758087479356' position: x: 24 y: 68 positionAbsolute: x: 962 y: 355 selectable: false sourcePosition: right targetPosition: left type: custom-iteration-start width: 44 zIndex: 1002 - data: code: "\ndef main() -> dict:\n return {\n \"result\": \"\",\n \ \ }\n" code_language: python3 desc: '' isInIteration: true isInLoop: false iteration_id: '1758087479356' outputs: result: children: null type: string selected: false title: 代码执行 2 type: code variables: [] height: 54 id: '1758087505082' parentId: '1758087479356' position: x: 128 y: 68 positionAbsolute: x: 1066 y: 355 selected: false sourcePosition: right targetPosition: left type: custom width: 244 zIndex: 1002 viewport: x: -70.39999999999986 y: 220.8 zoom: 0.7 ``` ### ✔️ Expected Behavior I hope no mistakes occur. ### ❌ Actual Behavior `Run failed: error: operation not permitted` `Code execution service is unavailable` <img width="683" height="202" alt="Image" src="https://github.com/user-attachments/assets/3f9152d5-cf80-44e0-baca-91b87d9613f7" /> <img width="1245" height="797" alt="Image" src="https://github.com/user-attachments/assets/fa2a1c19-dda7-4cf1-964d-e85f73dda60a" />
yindo added the 🐞 bugcloud labels 2026-02-21 19:37:16 -05:00
yindo closed this issue 2026-02-21 19:37:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#17589