Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Hi, my POC is stuck at "Downloading

Hi, my POC is stuck at "Downloading current deployment state". Any hint why it could fail at this stage?

Hi Everyone, I'm trying to self host

Hi Everyone, I'm trying to self host convex on the coolify but I got some issue. this what I did I create a coolify project and I deployed my next js project on it I add the environement varilables (CONVEX_SELF_HOSTED_ADMIN_KEY and CONVEX_SELF_HOSTED_URL) I added a convex service on the same coolify project and there I got 2 services (backend and dashbaord) and I can go to the dashbard via the generated adminkey the backend is up and runing. I got visite my nextjs application where the main root...

Hello, I am encountering an error when

Hello, I am encountering an error when trying to migrate a database to my self-hosted solution: the error is 413 Request Entity too large. The context is that I am using a MySql server as backend and I am wondering if there are configurations that must be set that are not yet described in the guide. We managed to migrate this database from the cloud to the litesql we did for testing but now the production solution using MySql throw this error. Does anyone knows how to fix it? Thanks. I was thinking... could it be that the docker image of the convex backend i am using is old?...

Are there any existing self hosting

Are there any existing self hosting conversations about scale? Like rules of thumb for how much throughput certain common sized servers can handle. And maybe basic things to know about any kind of horizontal scaling if possible?

So on a project I have, I'm trying to

So on a project I have, I'm trying to self host and creat a terraform configuration that can launch convex into a VPC on Google Cloud. I'm having trouble with the generate_admin_key step. both calling that command and getting the key. I'd much rather prefer to generate my own key and pass that in to the container. But I didn't see any options discussed for that. Has anyone successfully packaged this up into something that can be run that way? or is everyone just setting this up on Cloud accounts...

hey! I just deployed the self-hosted

hey! I just deployed the self-hosted version of Convex.dev on my Hetzner server and want to use Supabase as the database. I spun up a fresh project in Supabase, but when I set the DATABASE_URL env var to the Supabase connection string with postgresql://.../postgres (so the DB name is set to postgres), Convex complains I shouldn't include the DB name. According to the docs here, Convex expects a data...

Trouble connecting to mysql locally

Hello, I am having some problems with self-hosting a local mysql convex for a client who wants everything local. I am quite new to docker and I do not understand what is going on exactly I did follow the guide but even after I did setup my mysql server created a user I wish to use for the docker and set the enviromental variable MYSQL_URL correctly I get these errors all I did was exactly what the guide suggests: ...
No description

Would it be better Linux or Windows for

Would it be better Linux or Windows for a self host solution of Convex with mySQL also hosted locally?

Hi, does Convex support storage provider

Hi, does Convex support storage provider other than AWS S3? I'm trying to self-host Convex in China with Tencent Cloud, so I don't have internet connection to AWS services

thread about urls

And still the same

now i am trying to make convex auth work

now i am trying to make convex auth work, but i keep having 'could not verify token claim' error, due to the lack of ideas how to make it work, i swapped from selfhost, to cloud solution just to check if its even working and i noticed that auth domain is different in selfhost and cloud (there is also a chance that this is result of me modifying container/coolify env variables)

S3 file storage

For the S3 thing, yes it's effectively implementing an interface/trait. For the scalability thing, the code changes are similarly straightforward, but the tricky part is spinning up parts of the codebase (the parts that run functions or connect websockets) on separate servers and making sure they can talk to each other.

HTTP

Hi all - I am so excited to get to play with self-hosted Convex. Long story short, I have a self-hosted Convex running on my laptop alongside my vite app - everything works great. When I deploy the same code to our web server (using Cloudflare tunnel - two different domains point to 3210, and 3211 respectrively (convex-be.subdomain.com (3210), convex-be-functions.subdomain.com (3211)) - it seems like I am not able to get the functions working correctly. This is most evident by convex-auth not wo...

http actions via traefik

No it does not. Does it need to? Traefik just act as a reverse proxy, for example requests to https://convexpublic.mydomain.com/.well-known/openid-configuration are proxied to http://localhost:3211/.well-known/openid-configuration

coolify + postgres

2025-02-15T18:53:23.081956Z INFO convex_local_backend: Starting a Convex backend 2025-02-15T18:53:23.082164Z INFO convex_local_backend: Sentry is not enabled. 2025-02-15T18:53:53.116559Z ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): Postgres timeout ...

convex auth on self-hosted

I tried both
http://127.0.0.1:3211
http://127.0.0.1:3211
and
http://localhost:3000
http://localhost:3000
but it gets stuck
No description

relative URL without a base.

Hi, Trying to get the self-hosted version up and running. Cannot figure out how to get past this error when using the default docker-compose.yaml Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): relative URL without a base....

convex dev --local

any eta on convex-local? quite interested in that due to local-first 😄

Build issue

and still I'm having build issue (just run-local-backend) but when I try in terminal this:
convex-local-backend.exe run-local-backend
convex-local-backend.exe run-local-backend
...
No description