Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Test flow failed on a Mac because isolate - it's not a binary #846

Closed
Sofianebenabdallah opened this issue Mar 20, 2023 · 4 comments
Labels
🤷‍♂️🤷‍♀️ untriaged Need attention from maintainer in activepieces

Comments

@Sofianebenabdallah
Copy link

Describe the bug
I try to launch locally on a Macbook Air M2, with docker it works fine, but if I launch the project manually I got this error when I try a trigger : [21:14:36 UTC] ERROR: [7Ja2TLVT2EUeeVppu8w57] Error executing flow
err: {
"type": "Error",
"message": "Command failed: /Users/sofianebenabdallah/Documents/GitHub/activepieces/packages/backend/src/assets/isolate-arm --box-id=99 --cleanup\n/bin/sh: /Users/sofianebenabdallah/Documents/GitHub/activepieces/packages/backend/src/assets/isolate-arm: cannot execute binary file\n",
"stack":
Error: Command failed: /Users/sofianebenabdallah/Documents/GitHub/activepieces/packages/backend/src/assets/isolate-arm --box-id=99 --cleanup
/bin/sh: /Users/sofianebenabdallah/Documents/GitHub/activepieces/packages/backend/src/assets/isolate-arm: cannot execute binary file

          at ChildProcess.exithandler (node:child_process:419:12)
          at ChildProcess.emit (node:events:512:28)
          at ChildProcess.emit (node:domain:489:12)
          at maybeClose (node:internal/child_process:1098:16)
          at Socket.<anonymous> (node:internal/child_process:456:11)
          at Socket.emit (node:events:512:28)
          at Socket.emit (node:domain:489:12)
          at Pipe.<anonymous> (node:net:316:12)
  "code": 126,
  "killed": false,
  "signal": null,
  "cmd": "/Users/sofianebenabdallah/Documents/GitHub/activepieces/packages/backend/src/assets/isolate-arm --box-id=99 --cleanup"
}
@txone
Copy link

txone commented Mar 22, 2023

Command failed: /workspace/packages/backend/src/assets/isolate --box-id=99 --cleanup\nError in config file, line 2: Syntax error, expecting key=value\n

@Sofianebenabdallah
Copy link
Author

@txone Thank you. HoW can i fix it ?

@txone
Copy link

txone commented Mar 24, 2023

I fixed it, but i don't know why.
try docker-compose.dev.yml

@abuaboud abuaboud added the 🤷‍♂️🤷‍♀️ untriaged Need attention from maintainer in activepieces label Mar 28, 2023
@abuaboud
Copy link
Contributor

abuaboud commented Mar 28, 2023

I'm sorry for not replying sooner. We use a tool called "isolate" to keep the user code isolated.

To use run the project in development mode, you need to have "isolate" installed on your computer.

We suggest to use the Dev Container or any of following methods listed there.
https://www.activepieces.com/docs/contributing/development-setup/local-development

Feel free to reopen, If you still have issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️🤷‍♀️ untriaged Need attention from maintainer in activepieces
Projects
None yet
Development

No branches or pull requests

3 participants