langgenius / dify-sandbox

A lightweight, fast, and secure code execution environment that supports multiple programming languages
https://docs.dify.ai/development/backend/sandbox
Apache License 2.0
434 stars 97 forks source link

Occasionally "Operation not permitted" #99

Open Kain-90 opened 1 month ago

Kain-90 commented 1 month ago

I have read the issue

But my problem is different, with the same parameters, sometimes my code execution block can be successful, but sometimes it reports an error: Operation not allowed

I am also unable to find the relevant execution logs, and I have encountered the same problem while trying to upgrade the version. I have not found a stable reproduce logic, it interrupts the workflow execution every time it appears.

BTW, I'm using a self-hosted deployment method, and the version is 0.6.16.

The simplest step for reproduction:

  1. Create the example code execution block
  2. Rapidly click "Run this step" multiple times (about 10 to 30 times)
image image
law52525 commented 3 weeks ago

I have the same situation. Whether I use the newest code or the code of version 0.2.10, this problem sometimes happens. And I notice that when there are a lot of concurrent requests, this problem is very likely to appear.