nate.003
nate.0032w ago

Workflows just randomly stopped working

Hey I was wondering if anyone could help me debug this error message?
error: Requires import access to "localhost:40605", run again with the --allow-import flag
at file:///tmp/windmill/wk-default-d4bkn-Tq3vy/01927455-1194-2bc3-eb72-649e30346225/main.ts:3:42
error: Requires import access to "localhost:40605", run again with the --allow-import flag
at file:///tmp/windmill/wk-default-d4bkn-Tq3vy/01927455-1194-2bc3-eb72-649e30346225/main.ts:3:42
About 12 hours ago my jobs just started failing, and I don't believe any changes were made to the script. Does anyone have any insights?
10 Replies
rubenf
rubenf2w ago
On it, could you share your workspace? fix is coming in 20minutes fixed
nate.003
nate.0032w ago
thank you
Rhys
Rhys7d ago
Hi support, may we have the same fix?
job=01927dde-f8a7-aeb5-d9f4-19ae85f527c8 tag=deno worker=wk-default-djljs-2jmLz hostname=windmill-workers-79bccc58d6-djljs

error: Requires import access to "localhost:43827", run again with the --allow-import flag
at file:///tmp/windmill/wk-default-djljs-2jmLz/01927dde-f8a7-aeb5-d9f4-19ae85f527c8/main.ts:2:57
Non-zero exit status: 1
job=01927dde-f8a7-aeb5-d9f4-19ae85f527c8 tag=deno worker=wk-default-djljs-2jmLz hostname=windmill-workers-79bccc58d6-djljs

error: Requires import access to "localhost:43827", run again with the --allow-import flag
at file:///tmp/windmill/wk-default-djljs-2jmLz/01927dde-f8a7-aeb5-d9f4-19ae85f527c8/main.ts:2:57
Non-zero exit status: 1
rubenf
rubenf7d ago
are you app.windmill.dev ? If yes, can you share your workspace_id ?
invakid404
invakid4046d ago
The same is happening on my self-hosted instance (CE v1.408.0) https://img.qilin-qilin.ts.net/2024-10-12_14-55-52_fIcaC.webp
rubenf
rubenf6d ago
on it it's because of the migration to deno 2 @invakid404 are you using custom deno flags?
invakid404
invakid4046d ago
I don't even know how to use custom deno flags, so I'd assume I'm not :D
rubenf
rubenf6d ago
what script is that? Can you share it?
invakid404
invakid4046d ago
the error happens when i have imports targeting other wmill scripts for example:
// u/windmill/hello
export const hello = () => {
console.log("hello")
}

// u/windmill/world
import { hello } from "./hello.ts"

export async function main() {
hello()
}
// u/windmill/hello
export const hello = () => {
console.log("hello")
}

// u/windmill/world
import { hello } from "./hello.ts"

export async function main() {
hello()
}
also, the error only happens when trying to deploy the script, testing the script works
rubenf
rubenf6d ago
the deno cache commands has --allow-imports fixed on latest will do a release I can't reproduce locally for some reasons but could reproduce on a test instance releasing 1.408.1 right now