-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
I'm trying to follow the guide here.
https://github.com/get-convex/convex-backend/tree/main/self-hosted
➜ self-convex git:(main) ✗ curl -O https://raw.githubusercontent.com/get-convex/convex-backend/main/self-hosted/docker/docker-compose.yml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2111 100 2111 0 0 10370 0 --:--:-- --:--:-- --:--:-- 10399
➜ self-convex git:(main) ✗ docker compose up -d
[+] Running 3/3
✔ Network self-convex_default Created 0.0s
✔ Container self-convex-backend-1 Healthy 5.6s
✔ Container self-convex-dashboard-1 Started 5.7s
➜ self-convex git:(main) ✗ docker compose exec backend ./generate_admin_key.sh
Admin key:
convex-self-hosted|016aecfef07a512ed12e84a21075e2d1c73ed88476c2ea5f55d7fb41899309686fafb88706
➜ self-convex git:(main) ✗ curl 'http://127.0.0.1:3210/api/check_admin_key' \
-H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Authorization: Convex convex-self-hosted|016aecfef07a512ed12e84a21075e2d1c73ed88476c2ea5f55d7fb41899309686fafb88706' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Convex-Client: dashboard-0.0.0' \
-H 'DNT: 1' \
-H 'Origin: http://localhost:6791' \
-H 'Referer: http://localhost:6791/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Not)A;Brand";v="8", "Chromium";v="138"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-gpc: 1'
{"code":"BadAdminKey","message":"The provided admin key was invalid for this instance"}%
same thing in the UI:

I've also attempted with 'npx convex dev' and get this same error
➜ self-convex git:(main) ✗ c .env.local
➜ self-convex git:(main) ✗ npm install convex@latest
added 5 packages in 3s
1 package is looking for funding
run `npm fund` for details
➜ self-convex git:(main) ✗ npx convex dev
Saved the given --url as CONVEX_URL to .env.local
✖ Error: Unable to pull deployment config from http://127.0.0.1:3210
✖ Error fetching POST http://127.0.0.1:3210/api/get_config_hashes 401 Unauthorized: BadAdminKey: The provided admin key was invalid for this instance
Authenticate with `npx convex dev`
Metadata
Metadata
Assignees
Labels
No labels