R
Railway•4mo ago
Bob Jones

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

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.
37 Replies
Percy
Percy•4mo ago
Project ID: N/A
Brody
Brody•4mo ago
I'm not sure what postgres has to do with generating a domain? perhaps you are misunderstanding something, could you provide more context?
Bob Jones
Bob JonesOP•4mo 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?
Brody
Brody•4mo ago
you need to use a TCP proxy for databases
Bob Jones
Bob JonesOP•4mo 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)
Brody
Brody•4mo 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 adding a TCP proxy is covered in the template overview
Bob Jones
Bob JonesOP•4mo ago
Ok, will have a look there. Thanks 🙂 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.
Brody
Brody•4mo ago
show me a screenshot of your public networking please
Bob Jones
Bob JonesOP•4mo ago
No description
Bob Jones
Bob JonesOP•4mo ago
and 5432 is set as a variable
Brody
Brody•4mo ago
what is the start command in use?
Bob Jones
Bob JonesOP•4mo ago
/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432" That's just the template default I think
Brody
Brody•4mo ago
yep that's correct, that's what I've set it to, just needed to make sure it wasn't removed or modified please send the deployment logs for postgres - https://bookmarklets.up.railway.app/log-downloader/
Brody
Brody•4mo ago
are you perhaps behind a firewall of some kind? hotel, work, school, etc
Bob Jones
Bob JonesOP•4mo ago
no, using my phone's hotspot
Brody
Brody•4mo ago
ISP firewall?
Bob Jones
Bob JonesOP•4mo ago
With the CLI tools, using railway connect should work regardless right? No firewall afaik
Brody
Brody•4mo ago
No, the cli simply calls out to psql with pre defined flags
Bob Jones
Bob JonesOP•4mo ago
don;t have any issues connecting to anything
Brody
Brody•4mo ago
most things don't run on port 35459
Bob Jones
Bob JonesOP•4mo 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
Nmap: the Network Mapper - Free Security Scanner
Nmap Free Security Scanner, Port Scanner, & Network Exploration Tool. Download open source software for Linux, Windows, UNIX, FreeBSD, etc.
Brody
Brody•4mo ago
can you re-deploy (not restart) the database?
Bob Jones
Bob JonesOP•4mo ago
ok hmm, seems something is working
Brody
Brody•4mo ago
we like when things work!
Bob Jones
Bob JonesOP•4mo ago
Ok, I might have to update psql from 14 to 15 too.
Brody
Brody•4mo ago
I have too many templates to remember, what version of Postgres is in use for umami?
Bob Jones
Bob JonesOP•4mo ago
15 alpine
Brody
Brody•4mo 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
Bob Jones
Bob JonesOP•4mo ago
Right, now me and chatgpt are going to figure this one out https://github.com/umami-software/umami/discussions/2483 :poggers:
GitHub
changed my password but lost it. How to get it back · umami-softwar...
I previously deployed Umami version 1.39.5 with MySQL as the database. Now, due to server migration, I need to redeploy Umami and MySQL. I plan to import the existing MySQL data to the new MySQL se...
Brody
Brody•4mo ago
with dbgate you can just go in and update that value and done
Bob Jones
Bob JonesOP•4mo ago
where do I set that up? Variables? Or just deploy that on the same instance?
Brody
Brody•4mo ago
you simply deploy the dbgate template
Bob Jones
Bob JonesOP•4mo ago
yeah, playing with it now fkn hell, remind me not to lose my umami password again lol
Brody
Brody•4mo ago
time to start using a password manager but hey, as long as you've done it once the second time will be easy
Bob Jones
Bob JonesOP•4mo ago
I do, it just didn't save for some reason haha Yeah, best way to learn sweet, that worked! Thanks for the help Should I delete the logs etc from here? Looks like it's not provate
Brody
Brody•4mo ago
it's not private, but nothing sensitive was shared
Want results from more Discord servers?
Add your server