humanz
humanz11mo ago

Infer Type Unreachable

I'm attempting to migrate from a self-hosted windmill instance to Windmill Cloud. I installed the wmill CLI and pulled the files from the self-hosted install; however, when I attempt to push the files in wmill Cloud, I get the attached error message: error: Uncaught (in promise) Error: infer type unreachable throw new Error("infer type unreachable"); ^ at pushObj (https://deno.land/x/wmill@v1.226.1/types.ts:122:11) at Command.push [as actionHandler] (https://deno.land/x/wmill@v1.226.1/sync.ts:762:15) at eventLoopTick (ext:core/01_core.js:178:11) at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1948:7) at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1780:14) at async https://deno.land/x/wmill@v1.226.1/main.ts:133:3 A couple files were created on wmill Cloud but vast majority has not. Please advise on how to best proceed
22 Replies
humanz
humanz11mo ago
I noticed the pull/push doesn't seem to look at resource types, I'm assuming that might be the issue but not sure how to tackle it. I created one of the cusom resource types in the wmill Cloud instance but the CLI seems to be attempting to delete it and still errors out. (I did manually create the resource types in wmill Cloud but the error persists) The resource types were in the admin workspace, which is why they didn't get included in the pull. I pulled those separately from the admins workspace and put it in the original workspace but the error remains. Not sure what else to troubleshoot at this point
rubenf
rubenf11mo ago
Apologies for the confusing error which i'm fixing in latest. There is one item that you're tring to sync whose path has an unrecognized ending
humanz
humanz11mo ago
It looks like all the files that are being synced are either yaml, ts, or py
rubenf
rubenf11mo ago
could you show me a tree of your folder
humanz
humanz11mo ago
There are folders that have ".flow" at the end of their name, I wonder if that's the issue? And yes, sure, one second Sent via DM
rubenf
rubenf11mo ago
can you try doing:
deno install --unstable -A https://raw.githubusercontent.com/windmill-labs/windmill/main/cli/main.ts --name wmill
deno install --unstable -A https://raw.githubusercontent.com/windmill-labs/windmill/main/cli/main.ts --name wmill
and then run that command again I have improved the error message in an unreleased commit
humanz
humanz11mo ago
The item f\Shopify\delete_products.flow\inline_script_0.inline_script.ts has an unrecognized type ending script
rubenf
rubenf11mo ago
thanks, investigating @humanz could you install once again and run it again ? there is a case of paths we were not handling well on windows
humanz
humanz11mo ago
Same issue
rubenf
rubenf11mo ago
can you add --reload to the install command please it's probably not actually pulling latest
humanz
humanz11mo ago
Good call Different error however: NotFound: The system cannot find the path specified. (os error 3): readfile 'f\Shopify\delete_products.flow\inline_script_0.inline_script.ts.flow\flow.yaml' const localFlowRaw = await Deno.readTextFile(localFlowPath + "flow.yaml");
rubenf
rubenf11mo ago
yeah you're missing the flow.yaml in all your flows, investigating @humanz you didn't remove any flow.yaml by hand right ?
humanz
humanz11mo ago
nope
rubenf
rubenf11mo ago
could you do wmill sync pull on a fresh folder, and show me the logs and the tree again please
humanz
humanz11mo ago
My self-hosted version is v1.200.0-21-gd3dbb1881 but I'm not sure if that's the issue
rubenf
rubenf11mo ago
unlikely to be the issue actually I think I fixed the issue with my previous fix but you needed to pull once again so can you try pulling again please the flow.yaml should appear and then you should be gtg
humanz
humanz11mo ago
I do see the flow.yaml now but it's not at the correct folder maybe?
rubenf
rubenf11mo ago
Why is it not in correct folder ?
humanz
humanz11mo ago
Yeah, the flow.yaml is at f\Shopify\delete_products.flow/flow.yaml The error is: The system cannot find the path specified. (os error 3): readfile 'f\Shopify\delete_products.flow\inline_script_0.inline_script.ts.flow\flow.yaml'
rubenf
rubenf11mo ago
It's using / instead of \ argh Can you show me the logs of the pull please Also just to be sure, could you attempt to do this on a fresh folder
humanz
humanz11mo ago
Sure, one second Sent via DM For future reference: This is being fixed in a updated version of Wmill cli
rubenf
rubenf11mo ago
(also this was specific to windows)