-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOOB Question: How To Connect to Cluster (Hetzner)? #824
Comments
Hi @nelsonic
Thanks!
Our solution is configured by default for production environment, which is why public access is disabled by default. To connect to the database, your application must be on the same network as the database cluster. If you require access to the database from the internet, enable public access in the load balancer settings. And configure the Firewall rules accordingly. |
In a future version, the ability to configure public access will be added in the UI - #756 |
Great! I’m glad to hear that you can now connect to the database. Next, just make sure to place the application servers on the same network. We also plan to add the ability to specify the name of an existing network directly in the UI. |
Hi @vitabaks, 👋
We've deployed a
Postgres
cluster toHetzner
usingautobase
. 🚀Following your docs: https://autobase.tech/docs/deployment/hetzner 📖 👌
(good work on the re-brand BTW 😉)
But it's unclear how to connect to the cluster ... 🤷♂️
It doesn't appear as though there is a single entry point (load balancer). 🤔
These are the servers:
![image](https://private-user-images.githubusercontent.com/194400/391223807-78a0786c-f73c-4fdd-ba1c-abed29b4d7d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQwODcsIm5iZiI6MTczOTEwMzc4NywicGF0aCI6Ii8xOTQ0MDAvMzkxMjIzODA3LTc4YTA3ODZjLWY3M2MtNGZkZC1iYTFjLWFiZWQyOWI0ZDdkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxMjIzMDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02YTI4MTYwNTQ0ZDhiYTlhYmNlYTUyNmE4OWU4Njk3ZjI0NzczMzI3YzM4YjVhYTJkYjM1MDE1MThjYTZjMjAwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Ubzv5eLWPdMTZ6_B125sTwLeix8w_E4zCs-4Eol5u_Y)
And load balancers:
But they say "Public network is disabled" when we hover over the IP:
![image](https://private-user-images.githubusercontent.com/194400/391223904-fcc75abf-7867-423a-96cd-29e6fd2e2917.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQwODcsIm5iZiI6MTczOTEwMzc4NywicGF0aCI6Ii8xOTQ0MDAvMzkxMjIzOTA0LWZjYzc1YWJmLTc4NjctNDIzYS05NmNkLTI5ZTZmZDJlMjkxNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxMjIzMDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NTExY2E5NzdmZWRmZmU2MjRiMDEyOWVmYTAwYTA0NjkzYjBmZGI2ZDdlYzAxODkzMmYxNzM1ZjJjYTI4ODhlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.L5aRpW7GqlyrSSWKMV2ZfETbBs0wbXiQuOppXZTqp6k)
So it's unclear how to connect ...
Reading the docs: https://autobase.tech/docs/management/basic-commands#postgresql
![image](https://private-user-images.githubusercontent.com/194400/391224484-2e48367b-76d7-4e06-9796-b81d1a9ce07f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQwODcsIm5iZiI6MTczOTEwMzc4NywicGF0aCI6Ii8xOTQ0MDAvMzkxMjI0NDg0LTJlNDgzNjdiLTc2ZDctNGUwNi05Nzk2LWI4MWQxYTljZTA3Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxMjIzMDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMzdiMDI5MDQ2NDEyMDAwMmE4NDMyYTE5MTgwNGQyMjgyOTAwOTIyMzc5MmM4ZTk2YWMxNTBiYjdhYzlkNzQ0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Cq2UtRrXtgv8h3y_uMP8zjCN-f9XK00wV7drQ48GXL8)
We can connect to
![image](https://private-user-images.githubusercontent.com/194400/391224760-d477053c-9275-4c15-acac-ece27795d709.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQwODcsIm5iZiI6MTczOTEwMzc4NywicGF0aCI6Ii8xOTQ0MDAvMzkxMjI0NzYwLWQ0NzcwNTNjLTkyNzUtNGMxNS1hY2FjLWVjZTI3Nzk1ZDcwOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxMjIzMDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYmJiOTVhZjY2YWJiNjZkOTNhNWM0OGFmOTc0MGJiM2MwZTVlMTE4OWY5MTA4ZTIwMjUzZmM5YWViMTZmYmJmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.J-N5qCtZb_OW_qH2hc_01RMNw2AbrWL3zqegAK-3cuo)
Postgres
byssh
-ing into the VM e.g:And run the command (from your docs):
psql -h 127.0.0.1 -p 5432 -U postgres -d postgres -c "select version()"
We get the following output:
But obvs we don't want to have to
ssh
into a VM to connect to thePostgres
DB on it ...If we
ssh
into the VM that has theautobase
console running on it:and then attempt to connect to one of the VM/nodes that was deployed/configured by
autobase
:Same for attempting to connect via the
loadbalancer
internal IP:Both just hang and time-out:
Have tried all combinations of IP address (public/internal) & Port Number and no result.
What am I doing wrong? 🤷♂️
Any help much appreciated. Thanks! 🙏
The text was updated successfully, but these errors were encountered: