Open shadididi opened 2 weeks ago
@shadididi Hello there! 👋 I'm here to help you with bug reports, answer questions, and guide you to become a contributor. Let's tackle this together!
I found similar issues and discussions related to the "operation not permitted" error in JavaScript code blocks within Dify workflows. Here are some relevant threads and their suggested solutions:
Similar Issues and Discussions:
Suggested Solutions:
volumes
section in your docker-compose.yaml
file correctly maps the host directories to the container directories and that the permissions are set correctly.chmod
command to set the correct permissions on the host directories.JavaScript Code Execution Constraints:
The "operation not permitted" error in your JavaScript code block is likely due to the restrictions and validations imposed by the DifySandbox
environment. Here are some potential reasons:
dify_config.CODE_MAX_STRING_ARRAY_LENGTH
.dify_config.CODE_MAX_NUMBER
and dify_config.CODE_MIN_NUMBER
.dify_config.CODE_MAX_PRECISION
.dify_config.CODE_MAX_DEPTH
.dify_config.CODE_MAX_NUMBER_ARRAY_LENGTH
, dify_config.CODE_MAX_STRING_ARRAY_LENGTH
, dify_config.CODE_MAX_OBJECT_ARRAY_LENGTH
).Review the constraints defined in the dify_config
and ensure that your JavaScript code adheres to these constraints. Additionally, ensure that your code does not attempt to perform any restricted operations that are not permitted in the sandboxed environment [1][2][3].
To continue talking to Dosu, mention @dosu.
I was unable to reproduce it using version 0.7.2.
I was unable to reproduce it using version 0.7.2.
that was confusing, just doesn't work in JS. I manually download the source file with tag 0.7.2 in my Mac, and just enter the docker dir of the project, execute docker compose up -d
. Are there some steps that I missed?
same error. mac m1 pro,dify verision 0.7.2,Docker version 26.1.3, build b72abbb
I was unable to reproduce it using version 0.7.2.
that was confusing, just doesn't work in JS. I manually download the source file with tag 0.7.2 in my Mac, and just enter the docker dir of the project, execute
docker compose up -d
. Are there some steps that I missed?
My deployment method is consistent with yours. My environment is Ubuntu 20.04, docker 26.0.0. dify 0.7.2
same version same issue here
Cant reproduce this as well, what's yours' sandbox version. Please try to upgrade to 0.2.6 @jojotechs @sulgweb @shadididi
Cant reproduce this as well, what's yours' sandbox version. Please try to upgrade to 0.2.6 @jojotechs @sulgweb @shadididi
sandbox version is already 0.2.6
Sorry for the confusion, but I can not reproduce this issue after several tries, and basic checks for nodejs all passes on Github actions, I have no idea which permission missed on your machine.
Sorry for the confusion, but I can not reproduce this issue after several tries, and basic checks for nodejs all passes on Github actions, I have no idea which permission missed on your machine.
Have you tried in Mac machines ? I noticed that others have same problem in Mac m1 pro.
Sorry for the confusion, but I can not reproduce this issue after several tries, and basic checks for nodejs all passes on Github actions, I have no idea which permission missed on your machine.
Have you tried in Mac machines ? I noticed that others have same problem in Mac m1 pro.
I'm currently using Mac M2, maybe it's an issue related to chips? I'm not sure, I do not have a machine with M1 right now.
I have same problom on mac m1 after update to 0.7.3. sandbox image: langgenius/dify-sandbox:0.2.7
Self Checks
Dify version
0.7.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Docker version 26.1.3, build b72abbb
✔️ Expected Behavior
code block works as expected that returns the correct value of the input parameter
❌ Actual Behavior
code block throws a error
error: operation not permitted