tim
tim
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
I solved this by upgrading the system from Centos 7 to Rocky Linux 8. Really appreciate your help!
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
After removing the
worker_dependency_cache
worker_dependency_cache
and
worker_logs
worker_logs
, still having the same error when deploying new bun script
job=01957638-f2bb-b7cb-6238-488cb16750fc tag=bun worker=wk-default-42e890aec2d2-XWzal hostname=42e890aec2d2

error: Unexpected reading "/tmp/windmill/wk-default-42e890aec2d2-XWzal/01957638-f2bb-b7cb-6238-488cb16750fc/build.js"

Bun v1.2.3 (Linux x64 baseline)
Non-zero exit status for bun build: 1
job=01957638-f2bb-b7cb-6238-488cb16750fc tag=bun worker=wk-default-42e890aec2d2-XWzal hostname=42e890aec2d2

error: Unexpected reading "/tmp/windmill/wk-default-42e890aec2d2-XWzal/01957638-f2bb-b7cb-6238-488cb16750fc/build.js"

Bun v1.2.3 (Linux x64 baseline)
Non-zero exit status for bun build: 1
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
I saw the worker is configured with these "cache" and "logs" 2 volumes, doesn't seems to be relevant to the error message like "/tmp/windmill/wk-default-cdbe7a8fd670-vi95I/0195394b-643d-3729-5eba-2d400a8cd5cc/build.js".
windmill_worker:
image: ${WM_IMAGE}
pull_policy: always
deploy:
replicas: 3
resources:
limits:
cpus: "1"
memory: 2048M
# for GB, use syntax '2Gi'
restart: unless-stopped
environment:
- DATABASE_URL=${DATABASE_URL}
- MODE=worker
- WORKER_GROUP=default
depends_on:
db:
condition: service_healthy
# to mount the worker folder to debug, KEEP_JOB_DIR=true and mount /tmp/windmill
volumes:
# mount the docker socket to allow to run docker containers from within the workers
- /var/run/docker.sock:/var/run/docker.sock
- worker_dependency_cache:/tmp/windmill/cache
- worker_logs:/tmp/windmill/logs
logging: *default-logging
windmill_worker:
image: ${WM_IMAGE}
pull_policy: always
deploy:
replicas: 3
resources:
limits:
cpus: "1"
memory: 2048M
# for GB, use syntax '2Gi'
restart: unless-stopped
environment:
- DATABASE_URL=${DATABASE_URL}
- MODE=worker
- WORKER_GROUP=default
depends_on:
db:
condition: service_healthy
# to mount the worker folder to debug, KEEP_JOB_DIR=true and mount /tmp/windmill
volumes:
# mount the docker socket to allow to run docker containers from within the workers
- /var/run/docker.sock:/var/run/docker.sock
- worker_dependency_cache:/tmp/windmill/cache
- worker_logs:/tmp/windmill/logs
logging: *default-logging
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
What do you mean by removing the mounts? Do I have to remove the mount for the docker local volume and then reattached?
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
Yes, I am running in a standard virtual machine, the deploy and run of Deno script have no problem creating new folder and file under
/tmp/windmill
/tmp/windmill
directory. Just as Josh mentioned, all new deploy and old script executions failed for bun.
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
Deno is doing fine, but the bun environment seems to be broken, is there manual way to reconfigure the bun dependencies? Or is there any logs I could look into further? I am currently switching to deno for all scripts, but I think it is worth look into this issue.
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
No description
17 replies
WWindmill
Created by Josh on 2/24/2025 in #help
Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
I just have the same issue, I was upgrading from old docker compose, aftering running docker compose pull and restart the server, both bun and deno scripts are unable to deploy and execute.
17 replies