Jumping Back
Jumping Back•2mo ago

Mind if I ask do you use coolify? Or

Mind if I ask do you use coolify? Or something else? I use coolify and with internal it gives me the same error u wrote and with public url it just shows me postgres timeout
20 Replies
Oren
Oren•2mo ago
hey yes I use coolify but not the template I have my own compose file following the convex docs for easier maintaining I explained my setup here: https://discordapp.com/channels/719702312431386674/1383661609758490774/1385033690530447400 I'm also a maintainer at coolify so happy to help if you run in to any issues if the public url doesn't work as well make sure to check your firewall rules at vps provider level as well as on machine like ufw for the internal url you must enable "connect to predefined network" checkbox for your services
Good
Good•2mo ago
Hi! Oren same boat here I checked the connect to predifined networks in my convex service and it still shows
2025-07-11T18:34:45.258666396Z 2025-07-11T18:34:45.255069Z DEBUG common::errors: error connecting to server: failed to lookup address information: Temporary failure in name resolution
2025-07-11T18:34:45.258718864Z
2025-07-11T18:34:45.258723531Z Caused by:
2025-07-11T18:34:45.258726936Z failed to lookup address information: Temporary failure in name resolution
2025-07-11T18:34:45.258729800Z
2025-07-11T18:34:45.258732725Z Stack backtrace:
2025-07-11T18:34:45.258735569Z 0: <unknown>
2025-07-11T18:34:45.258738624Z 1: <unknown>
2025-07-11T18:34:45.258741669Z 2: <unknown>
2025-07-11T18:34:45.258743942Z 3: <unknown>
2025-07-11T18:34:45.258747026Z 2025-07-11T18:34:45.258539Z DEBUG common::errors: Not reporting above error: SENTRY_DSN not set.
2025-07-11T18:34:45.263384318Z Error: error connecting to server: failed to lookup address information: Temporary failure in name resolution
2025-07-11T18:34:45.258666396Z 2025-07-11T18:34:45.255069Z DEBUG common::errors: error connecting to server: failed to lookup address information: Temporary failure in name resolution
2025-07-11T18:34:45.258718864Z
2025-07-11T18:34:45.258723531Z Caused by:
2025-07-11T18:34:45.258726936Z failed to lookup address information: Temporary failure in name resolution
2025-07-11T18:34:45.258729800Z
2025-07-11T18:34:45.258732725Z Stack backtrace:
2025-07-11T18:34:45.258735569Z 0: <unknown>
2025-07-11T18:34:45.258738624Z 1: <unknown>
2025-07-11T18:34:45.258741669Z 2: <unknown>
2025-07-11T18:34:45.258743942Z 3: <unknown>
2025-07-11T18:34:45.258747026Z 2025-07-11T18:34:45.258539Z DEBUG common::errors: Not reporting above error: SENTRY_DSN not set.
2025-07-11T18:34:45.263384318Z Error: error connecting to server: failed to lookup address information: Temporary failure in name resolution
the public url works file when access via tableplus but throws postgres connection timeout also my normal convex works fine when not connecting to db
Oren
Oren•2mo ago
can you check if your postgres url starts with "postgresql://" and doesn't have db name at the end
Good
Good•2mo ago
checked ā˜‘ļø
Oren
Oren•2mo ago
it should be like: postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{PRIVATE_URL}}:${{PGPORT}} thats the value for POSTGRES_URL env var in your backend service not working public url makes me think it is either the env var setup incorrectly, you shouldn't have problem with public url at all also remember DO_NOT_REQUIRE_SSL=true
Good
Good•2mo ago
Good
Good•2mo ago
its set to 1
Oren
Oren•2mo ago
Good
Good•2mo ago
my whole setup is https://discord.com/channels/1019350475847499849/1393081247152078858 here, um i do not see any particular difference i tried with true it still fails to look up want me to try it with ur docker compose? i am currently using the default convex github recommends not the template
Oren
Oren•2mo ago
my compose should be similar to convex docs as well, one thing I noticed in your recording is you are using pgvector's pg image not sure if it might cause any difference
Good
Good•2mo ago
it does not I tried with both i have been trying this for like 6 hrs good old missing a semi colon i bet šŸ™‚
Oren
Oren•2mo ago
yeah maybe try with my compose setup as a new service if not happy to jump on a call to compare our setups having problem with public url makes me question something in the setup is off, I never had a problem with public url
Good
Good•2mo ago
i think do not require ssl to true instead of 1 might fix the issue i think i haven't tried that with public url but i will try your setup and if not i might come and seek ur guidance
Jumping Back
Jumping BackOP•2mo ago
Hmm not working I am also gonna try ur setup it's 1 am here so probably tomorrow
Good
Good•2mo ago
Oren everything works if i copy ur setup in tanstack thread ty only the integrations are not working any idea? they recently made it so that integrations work when self hosting I am on Convex v1.25.1
Jumping Back
Jumping BackOP•2mo ago
Honestly It could be a dashboard version related thing since we are using convex backend latest while using a select version of dashboard Yup changing the dashboard version fixes it Thank you oren
Oren
Oren•2mo ago
happy to hear that, good luck with your projects folks
Dulli
Dulli•2mo ago
sorry to hijack this thread, came across your convex self hosted setup, and tried it, but it seems like i keep running into
2025-07-16T02:03:08.423901910Z 2025-07-16T02:03:08.423703Z INFO convex_local_backend: Starting a Convex backend
2025-07-16T02:03:08.424452452Z 2025-07-16T02:03:08.424266Z INFO convex_local_backend: Sentry is not enabled.
2025-07-16T02:03:08.465667375Z 2025-07-16T02:03:08.465428Z ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): Error occurred while creating a new object: error connecting to server: failed to lookup address information: Temporary failure in name resolution: error connecting to server: failed to lookup address information: Temporary failure in name resolution: failed to lookup address information: Temporary failure in name resolution
2025-07-16T02:03:08.471220079Z Error: Error occurred while creating a new object: error connecting to server: failed to lookup address information: Temporary failure in name resolution
2025-07-16T02:03:08.423901910Z 2025-07-16T02:03:08.423703Z INFO convex_local_backend: Starting a Convex backend
2025-07-16T02:03:08.424452452Z 2025-07-16T02:03:08.424266Z INFO convex_local_backend: Sentry is not enabled.
2025-07-16T02:03:08.465667375Z 2025-07-16T02:03:08.465428Z ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): Error occurred while creating a new object: error connecting to server: failed to lookup address information: Temporary failure in name resolution: error connecting to server: failed to lookup address information: Temporary failure in name resolution: failed to lookup address information: Temporary failure in name resolution
2025-07-16T02:03:08.471220079Z Error: Error occurred while creating a new object: error connecting to server: failed to lookup address information: Temporary failure in name resolution
this error, when trying to implement my postgres url. is it true that once i start a convex backend/ dashboard instance that is built on the base sqlite, i cannot simply add a postgres url to env var and force it to use my postgres db? so i just simply need to recreate a new convex self hosted instance with the right postgres url from the start?
Oren
Oren•2mo ago
I would recommend creating a new instance, you can backup the existing one with "npx convex export" and then in new instance with postgres "npx convex import" https://docs.convex.dev/database/import-export to not lose any data errors you shared doesn't seem to be related to that, seems like it is failing to resolve addresses e.g. internal urls I know once you connect postgres, it will throw if you try to go back to sqlite but never tried with your steps before, might be possible
Dulli
Dulli•2mo ago
right, i was following half and half, and knew i messed up somewhere in the middle. because i started off directly with coolify's current docker compose files, and then tried replicating yours by simply copy pasting the contents of the compose file. now im doing a clean fresh installation directly from yours, and it seem thats what i shouldve done from the start. thanks alot!!

Did you find this page helpful?