dify icon indicating copy to clipboard operation
dify copied to clipboard

Occasionally "Operation not permitted"

Open Kain-90 opened this issue 1 year ago • 5 comments

Self Checks

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

Dify version

0.6.16

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  1. Create the example code execution block
  2. Rapidly click "Run this step" multiple times (about 10 to 30 times)

✔️ Expected Behavior

No error

❌ Actual Behavior

Operation not permitted

image image

Kain-90 avatar Oct 17 '24 09:10 Kain-90

@Kain-90 Hello there! I'm Dosu, a bot here to help you with bug fixes, questions, and becoming a contributor. Let's tackle this issue together while we wait for a human maintainer.

I found some similar issues and discussions related to the "Operation not permitted" error in Dify:

  1. Open Issue: Code block cannot be executed correctly in JavaScript language - This issue is still open and suggests ensuring that directories and files mounted into Docker containers have the correct permissions. It also recommends upgrading the sandbox version to 0.2.6 or later, as some users have reported issues on Mac M1 machines that might be related to the chip architecture [1].

  2. Closed Issue: Using pandas on code block: error: operation not permitted - This issue was resolved by checking the security policies and restrictions in place, as Dify uses DifySandbox to ensure security. It suggests ensuring that pandas is correctly added to the advanced dependencies and checking for any configuration issues [2].

  3. Closed Issue: Workflow run code tool error: operation not permitted - This issue was related to Docker environment permissions. It suggests checking Docker permissions, volume mounts, container user permissions, SELinux/AppArmor policies, and file system permissions. It also mentions reviewing Docker logs for additional insights [3].

For your specific case, you might want to check the permissions and configurations related to your Docker setup, as well as consider upgrading to a newer sandbox version if applicable.

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Oct 17 '24 09:10 dosubot[bot]

I've read related issues, and some people have encountered the same problem as me, that is, occasional errors, not every time, this issue is marked as complete, but in fact, FAQ does not solve my problem.

Kain-90 avatar Oct 17 '24 09:10 Kain-90

Please upgrade the sandbox to 0.2.10.

crazywoola avatar Oct 17 '24 11:10 crazywoola

Please upgrade the sandbox to 0.2.10.

Thanks for your reply.

It's been upgraded to 0.2.10, but i encountered the same issue again, and under the same reproduction conditions, another problem also emerged.

image image image

another problem

image image

Kain-90 avatar Oct 18 '24 01:10 Kain-90

Please upgrade the sandbox to 0.2.10.

Is there any progress?

Kain-90 avatar Oct 22 '24 02:10 Kain-90

Hi, @Kain-90. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a bug in Dify version 0.6.16 related to an "Operation not permitted" error when rapidly clicking "Run this step."
  • I suggested checking Docker permissions and upgrading the sandbox version.
  • You upgraded to sandbox 0.2.10, but the issue persists, along with a new problem.
  • User crazywoola suggested the upgrade, but further assistance is needed.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Nov 22 '24 16:11 dosubot[bot]

@crazywoola Hi, is it solved?

Kain-90 avatar Nov 25 '24 01:11 Kain-90

我也遇到同样的问题,无法在节点中执行代码

报错如下:

Image

使用环境 ,win11 + Docker

filwu8 avatar Mar 12 '25 03:03 filwu8