cali
cali•15mo ago

Invalid requirements, expectd to find //bun.lockb split pattern in reqs

I am running a background runnable script connected to a list (grid). However, I am getting this error multiple times when running the app: The result keys are: error ExecutionErr: error during execution of the script: Invalid requirements, expectd to find //bun.lockb split pattern in reqs When I run the script manually, it seems to work fine.
46 Replies
rubenf
rubenf•15mo ago
Would you be able to send a minimal reproduction please also that background script is an inline script right ? Not referring to a script in your workspace
cali
cali•15mo ago
I`m referring to a script in my workspace...
cali
cali•15mo ago
No description
No description
rubenf
rubenf•15mo ago
what version of windmill are you on ? Could you go on that script and do edit/deploy and check that you have the same issue ? Can you share the lockfile that is mentionned int he details page of that script ?
cali
cali•15mo ago
version: 1.154. I updated (windmill and windmill-lsp) through caprover. If I run the script at the bottom of the app, it works.
No description
rubenf
rubenf•15mo ago
yes but that's different
cali
cali•15mo ago
How can I get the lockfile?
rubenf
rubenf•15mo ago
in the details page of the script please follow the steps above, show lockfile, do edit/deploy, show lockfile again Details page -> Details & Triggers -> Lock file
cali
cali•15mo ago
Right, I tried now and I got the same error. ok...1 min.
cali
cali•15mo ago
no lock file
No description
rubenf
rubenf•15mo ago
ok, can do you do edit/deploy please again
cali
cali•15mo ago
done.
No description
rubenf
rubenf•15mo ago
can you show the lockfile again please
cali
cali•15mo ago
it shows "There is no lock file for this script"
rubenf
rubenf•15mo ago
do you do any imports in that script ?
cali
cali•15mo ago
No description
rubenf
rubenf•15mo ago
can you copy paste the imports above please
cali
cali•15mo ago
import { setClient, getVariable } from "windmill-client@0.3.15" import { createClient } from "altogic";
rubenf
rubenf•15mo ago
I should be able to reproduce this ty ok, can you send me the full script I cannot reproduce with just the import
cali
cali•15mo ago
My machine at Oracle Cloud just had some problem. I lost connection, Caprover and Windmill stopped. 😦 I will try to restore it somehow. When I succeed, I will share it here. However, I won't be able to share sensitive data like URL and password, for example from Altogic. import { setClient, getVariable } from "windmill-client@0.3.15" import { createClient } from "altogic"; export async function main( model: string = "handbooks", queryParams: { filter: string; omit: string[] } = { filter: "", omit: [] }, page = 1 ) { await setClient( Bun.env["WM_TOKEN"] ?? 'no_token', Bun.env["WM_BASE_URL"] ?? 'http://localhost:8000' ); const altogic = createClient( await getVariable("f/PurposeWizard/ENV_URL"), await getVariable("f/PurposeWizard/CLIENT_KEY"), { signInRedirect: "/app/", }, ); const result = await altogic.db .model(model) .filter(queryParams.filter) .omit(...queryParams.omit) .limit(5) .page(page || 1) .get(true); return result.data ; }
rubenf
rubenf•15mo ago
I don't need passwords just the code I unfortunately cannot reproduce this please go on the runs page in the dependencies page
rubenf
rubenf•15mo ago
No description
rubenf
rubenf•15mo ago
and look at the latest deployment please
rubenf
rubenf•15mo ago
The logs should look like this:
No description
cali
cali•15mo ago
right
cali
cali•15mo ago
No description
cali
cali•15mo ago
No description
rubenf
rubenf•15mo ago
hmm that makes no sense ... maybe arm has something to do with it
cali
cali•15mo ago
how can I help to confirm? and can it be just with Bun? and could it work better with Deno?
rubenf
rubenf•15mo ago
I would need a way to reproduce this can you spin up windmill on your laptop that isn't arm and try to reproduce reproduce here means having an empty lock generation the lock job should look like the one I screenshotted if you can't reproduce the issue is likely with arm one of thing you can try to do is to ssh into the box and try to do a bun install of a corresponding package.json you should triple verify that your worker is really on latest version I suspect a failed deployment
cali
cali•15mo ago
I'm evaluating the worker and deployments. Previously, I had only updated windmill and windmill-lsm via the CapRover UI. Do I need to update everything else (windmill-worker, windmill-worker-native)? I see now that they are on version ghcr.io/windmill-labs/windmill:1.135.1. Or am I mixing subjects and they are not related?
Tiago Serafim
Tiago Serafim•15mo ago
You have to update the manually to the same version
cali
cali•15mo ago
Right. So there was already a mistake on my end. I've just updated.
cali
cali•15mo ago
Now, the problem with lock file was solved.
No description
cali
cali•15mo ago
But other problem came up....
cali
cali•15mo ago
No description
rubenf
rubenf•15mo ago
you need to update your server actually it's not that you need to clear your cache or unpin your windmill-client
cali
cali•15mo ago
I'm not sure I follow. 😦 Could you please explain further? - clear cache: do I need to do it in my server? I don't know where is the '/tmp/windmill/cache' - unpin windmill-client: is it in caprover, my server or in windmill frontend? (and thank you for the helping with the lock file 🙌 )
rubenf
rubenf•15mo ago
unpin windmill-client is in your script use windmill-client@1
cali
cali•14mo ago
I changed my import to import { setClient, getVariable } from "windmill-client@1" but I still have the same error. I believe that it is not only this that I have to do from what you asked me, but I am not sure about the next steps.
rubenf
rubenf•14mo ago
can you check by pinning the full dependency @1.158.0 if yes, then just redeploy
cali
cali•14mo ago
it didn't work yet . But I think I'll take a break for now.
Tiago Serafim
Tiago Serafim•14mo ago
If you're free right now we can call over WhatsApp and I'll try to unblock you from here
cali
cali•14mo ago
Thank you for your availability, Tiago! I couldn't make it at that time you mentioned. After many attempts, I felt frustrated and took a break. I even ended up temporarily removing the windmill from the server to try other alternatives.
Tiago Serafim
Tiago Serafim•14mo ago
I understand, but if you want to try again hit me up
cali
cali•14mo ago
Now, running on a stable VPS at Hetzner, I managed to make it work. 🙂