cali
cali•2y 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•2y 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
caliOP•2y ago
I`m referring to a script in my workspace...
cali
caliOP•2y ago
No description
No description
rubenf
rubenf•2y 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
caliOP•2y 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•2y ago
yes but that's different
cali
caliOP•2y ago
How can I get the lockfile?
rubenf
rubenf•2y 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
caliOP•2y ago
Right, I tried now and I got the same error. ok...1 min.
cali
caliOP•2y ago
no lock file
No description
rubenf
rubenf•2y ago
ok, can do you do edit/deploy please again
cali
caliOP•2y ago
done.
No description
rubenf
rubenf•2y ago
can you show the lockfile again please
cali
caliOP•2y ago
it shows "There is no lock file for this script"
rubenf
rubenf•2y ago
do you do any imports in that script ?
cali
caliOP•2y ago
No description
rubenf
rubenf•2y ago
can you copy paste the imports above please
cali
caliOP•2y ago
import { setClient, getVariable } from "windmill-client@0.3.15" import { createClient } from "altogic";
rubenf
rubenf•2y 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
caliOP•2y 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•2y 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•2y ago
No description
rubenf
rubenf•2y ago
and look at the latest deployment please
rubenf
rubenf•2y ago
The logs should look like this:
No description
cali
caliOP•2y ago
right
cali
caliOP•2y ago
No description
cali
caliOP•2y ago
No description
rubenf
rubenf•2y ago
hmm that makes no sense ... maybe arm has something to do with it
cali
caliOP•2y ago
how can I help to confirm? and can it be just with Bun? and could it work better with Deno?
rubenf
rubenf•2y 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
caliOP•2y 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•2y ago
You have to update the manually to the same version
cali
caliOP•2y ago
Right. So there was already a mistake on my end. I've just updated.
cali
caliOP•2y ago
Now, the problem with lock file was solved.
No description
cali
caliOP•2y ago
But other problem came up....
cali
caliOP•2y ago
No description
rubenf
rubenf•2y ago
you need to update your server actually it's not that you need to clear your cache or unpin your windmill-client
cali
caliOP•2y 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•2y ago
unpin windmill-client is in your script use windmill-client@1
cali
caliOP•2y 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•2y ago
can you check by pinning the full dependency @1.158.0 if yes, then just redeploy
cali
caliOP•2y ago
it didn't work yet . But I think I'll take a break for now.
Tiago Serafim
Tiago Serafim•2y ago
If you're free right now we can call over WhatsApp and I'll try to unblock you from here
cali
caliOP•2y 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•2y ago
I understand, but if you want to try again hit me up
cali
caliOP•2y ago
Now, running on a stable VPS at Hetzner, I managed to make it work. 🙂

Did you find this page helpful?