wminor
wminor
CCConvex Community
Created by wminor on 2/18/2025 in #support-community
Trouble setting up convex-r2
I'm trying to set up convex-r2, following this guide: https://www.convex.dev/components/cloudflare-r2 I'm getting this error from convex dev:
Error fetching POST https://combative-opossum-472.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze file_storage.js: Uncaught Error: R2 configuration is missing required fields.
R2_BUCKET, R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
at new R2 (../node_modules/@convex-dev/r2/src/client/index.ts:94:74)
at <anonymous> (../src/convex/file_storage.ts:3:38)
Error fetching POST https://combative-opossum-472.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze file_storage.js: Uncaught Error: R2 configuration is missing required fields.
R2_BUCKET, R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
at new R2 (../node_modules/@convex-dev/r2/src/client/index.ts:94:74)
at <anonymous> (../src/convex/file_storage.ts:3:38)
Am I right in thinking that those logs are coming from remote execution on the convex server side? I have ensured that all of those R2_* environment variables are set on my convex project. What else could I be missing?
7 replies