Kirell
Kirell•3d ago

Cannot run any script Python / TS

I've just installed a fresh Windmill with coolify on my instance. I cannot run any script in any lang. Every 5 sec I see something like this: INFO request: windmill-api/src/tracing_init.rs:32: response latency=0 status=200 method=GET uri=/api/w/stid/jobs_u/getupdate/019290a9-d2d9-0f6a-dcf2-72fe624f86de?running=false&log_offset=0 trace_id="9f8692a3-3894-4199-8dd8-0d37ff46e1d1" nothings starts..
wmill script generate-metadata f/my_space/example_script.py
Generating metadata for f/my_space/example_script.py
wmill script generate-metadata f/my_space/example_script.py
Generating metadata for f/my_space/example_script.py
Also hangs forever. It seems the jobs are never actually run Any clues? Thank you
8 Replies
rubenf
rubenf•3d ago
Mostl likely you have no workers go to the workers page, anything listed there ? If not, then the coolify template is ill-defined to some degree I have no clue about coolify so we can't provide much help there
Kirell
Kirell•3d ago
No description
rubenf
rubenf•3d ago
so yes you have no workers
Kirell
Kirell•3d ago
I have 4 docker images for workers running
Kirell
Kirell•3d ago
Kirell
Kirell•3d ago
this is one worker in docker-compose.yml:
windmill-worker-1:
image: ghcr.io/windmill-labs/windmill:main
environment:
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=${MODE:-worker}
- WORKER_GROUP=${WORKER_GROUP:-default}
depends_on:
db:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- worker-dependency-cache:/tmp/windmill/cache
- worker-logs:/tmp/windmill/logs
healthcheck:
test: ["CMD-SHELL", "exit 0"]
interval: 30s
timeout: 10s
retries: 3
windmill-worker-1:
image: ghcr.io/windmill-labs/windmill:main
environment:
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=${MODE:-worker}
- WORKER_GROUP=${WORKER_GROUP:-default}
depends_on:
db:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- worker-dependency-cache:/tmp/windmill/cache
- worker-logs:/tmp/windmill/logs
healthcheck:
test: ["CMD-SHELL", "exit 0"]
interval: 30s
timeout: 10s
retries: 3
if you see something crazy, we never know 🙂 Thanks
rubenf
rubenf•3d ago
They are likely dead because of that error, are you sure they are running? you should have them restarting on exit
Kirell
Kirell•3d ago
it works! I think the restart on exit was missing thank you!!