windmill-labs / windmill

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.
https://windmill.dev
Other
10.1k stars 493 forks source link

bug: Undefined error with setup and signal 5 #4311

Open TheDan64 opened 2 months ago

TheDan64 commented 2 months ago

Describe the bug

When setting up a new instance, and setting admin credentials I get the error in the UI:

There were an error with your setup:
undefined

In the worker node logs, I see:

Aug 31 14:36:46 windmill windmill-worker[5991]: 2024-08-31T14:36:46.954853Z  INFO worker: windmill-worker/src/worker.rs:1661: fetched job 0191a8dd-ffdf-75d0-fbca-2226067991b0, root job: none workspace_id=admins job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0 root_id=none worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2
Aug 31 14:36:46 windmill windmill-worker[5991]: 2024-08-31T14:36:46.968166Z  INFO worker:job: windmill-worker/src/common.rs:576: wk-default-3589f6959dc2-HpXyI/0191a8dd-ffdf-75d0-fbca-2226067991b0 in admins worker memory snapshot 22060kB/9164kB worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2 job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0
Aug 31 14:36:46 windmill windmill-worker[5991]: 2024-08-31T14:36:46.970850Z  INFO worker:job: windmill-worker/src/common.rs:595: wk-default-3589f6959dc2-HpXyI/0191a8dd-ffdf-75d0-fbca-2226067991b0 in admins still running.  mem: 896kB, peak mem: 896kB worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2 job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0
Aug 31 14:36:47 windmill windmill-worker[5991]: 2024-08-31T14:36:47.055363Z  INFO worker:job: windmill-worker/src/common.rs:1166: child process 'deno run' took 92ms job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0 success=false mem_peak=896 worker=wk-default-3589f6959dc2-HpXyI worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2 job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0
Aug 31 14:36:47 windmill windmill-worker[5991]: 2024-08-31T14:36:47.055433Z  INFO worker:job: windmill-worker/src/worker.rs:3175: finished Deno job 0191a8dd-ffdf-75d0-fbca-2226067991b0 workspace_id=admins is_ok=false worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2 job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0
Aug 31 14:36:47 windmill windmill-worker[5991]: 2024-08-31T14:36:47.055490Z ERROR worker:completed_job: windmill-queue/src/jobs.rs:508: job 0191a8dd-ffdf-75d0-fbca-2226067991b0 did not succeed: {"error":{"message":"error during execution of the script:\nprocess terminated by signal: Some(\n    5,\n), stopped_signal: None, core_dumped: false","name":"ExecutionErr"}} worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2 job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0
Aug 31 14:36:47 windmill windmill-worker[5991]: 2024-08-31T14:36:47.059695Z  INFO worker:completed_job: windmill-queue/src/jobs.rs:835: inserted completed job: 0191a8dd-ffdf-75d0-fbca-2226067991b0 (success: false) job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0 root_job="" path="g/all/setup_app/Change_Account" job_kind=Preview started_at="2024-08-31 14:36:46.952009 UTC" duration=104 permissioned_as="admin@windmill.dev" email="admin@windmill.dev" created_by="admin@windmill.dev" is_flow_step=false language=Some(Deno) success=false worker=wk-default-3589f6959dc2-HpXyI hostname=3589f6959dc2 job_id=0191a8dd-ffdf-75d0-fbca-2226067991b0

To reproduce

  1. Go to 'setup_app' page
  2. Click on 'Set admin account and hub sync'
  3. See error

Expected behavior

Expected the button press to be successful

Screenshots

image

Browser information

FF 129.0.2

Application version

1.388.0

Additional Context

May or may not be relevant, but I'm running the worker and server nodes in rootless podman instances

rubenfiszel commented 2 months ago

Try with docker instead of podman. Signal 5 is SIGTRAP which is very strange here

makkus commented 1 month ago

Same error here, I'm using docker.

If it makes any difference, this error is shown in the browser console:


{name: 'ExecutionErr', message: 'ExitCode: 1, last log lines:\nDownload https://deno…01925856-05c4-ff83-d785-6ef1a26092b3/main.ts:1:24'}
message
: 
"ExitCode: 1, last log lines:\nDownload https://deno.land/x/windmill@v1.99.0/mod.ts\nerror: Import 'https://deno.land/x/windmill@v1.99.0/mod.ts' failed: error sending request for url (https://deno.land/x/windmill@v1.99.0/mod.ts): client error (Connect): Connection reset by peer (os error 104)\n    at file:///tmp/windmill/wk-default-828a067da919-QwxUz/01925856-05c4-ff83-d785-6ef1a26092b3/main.ts:1:24"
name
: 
"ExecutionErr"