JarieP
JarieP2w ago

Hi, Trying to get the self-hosted version up and running. Cannot figure out how to get past this er

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. Any hints?
16 Replies
Li
Li2w ago
hello guys
✪ Flamakæ
✪ Flamakæ2w ago
https://docs.convex.dev/quickstart/nextjs Trying to follow this quickstart with Nextjs (
npm create convex@latest
npm create convex@latest
) + Self Hosted convex. I am getting this. What should I do next ?
Next.js Quickstart | Convex Developer Hub
Add Convex to a Next.js project
No description
No description
Emma
Emma2w ago
What setup are you using? If it's local docker, the site url is http://127.0.0.1:3211. If you're using fly, see these docs https://github.com/get-convex/convex-backend/blob/main/self-hosted/fly/README.md#http-actions. It will be your fly app url with /http at the end
GitHub
convex-backend/self-hosted/fly/README.md at main · get-convex/conve...
The open-source reactive database for app developers - get-convex/convex-backend
lee
lee2w ago
it looks like you want the SITE_URL for use by convex auth, which i believe is the url for where you're hosting your app's frontend, so like http://localhost:8000
Emma
Emma2w ago
@Lee is right, we have many variables that use SITE_URL, sorry for the confusion
✪ Flamakæ
✪ Flamakæ2w ago
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
ucin
ucin2w ago
can we run the downloaded convex-local-backend with local postgres?
ucin
ucin2w ago
got this error
No description
ucin
ucin2w ago
./convex-local-backend --db postgres-v5 19:38:56
2025-02-15T12:39:02.724359Z INFO convex_local_backend: Starting a Convex backend
2025-02-15T12:39:02.724411Z INFO convex_local_backend: The self-host Convex backend will periodically communicate with a remote beacon server. This is to help Convex understand and improve the product. You can disable this telemetry by setting the --disable-beacon flag or the DISABLE_BEACON environment variable if you are self-hosting using the Docker image.
2025-02-15T12:39:02.724472Z INFO convex_local_backend: Sentry is not enabled.
2025-02-15T12:39:02.725461Z ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): relative URL without a base
2025-02-15T12:39:02.725479Z ERROR common::errors: Not reporting above error: SENTRY_DSN not set.
Error: relative URL without a base
./convex-local-backend --db postgres-v5 19:38:56
2025-02-15T12:39:02.724359Z INFO convex_local_backend: Starting a Convex backend
2025-02-15T12:39:02.724411Z INFO convex_local_backend: The self-host Convex backend will periodically communicate with a remote beacon server. This is to help Convex understand and improve the product. You can disable this telemetry by setting the --disable-beacon flag or the DISABLE_BEACON environment variable if you are self-hosting using the Docker image.
2025-02-15T12:39:02.724472Z INFO convex_local_backend: Sentry is not enabled.
2025-02-15T12:39:02.725461Z ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): relative URL without a base
2025-02-15T12:39:02.725479Z ERROR common::errors: Not reporting above error: SENTRY_DSN not set.
Error: relative URL without a base
Not sure where to put the connection string, I create and .env file but it didn't work.
Li
Li2w ago
same thing
lee
lee2w ago
Put it on the command line after the postgres-v5
Li
Li7d ago
what about coolify docker version? I'm also trying to use postgres when I run convex in coolify. But the convex does not start
Emma
Emma7d ago
@ucin @Li Any reason why you're running the binary directly instead of docker run or docker compose? there are other flags you might need to get everything working properly (peek in run_backend.sh). If you set the postgres url to the DATABASE_URL env var, docker compose up should just work but lmk if it doesn't Oops, sorry I just realized you're running the binary directly intentionally 🤦 . I got confused because we just released the docker setup so been thinking more about that. We can improve the error message there and the instructions. putting the connection string after postgres-v5 should work.
lee
lee7d ago
and re:coolify, there may be special instructions coming out soon; we're actively working with environments like coolify
ucin
ucin7d ago
I think most of my client production server is big bare metal server. Installing docker is not an option for them. Mostly in one server, we host many application.
Emma
Emma7d ago
Great to know! I will update the docs to make it easier to get started with the binary.

Did you find this page helpful?