invakid404
invakid404
WWindmill
Created by invakid404 on 2/26/2025 in #help
Intermittent 401 errors on private NPM packages
We're seeing some 401 errors in our Bun scripts during bun install of the form:
bun install v1.2.3 (8c4d3ff8)
error: GET https://npm.pkg.github.com/download/x/x0.0.1/xxx - 401
bun install v1.2.3 (8c4d3ff8)
error: GET https://npm.pkg.github.com/download/x/x0.0.1/xxx - 401
These errors only happen occasionally, and I cannot seem to understand on what basis. My assumption would be that specific workers are having trouble installing it, but I am unsure how I would debug this at all. We have Bunfig install scopes configured at the Instance level in Windmill, so my assumption would be that all workers should be able to install private packages. I've also tried clearing the cache multiple times, which I thought used to fix the issue, but I cannot confirm that, as the errors seem to just come back eventually. I don't know how the bunfig install scopes are given to the workers, but it may be worth mentioning that we use autoscaling, so in my head it does make some sense that it could be some race condition in the worker initialization itself that is causing this. Again, I am not sure how to confirm or deny this, so I would appreciate any pointers on how to collect more information regarding this issue.
73 replies
WWindmill
Created by invakid404 on 11/18/2024 in #help
Internal: Object store client not present, cannot stream logs from store when clicking Show more...
No description
34 replies
WWindmill
Created by invakid404 on 9/9/2024 in #help
Sporadic "Flow result by id in leaf jobs not found at name ..." errors
Sometimes, specifically when running multiple flows at once, some of them fail with errors like this one:
InternalErr: Error during isolated evaluation of expression `results.a`:
Not found: Flow result by id in leaf jobs not found at name 0191c7b0-0567-020f-02b5-872fbd9297a1, a
InternalErr: Error during isolated evaluation of expression `results.a`:
Not found: Flow result by id in leaf jobs not found at name 0191c7b0-0567-020f-02b5-872fbd9297a1, a
I don't think it's an issue in the flow itself, as the other runs succeed, but I can't seem to pinpoint the reason. The error appears to be happening in g most often, which has an argument that is set to results.a: https://img.qilin-qilin.ts.net/2024-09-09_09-07-06_rkh7D.webp If I look at the node status g in a failed run, it says it has "No arguments": https://img.qilin-qilin.ts.net/2024-09-09_09-08-28_F7OJF.webp Any pointers?
66 replies
WWindmill
Created by invakid404 on 9/2/2024 in #help
What does `wmill sync push --stateful` do?
Basically the title. It's not mentioned in the CLI docs, so I'm not entirely sure what it's supposed to do. My assumption is that it's supposed to disallow people from pushing without pulling first, but if that's the case, I'm unsure why --skip-pull is a separate flag.
4 replies
WWindmill
Created by invakid404 on 8/12/2024 in #help
Slack error handler: Resource exists but you don't have access to it
When trying to send a test message for the Slack error handler, the run fails with the following error:
ExecutionErr: error during execution of the script:
Not found: Resource f/slack_bot/bot_token not found for `slack`: Not authorized: Resource exists but you don't have access to it:
resource perms: {}
folder perms: null
ExecutionErr: error during execution of the script:
Not found: Resource f/slack_bot/bot_token not found for `slack`: Not authorized: Resource exists but you don't have access to it:
resource perms: {}
folder perms: null
Any idea what could be going wrong?
90 replies
WWindmill
Created by invakid404 on 8/6/2024 in #help
Error while executing Bun script: missing sourcemaps
After updating to the latest Windmill Docker image, I started getting this error when running a specific Bun script:
ExecutionErr: ExitCode: 1, last log lines:
m5
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:26:48
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:234731:17
note: missing sourcemaps for /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js
note: consider bundling with '--sourcemap' to get unminified traces

Bun v1.1.21 (Linux x64 baseline)
ExecutionErr: ExitCode: 1, last log lines:
m5
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:26:48
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:234731:17
note: missing sourcemaps for /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js
note: consider bundling with '--sourcemap' to get unminified traces

Bun v1.1.21 (Linux x64 baseline)
I tried wiping everything under /tmp/windmill/cache/bun and /tmp/windmill/cache_nomount/bun{,tar} and redeploying the script, but I still get the same error.
17 replies
WWindmill
Created by invakid404 on 7/22/2024 in #help
PHP scripts are slow to run
I have a relatively simple PHP script with a single Composer dependency as a part of a bigger flow that runs often, and its runtime dominates the entire flow, taking >0.6s to complete. It appears that Windmill installs the dependency every time it runs, which would be my guess why it takes so long. Is there a way to make Windmill cache it?
14 replies