I'm having trouble installing and configuring the Medusa server on an AWS Lightsail instance with a Lightsail-managed PostgreSQL database. Although I can manually connect to the database using psql without issues, the Medusa server fails to connect during installation.
I've attached error messages for review and would appreciate any help in resolving this.
#Couldn't connect to PostgreSQL using the database URL you passed. Make sure it's correct and try aga
16 messages · Page 1 of 1 (latest)
For troubleshooting purposes, will it connect to a local postgres DB?
Sorry, i forgot to mention
Medusa working fine when using local postgres db and also working good wit neon db
Ok, I believe Lightsail offers public and private URLs for DBs. Could you verify that you're using the public version of your DB? I used to have the same problem happen to me on Railway until I realized I was using the incorrect URL.
Aws db working fine when I try to connect using psql
Could it be that the port is missing from the db url when creating medusa?
I tried with port first but it's not working
Ok, put the port and change from "postgres..." to "postgresql"
They're interchangeable
Hmmm... I mean, the issue is definitely on Lightsails side rather than Medusa's because I just did a launch using Railway and I got it working without a problem. Let's see if somebody else has been able to create with Lightsail.
can you try with my aws db?
just want to confirm that it did not have any issue with lightsail instance
DM it