Almost all executions fail with 'error: Unexpected reading "/tmp/windmill/wk-default-a8f...'
I recently deployed a new instance of Windmill using the provided docker-compose reference configurations. I'm able to log in and navigate the application, but when I attempt to execute Flows/Scripts, they all fail with error:
--- BUN INSTALL --- error: Unexpected reading "/tmp/windmill/wk-default-cdbe7a8fd670-vi95I/0195394b-643d-3729-5eba-2d400a8cd5cc/build.js" Bun v1.2.3 (Linux x64 baseline)I have not been able to find any additional logs that would indicate what's happening, and I'm not sure how to proceed. I should note that I first encountered this when trying to sync items from the hub. I have never been able to successfully do so. Most manually created test flows/scripts fail as well. Interestilngly, some do: e.g. Go seems to work while Bash does not.
11 Replies
you must be on a special setup, vanilla docker-compose works fine
maybe remove volume mounts just in case?
It is a bit special - I'm deploying on a Synology NAS, so I have volume mounts pointing to a specific folder safe for storage.
I'll try removing the mounts to see if that clears things up at least and go from there
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.
I found the path of the folder is empty. Maybe I should reset the worker?

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.
Did you remove the mounts?
And are you on a standard vps ?
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 directory. Just as Josh mentioned, all new deploy and old script executions failed for bun.
Did you remove the mounts?
What do you mean by removing the mounts? Do I have to remove the mount for the docker local volume and then reattached?
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".
After removing the and , still having the same error when deploying new bun script
No idea, try reproducing on a fresh vps on a new instance. If it was a common issue we would have heard about it a lot.
I solved this by upgrading the system from Centos 7 to Rocky Linux 8. Really appreciate your help!