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

Node run failed: error: operation not permitted #53

Open yuweimian-shy opened 2 months ago

yuweimian-shy commented 2 months ago

I followed the steps in FAQ.md and got the following error at step2, anyone else having the same problem? 微信图片_20240830103620

yuweimian-shy commented 2 months ago

When I run this test file alone, I get the following error 微信图片_20240830110409

Hanfee commented 2 months ago

Please show your test.py ,

Before test your python script, please read the README.md

yuweimian-shy commented 2 months ago

Please show your test.py ,

Before test your python script, please read the README.md

i just add “import numpy” before main function following the FAQ.md, The rest is unchanged. Is that right? or i need to change my code? 企业微信截图_17250069512128

Hanfee commented 2 months ago

Is the user sandbox present on your platform?

uid=65537(sandbox) gid=59846(sandbox) group=59846(sandbox) — This system call execution is bound to the sandbox user.

athmey commented 2 months ago

Is the user sandbox present on your platform?

uid=65537(sandbox) gid=59846(sandbox) group=59846(sandbox) — This system call execution is bound to the sandbox user.

yes, currently the sandbox is on the platform.(目前正在服务器上配置sandbox的环境) OS:Ubuntu20.04 CPU arch: amd64

Following the instructions: 1.Clone the repository using git clone https://github.com/langgenius/dify-sandbox and navigate to the project directory. 2.Run ./install.sh to install the necessary dependencies. 3.Run ./build/build_[amd64|arm64].sh to build the sandbox binary. 4.Run ./main to start the server.

while doing the "./main", the output is like this: res

How to solve the error:[ERROR]failed to start pip3

Hanfee commented 2 months ago

@athmey Please sure pip3 command is exists ?If not, please install it first

athmey commented 2 months ago

@athmey Please sure pip3 command is exists ?If not, please install it first

Thank you so much