R
Railway

✋|help

postgres db service not accessible from my client

SSSiraj Samsudeen9/12/2023
This morning, the DB refuses to accept connections and when I checked the logs, I saw this: does this cause DB downtime? any way to debug what is causing my DB instance to be unavailable?
2023-09-11 22:03:57.212 UTC [10992] LOG: the "timescaledb" extension is not up-to-date
2023-09-11 22:03:57.212 UTC [10992] HINT: The most up-to-date version is 2.11.2, the installed version is 2.1.1.
2023-09-12 02:57:22.262 UTC [11873] LOG: invalid length of startup packet

project: 338a4c15-5f76-4fd4-a068-7f68f443c4c4
BBrody9/12/2023
but you can access it?
SSSiraj Samsudeen9/12/2023
when i go to railway interface, i am able to see the tables. when I try to access it from python code or TablePlus editor, both are throwing timeout error
BBrody9/12/2023
are you sure you are using the correct credentials?
SSSiraj Samsudeen9/12/2023
yes, till yesterday night, the code was working and today, i reran the code and it results in an error
BBrody9/12/2023
give the database a restart
restart it from its settings
SSSiraj Samsudeen9/12/2023
ok. i was about to do it - but wanted to know whether that timescaledb extension issue and invalid length of startup had an issue.
BBrody9/12/2023
ive seen that plenty, isnt a real problem
SSSiraj Samsudeen9/12/2023
ok thanks
restarted, still same issue - both python code and Tableplus is not able to connect
any guidance to debug the issue in a step-by-step fashion?
BBrody9/12/2023
try through a vpn?
SSSiraj Samsudeen9/12/2023
i don't use vpn
BBrody9/12/2023
i was asking you to use one to connect
try spinning up another postgres database and try connecting to that
SSSiraj Samsudeen9/12/2023
sorry, i am not familiar with using vpn -how does that vpn step help? can you please help me understand
BBrody9/12/2023
thats out of the scope of these help threads, sorry
let me know how this goes
SSSiraj Samsudeen9/12/2023
sorry, i am new here, so i may not understand your rules and boundaries. since you asked me to connect using vpn, i wanted to understand how that helps in diagnosing the problem. i would like to understand the solution before trying it out - is that not ok?
BBrody9/12/2023
its fine but i just dont want to explain what a vpn is
i thought everyone knows what vpns do
SSSiraj Samsudeen9/12/2023
i know what vpn is, and i have used it connect to my corporate emails, but here in this specific step,i am not sure how it helps.
BBrody9/12/2023
let me know how this goes
forget i asked about a vpn
SSSiraj Samsudeen9/12/2023
sorry about the vpn discussion.
BBrody9/12/2023
^
SSSiraj Samsudeen9/12/2023
new db service up and running, but that is not connectable from tableplus. maybe, some issue with my network as i am in an another office today, may be they could have blocked some ports 🙂
BBrody9/12/2023
yep that was what I was gonna tell you if you came back and said the new database doesn't work either
looks like your work has a firewall, try again when you are on your home network
SSSiraj Samsudeen9/12/2023
is this why you are suggesting to use a VPN? since that can bypass the firewall? now, i am beginning to get it
BBrody9/12/2023
yes exactly
SSSiraj Samsudeen9/12/2023
ok, i have done research and downloaded a vpn client and able to connect. thanks for your help.
it would have been easier for me to try this step if you could have said something like this, Brody
---
there might be some firewall blocking issue that is preventing your DB client from connecting - a quick way to check this would be to use a VPN to bypass all firewall restrictions - if it works under VPN, then you know that the service is up and the root cause of the problem is the firewall.
though i have used a vpn client (some expensive client paid by my earlier employers), i never have used a free one for personal use - so, that is why i wanted to understand this step - as i need to install some new software
BBrody9/12/2023
I didn't know it was a firewall issue at the time, I was just asking you to try basic debugging steps and didn't feel the need to explain something as mundine has what a VPN is
SSSiraj Samsudeen9/12/2023
i see your point, Brody. sorry for giving you the trouble. have a nice day and thanks for helping me out
BBrody9/12/2023
no worries!

Looking for more? Join the community!

Recommended Posts
nginx revere proxy 503 errorHi! I wanted to set up a reverse NGINX proxy with mixpanel. I used the dockerfile provided by them@railway/cli not running correctly when installed as a Bun devDependencyI have `@railway/cli` installed as a `devDependency` in my project. This has worked fine with me whiBun installHi, im trying to deploy a bun app to railway, nixpacks seems to have picked it up, but is trying to Memory MetricsDo the memory metrics represent the entire memroy being used by all the active process in that serviCan we easily add some config files for a dockerhub type of deployment ?https://docs.railway.app/develop/services#docker-image we can deploy from dockerhub and that's very TLS handshake timeout during transition from build to deployFull log message: ``` [us-west1] ========================= Using Detected Dockerfile =============Can I deploy an image from dockerhub directly ?Hello, all said in the title. I wanted to setup an opentelemetry collector and play with https://hubBuild->deploy Process suddenly brokei feel like you guys changed the way your containers are structured and it broke my build->deploy prRailway server sleep even purchase Hobby planhey guys, I paid for Hobby plan and I was successful deploy my nodejs server on railway last night, Node.js v18.12.1 is not supported by Astro, how to update to : ">=18.14.1"?Anyone can help me, please? Got this error while building Astro, how to update to : ">=18.14.1"? Tbundo railway have support for bun in the near feature?Issue Deploying Next.js 13 with Bun 1.0For better or worse I've decided to follow the hype train and am trying to get Bun 1.0 working with Pricing QuestionsI'm looking for some clarification regarding Railway's pricing structure. I've noticed that the 'HobDeploying via github always crashes after 4-5 minutesI am creating a discord bot and when I commit to github and deploy it, it starts fine at first. But Deploying bun 1.0in bun cause I don't need to build files is their somehow I can skip the build step since it alreadyWhere can you store Media Files?I'm using Django and have added a blog module to it where users can upload their own images. I was wEasy (?) shared variables questionThe environment contains the excellent Payload CMS template, attendant Mongo DB, and a Next.js frontPlan update issueIm having a issue with plan update. It just shows: Problem processing payment method and I triple cCan't create an account: Device requesting login is not supported. Please try again from a secure coTrying to create a new Railway Account, but getting this error: ```Device requesting login is not saccess to resource inside replicahi, when we setup an instance to have 2 replicas, how do we get the resource related to 1 of the re