BadDeployKey for local deployment
I'm getting this error after weeks of doing local deployment development on my laptop. Any ideas, kinda is breaking my development workflow right now.
✖ 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 403 Forbidden: BadDeployKey: The provided deploy key was invalid for deployment 'redacted'. Double check that the environment this key was generated for matches the desired deployment.
Failed due to network error, retrying in 19.46s...
✖ 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 403 Forbidden: BadDeployKey: The provided deploy key was invalid for deployment 'redacted'. Double check that the environment this key was generated for matches the desired deployment.
Failed due to network error, retrying in 19.46s...
5 Replies
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!
Hmmm, okay - billing issue (i think)...
nope not that, more people faced this including me (check general channel)
ahhh, let me check, thanks
It's not a billing issue... anyone?
I reached out to Convex Support, I am a paid user, but no one is replying...
Anyone? This is quite annyoing, and there is no information on how to fix this... please... It's telling me that I have a Bad deploy key, I'm not sure how to fix this? @jamwt @ari ? I did reach out to support, but nothing...
? This deployment is using an older version of the Convex backend. Upgrade now? Yes
? Transfer data from existing deployment? transfer data
waiting for local backend to start...
Failed to authenticate: "The provided admin key was invalid for this instance", check your server auth config
Attempting reconnect in 82.49577372274058ms
WebSocket reconnected
Error: [CONVEX Q(_system/cli/queryEnvironmentVariables:default)] [Request ID: e08323b9bcef42da] Server Error
Operation query not permitted
Called by client
at OptimisticQueryResults.queryResult (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136312:13)
at BaseConvexClient.localQueryResultByToken (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137661:40)
at BaseConvexClient.webSocketConstructor (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:142770:112)
at /Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137377:7
at BaseConvexClient.handleTransition (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137566:7)
at BaseConvexClient.notifyOnQueryResultChanges (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137547:10)
at WebSocketManager.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137454:20)
at ws.onmessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136643:29)
at callListener (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97386:18)
at _WebSocket.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97321:13)
? This deployment is using an older version of the Convex backend. Upgrade now? Yes
? Transfer data from existing deployment? transfer data
waiting for local backend to start...
Failed to authenticate: "The provided admin key was invalid for this instance", check your server auth config
Attempting reconnect in 82.49577372274058ms
WebSocket reconnected
Error: [CONVEX Q(_system/cli/queryEnvironmentVariables:default)] [Request ID: e08323b9bcef42da] Server Error
Operation query not permitted
Called by client
at OptimisticQueryResults.queryResult (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136312:13)
at BaseConvexClient.localQueryResultByToken (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137661:40)
at BaseConvexClient.webSocketConstructor (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:142770:112)
at /Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137377:7
at BaseConvexClient.handleTransition (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137566:7)
at BaseConvexClient.notifyOnQueryResultChanges (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137547:10)
at WebSocketManager.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137454:20)
at ws.onmessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136643:29)
at callListener (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97386:18)
at _WebSocket.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97321:13)
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
? This deployment is using an older version of the Convex backend. Upgrade now? Yes
? Transfer data from existing deployment? transfer data
waiting for local backend to start...
Failed to authenticate: "The provided admin key was invalid for this instance", check your server auth config
Attempting reconnect in 101.66248842415936ms
WebSocket reconnected
Error: [CONVEX Q(_system/cli/queryEnvironmentVariables:default)] [Request ID: 5b44f51477d77ca3] Server Error
Operation query not permitted
Called by client
at OptimisticQueryResults.queryResult (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136312:13)
at BaseConvexClient.localQueryResultByToken (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137661:40)
at BaseConvexClient.webSocketConstructor (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:142770:112)
at /Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137377:7
at BaseConvexClient.handleTransition (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137566:7)
at BaseConvexClient.notifyOnQueryResultChanges (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137547:10)
at WebSocketManager.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137454:20)
at ws.onmessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136643:29)
at callListener (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97386:18)
at _WebSocket.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97321:13)
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
? This deployment is using an older version of the Convex backend. Upgrade now? Yes
? Transfer data from existing deployment? transfer data
waiting for local backend to start...
Failed to authenticate: "The provided admin key was invalid for this instance", check your server auth config
Attempting reconnect in 101.66248842415936ms
WebSocket reconnected
Error: [CONVEX Q(_system/cli/queryEnvironmentVariables:default)] [Request ID: 5b44f51477d77ca3] Server Error
Operation query not permitted
Called by client
at OptimisticQueryResults.queryResult (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136312:13)
at BaseConvexClient.localQueryResultByToken (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137661:40)
at BaseConvexClient.webSocketConstructor (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:142770:112)
at /Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137377:7
at BaseConvexClient.handleTransition (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137566:7)
at BaseConvexClient.notifyOnQueryResultChanges (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137547:10)
at WebSocketManager.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137454:20)
at ws.onmessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136643:29)
at callListener (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97386:18)
at _WebSocket.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97321:13)
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
✖ A local backend is still running on port 3210. Please stop it and run this command again.
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
✖ A local backend is still running on port 3210. Please stop it and run this command again.
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
✖ A local backend is still running on port 3210. Please stop it and run this command again.
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
✖ A local backend is still running on port 3210. Please stop it and run this command again.
We're chatting in a support thread now, if anyone else sees this let us know!