dengor
dengor2w ago

Can't start a local deployment

Hey guys, thanks for building an amazing database! I can't start the local deployment:
~/workspace/humanbase % npx convex dev --local --once
waiting for local backend to start...
✖ Local backend did not start on port 3210 within 10 seconds.
✖ Hit an error while running local deployment.
Your error has been reported to our team, and we'll be working on it.
To opt out, run `npx convex disable-local-deployments`. Then re-run your original command.
~/workspace/humanbase % npx convex dev --local --once
waiting for local backend to start...
✖ Local backend did not start on port 3210 within 10 seconds.
✖ Hit an error while running local deployment.
Your error has been reported to our team, and we'll be working on it.
To opt out, run `npx convex disable-local-deployments`. Then re-run your original command.
convex --version
1.21.0
convex --version
1.21.0
I was able to start the local deployment earlier (~1 month ago) when checking out Convex. Today I opened an old project, updated Convex, now can't start the local deployment. I've already tried disabling local deployments & reenabling them again. I've also tried rm -r ~/.convex/convex-backend-state/. After that, I ran npx convex dev --local --once again, maybe a couple of times. Now there are two directories:
~/workspace/humanbase % ls ~/.convex/convex-backend-state/
local-denis_gorbachev-humanbase-1 local-denis_gorbachev-humanbase_d7728
~/workspace/humanbase % ls ~/.convex/convex-backend-state/
local-denis_gorbachev-humanbase-1 local-denis_gorbachev-humanbase_d7728
How to enable the logs to see the error?
4 Replies
Convex Bot
Convex Bot2w 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!
Kevin07
Kevin072w ago
Hey are you currently using Node v18? I ran into the same issues with no logs, and switching to that helped!
sshader
sshader2w ago
^^ that -- it's a regression (both hitting it if you're not using node actions, and the lack of error message) and already on its way to being fixed, but in the meantime setting your node version to v18 will probably unblock you
dengor
dengorOP2w ago
Thank you guys 🤝 Hope it gets fixed soon since v18 is being retired on Vercel in early 2025
Supported Node.js versions
Learn about the supported Node.js versions on Vercel.

Did you find this page helpful?