Jump to content

Outgoing connection to Aiven PostgreSQL is refused (ECONNREFUSED)


Recommended Posts

Posted

Hello Heliohost Support,

I am hosting a Node.js application on your servers.
The app needs to connect to an external PostgreSQL database hosted on Aiven, but the connection is always refused from the Heliohost environment.

Here is the connection URL (redacted for security):

postgres://<user>:<password>@pg-service-dm-khanin-project.d.aivencloud.com:23579/defaultdb

When the application starts, I get the following error:

SequelizeConnectionRefusedError: connect ECONNREFUSED 85.9.195.148:23579

The same URL works perfectly on my local machine, so the Aiven service is reachable and accepts connections.

This suggests that outgoing connections from Heliohost to this host/port combination (pg-service-...aivencloud.com:23579) are blocked or filtered.

Could you please confirm:

  1. Whether outgoing connections to custom ports (like 23579) are allowed from Heliohost servers?

  2. Whether there are any firewall or network restrictions preventing connections to external PostgreSQL services?

  3. If such connections can be enabled for my account or server?

This issue prevents the backend from accessing the database in production.

Thank you!

Posted
Quote
  1. Whether outgoing connections to custom ports (like 23579) are allowed from Heliohost servers?

This is your issue. Nonstandard outbound ports are blocked. Are you able to change the remote end's port to something standard (like 5432), or move the database to a server where a normal port can be used?

If not, I can escalate this to see if the port in question can be opened.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...