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