ya
ya7d ago

Convex Self Hosted: Server Error Couldn't find "schemaValidationProgress"

📝 I originally posted this on self-hosted, but I believe this is a more appropriate place, so I'm reposting it here. Hi. I opened the Convex dashboard following the self-hosting README, but I get an error when opening http://localhost:6791/data. Does anyone know what might be causing this?
[CONVEX Q(_system/frontend/getSchemas:schemaValidationProgress)] [Request ID: fd91545b7d576ef3] Server Error Couldn't find "schemaValidationProgress" in module "_system/frontend/getSchemas.js". Called by client
Error: [CONVEX Q(_system/frontend/getSchemas:schemaValidationProgress)] [Request ID: fd91545b7d576ef3] Server Error
Couldn't find "schemaValidationProgress" in module "_system/frontend/getSchemas.js".

Called by client
at w.queryResult (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:82475)
at ei.localQueryResult (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:106888)
at Object.localQueryResult (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:128357)
at C.getLocalResults (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:132982)
at getCurrentValue (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:134376)
at http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:126795
at ag (http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:59316)
at av (http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:59774)
at Object.useState (http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:66140)
at http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:135884
[CONVEX Q(_system/frontend/getSchemas:schemaValidationProgress)] [Request ID: fd91545b7d576ef3] Server Error Couldn't find "schemaValidationProgress" in module "_system/frontend/getSchemas.js". Called by client
Error: [CONVEX Q(_system/frontend/getSchemas:schemaValidationProgress)] [Request ID: fd91545b7d576ef3] Server Error
Couldn't find "schemaValidationProgress" in module "_system/frontend/getSchemas.js".

Called by client
at w.queryResult (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:82475)
at ei.localQueryResult (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:106888)
at Object.localQueryResult (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:128357)
at C.getLocalResults (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:132982)
at getCurrentValue (http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:134376)
at http://localhost:6791/_next/static/chunks/pages/_app-827e40c87a6ce3ee.js:151:126795
at ag (http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:59316)
at av (http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:59774)
at Object.useState (http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:66140)
at http://localhost:6791/_next/static/chunks/framework-8428f5b63833a610.js:1:135884
2 Replies
Convex Bot
Convex Bot7d 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!
ya
yaOP7d ago
I encountered the following task.
curl -O https://raw.githubusercontent.com/get-convex/convex-backend/main/self-hosted/docker/docker-compose.yml
docker compose up
docker compose exec backend ./generate_admin_key.sh
export CONVEX_SELF_HOSTED_URL='https://api.my-domain.com'
export CONVEX_SELF_HOSTED_ADMIN_KEY='<your admin key>'
npx convex dev

cat > ./convex/scheam.ts << 'EOF'
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";

export default defineSchema({
users: defineTable({
name: v.string(),
email: v.string(),
password: v.string(),
}),
});
EOF

open http://localhost:6791/data
curl -O https://raw.githubusercontent.com/get-convex/convex-backend/main/self-hosted/docker/docker-compose.yml
docker compose up
docker compose exec backend ./generate_admin_key.sh
export CONVEX_SELF_HOSTED_URL='https://api.my-domain.com'
export CONVEX_SELF_HOSTED_ADMIN_KEY='<your admin key>'
npx convex dev

cat > ./convex/scheam.ts << 'EOF'
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";

export default defineSchema({
users: defineTable({
name: v.string(),
email: v.string(),
password: v.string(),
}),
});
EOF

open http://localhost:6791/data
Upon investigation, I resolved that the issue stemmed from an inconsistent version of the convex Docker image. Pulling the latest versions of both the convex-backend and convex-dashboard images resolved the problem. Thanks 🎉

Did you find this page helpful?