EzraEn
EzraEn3h ago

Local Deployment Fails on Windows Due to Malformed Path

Hi Convex team, I'm having trouble running a local deployment on Windows. When I run:
bun dev:backend --once
bun dev:backend --once
I get the following error:
✖ Error: Unable to start push to http://127.0.0.1:3210
✖ Error fetching POST http://127.0.0.1:3210/api/deploy2/start_push 400 Bad Request: InvalidExternalModules: Hit an error while pushing:
Loading the pushed modules encountered the following error:
ENOENT: no such file or directory, mkdir 'C:\C:\Users\admin\.convex\anonymous-convex-backend-state\anonymous-nh4\convex_local_storage\modules'
✖ Error: Unable to start push to http://127.0.0.1:3210
✖ Error fetching POST http://127.0.0.1:3210/api/deploy2/start_push 400 Bad Request: InvalidExternalModules: Hit an error while pushing:
Loading the pushed modules encountered the following error:
ENOENT: no such file or directory, mkdir 'C:\C:\Users\admin\.convex\anonymous-convex-backend-state\anonymous-nh4\convex_local_storage\modules'
As you can see, the path is malformed (C:\C:\...). Here’s what I’ve tried so far: - Running as administrator. - Deleting the .convex directory in my user folder to reset local state. - Ensuring there are no malformed paths or double drive letters in my .env.local. - Checking for any custom CONVEX_TMPDIR or related environment variables. - Attempting to set CONVEX_TMPDIR to a directory on the same drive as my project, using PowerShell:
$env:CONVEX_TMPDIR="C:\Users\admin\convex_tmp"
bun dev:backend --once

$env:CONVEX_TMPDIR="C:\Users\admin\convex_tmp"
bun dev:backend --once

Despite these steps, the error persists and the deployment crashes. I’ve also reviewed the Discord discussions about similar issues, and it seems there may be a bug in the Convex CLI’s handling of paths or the CONVEX_TMPDIR variable on Windows. Is there anything else I can try, or is this a known issue with the CLI on Windows? Any help would be appreciated!
1 Reply
Convex Bot
Convex Bot3h ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?