How long does it take for a generated public domain to work?

10 months ago

I'm trying to connect to a postgresql link but it keeps timing out, and the web shows a 404.

Created it about an hour ago.

Solved

0 Replies

10 months ago

I'm not sure what postgres has to do with generating a domain? perhaps you are misunderstanding something, could you provide more context?


10 months ago

n/a


10 months ago

psql -h postgres-production-c626.up.railway.app -p 8080 -U railway -d railway
psql: error: connection to server at "postgres-production-c626.up.railway.app" (35.213.158.48), port 8080 failed: Operation timed out
Is the server running on that host and accepting TCP/IP connections?


10 months ago

you need to use a TCP proxy for databases


10 months ago

Before I look how to do that, I'm trying to reset my umami password and they're saying I have to do it in the DB. Is there a quicker way? Tried the CLI tools, but that's not going to plan either lol (% railway connect

Select service Postgres
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: role "railway" does not exist)


10 months ago

they are correct, you would need to access the database to do that, and to access the database you need to use the tcp proxy


10 months ago

adding a TCP proxy is covered in the template overview


10 months ago

Ok, will have a look there. Thanks 🙂


10 months ago

Hmm, not sure why this isn't working still. I added the 5432 TCP proxy, redeployed with new settings. psql -h roundhouse.proxy.rlwy.net -p 35459 -U railway -d railway
psql: error: connection to server at "roundhouse.proxy.rlwy.net" (35.213.135.65), port 35459 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.


10 months ago

show me a screenshot of your public networking please


10 months ago

1265895492500586500


10 months ago

and 5432 is set as a variable


10 months ago

what is the start command in use?


10 months ago

/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"


10 months ago

That's just the template default I think


10 months ago

yep that's correct, that's what I've set it to, just needed to make sure it wasn't removed or modified


10 months ago

please send the deployment logs for postgres -



10 months ago

are you perhaps behind a firewall of some kind? hotel, work, school, etc


10 months ago

no, using my phone's hotspot


10 months ago

ISP firewall?


10 months ago

With the CLI tools, using railway connect should work regardless right?


10 months ago

No firewall afaik


10 months ago

No, the cli simply calls out to psql with pre defined flags


10 months ago

don;t have any issues connecting to anything


10 months ago

most things don't run on port 35459


10 months ago

nmap -p 35459 roundhouse.proxy.rlwy.net
Starting Nmap 7.95 ( https://nmap.org ) at 2024-07-25 13:14 AWST
Nmap scan report for roundhouse.proxy.rlwy.net (35.213.135.65)
Host is up (0.29s latency).
rDNS record for 35.213.135.65: 65.135.213.35.bc.googleusercontent.com

PORT STATE SERVICE
35459/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 0.71 seconds


10 months ago

can you re-deploy (not restart) the database?


10 months ago

ok


10 months ago

hmm, seems something is working


10 months ago

we like when things work!


10 months ago

Ok, I might have to update psql from 14 to 15 too.


10 months ago

I have too many templates to remember, what version of Postgres is in use for umami?


10 months ago

15 alpine


10 months ago

but also, you can deploy dbgate into the project and use that to manage your database, I've used dbgate to reset a password on umami before with great success


10 months ago

Right, now me and chatgpt are going to figure this one out https://github.com/umami-software/umami/discussions/2483 <:poggers:720701334659268700>


10 months ago

with dbgate you can just go in and update that value and done


10 months ago

where do I set that up? Variables?


10 months ago

Or just deploy that on the same instance?


10 months ago

you simply deploy the dbgate template


10 months ago

yeah, playing with it now


10 months ago

fkn hell, remind me not to lose my umami password again lol


10 months ago

time to start using a password manager


10 months ago

but hey, as long as you've done it once the second time will be easy


10 months ago

I do, it just didn't save for some reason haha Yeah, best way to learn


10 months ago

sweet, that worked!


10 months ago

Thanks for the help


10 months ago

Should I delete the logs etc from here? Looks like it's not provate


10 months ago

it's not private, but nothing sensitive was shared


Status changed to Solved brody 9 months ago


How long does it take for a generated public domain to work? - Railway Help Station