Alienwarez
Alienwarez3w ago

Has anyone had any issues with R2 and convex self hosted using S3 as the storage where if I delete a

Has anyone had any issues with R2 and convex self hosted using S3 as the storage where if I delete a file from convex it doesnt get deleted on R2
12 Replies
Alienwarez
AlienwarezOP3w ago
also R2 requires all non-trailing parts to have the same length, if I try to upload a big file on the dashboard of convex it shows this error
INFO convex-cloud-http: [] 10.0.11.4:35506 "OPTIONS /api/storage/upload
INFO file_storage::core: Uploading with content length Some(ContentLength(20782000))
ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): service error: unhandled error (InvalidPart): Error { code: "InvalidPart", message: "All non-trailing parts must have the same length." }
INFO convex-cloud-http: [] 10.0.11.4:35506 "OPTIONS /api/storage/upload
INFO file_storage::core: Uploading with content length Some(ContentLength(20782000))
ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): service error: unhandled error (InvalidPart): Error { code: "InvalidPart", message: "All non-trailing parts must have the same length." }
Vexoa
Vexoa3w ago
I'd recommend using the API
bastianwegge
bastianwegge3w ago
With convex self-hosted, I have a problem generating the Upload URLs. Convex is trying to use 127.0.0.1/api as an endpoint, but the server has a valid DNS. How can I set the DNS for the upload endpoint? /e: Okay problem solved, we changed the CONVEX_CLOUD_ORIGIN to be the convex endpoint behind nginx (basically my.url.com/convex).
Sandeep
Sandeep2w ago
Hello Team. I have self-hosted it in my VPS and setup the .local.env in by convex app like this
CONVEX_SELF_HOSTED_URL='http://xx.xx.xx.123:3210/'
CONVEX_SELF_HOSTED_ADMIN_KEY='convex-self-hosted|014c9bed0e04df4fa531d2491ef26acc76d4422dd13f004e59ed2fc4bb2dd21d2084f0856b7c1c00461e873c03ab5c3a32'
CONVEX_SELF_HOSTED_URL='http://xx.xx.xx.123:3210/'
CONVEX_SELF_HOSTED_ADMIN_KEY='convex-self-hosted|014c9bed0e04df4fa531d2491ef26acc76d4422dd13f004e59ed2fc4bb2dd21d2084f0856b7c1c00461e873c03ab5c3a32'
Now when i am running npx convex dev , its pointing me to my logged in account and asks to create/choose project. I am not able to setup my project with selfhosted convex. Please help. What can be wrong?
Sandeep
Sandeep2w ago
if i run npx convex deploy
No description
Sandeep
Sandeep2w ago
anyone ??
Analyzing and deploying source code...
✖ Error: Unable to push deployment config to https://convex.domaon.in
✖ Error fetching POST https://convex.domain.in/api/push_config 400 Bad Request: InvalidAuthConfig: Hit an error while pushing:
The pushed auth config is invalid: auth config file must include a list of provider credentials: must use HTTPS
Analyzing and deploying source code...
✖ Error: Unable to push deployment config to https://convex.domaon.in
✖ Error fetching POST https://convex.domain.in/api/push_config 400 Bad Request: InvalidAuthConfig: Hit an error while pushing:
The pushed auth config is invalid: auth config file must include a list of provider credentials: must use HTTPS
What can be the issue? help much needed
Manchuwook
Manchuwook2w ago
Hi gang - I've got MCP up on VS Code (mostly) but I'm having a problem using it in tandem with Docker. I'm getting {"error":"Not Authorized: Run npx convex dev to login to your Convex project."} Even though I can get to it because I have my .env.local file configured when I run the TanStack app just fine. VITE_CONVEX_URL=http://xx.xx.xx.123:3210 Need to set that too Also, name it .env.local, not .local.env
Manchuwook
Manchuwook2w ago
No description
No description
Sandeep
Sandeep2w ago
Thanks for the reply, @Manchuwook . But my .env.local has correct entries ig. My deployment url looks good. I have mapped the port 3210 via proxy. so https://convex.basicmonster.in/ maps to https://convex.basicmonster.in:3210. Still i get error.
No description
No description
Sandeep
Sandeep2w ago
i am so much stuck into this
HPsaucii
HPsaucii2w ago
> npm run dev

> flex-template@0.0.0 dev
> convex dev --once && node setup.mjs && npm-run-all --parallel dev:frontend dev:backend

✔ 19:06:35 Convex functions ready! (1.48s)
✖ Could not find a configured CONVEX_DEPLOYMENT. Did you forget to run `npx convex dev` first?
> npm run dev

> flex-template@0.0.0 dev
> convex dev --once && node setup.mjs && npm-run-all --parallel dev:frontend dev:backend

✖ CONVEX_DEPLOYMENT must not be set when CONVEX_SELF_HOSTED_URL and CONVEX_SELF_HOSTED_ADMIN_KEY are set
> npm run dev

> flex-template@0.0.0 dev
> convex dev --once && node setup.mjs && npm-run-all --parallel dev:frontend dev:backend

✔ 19:06:35 Convex functions ready! (1.48s)
✖ Could not find a configured CONVEX_DEPLOYMENT. Did you forget to run `npx convex dev` first?
> npm run dev

> flex-template@0.0.0 dev
> convex dev --once && node setup.mjs && npm-run-all --parallel dev:frontend dev:backend

✖ CONVEX_DEPLOYMENT must not be set when CONVEX_SELF_HOSTED_URL and CONVEX_SELF_HOSTED_ADMIN_KEY are set
i have npx convex dev running in a seperate shell session @Sandeep how did you fix this
Sandeep
Sandeep2w ago
Are you talking about my previous issue? @HPsaucii ?

Did you find this page helpful?