Skip to content
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

Not able to connect with external database on 3306 port #534

Closed
FenilShah opened this issue Aug 8, 2016 · 10 comments
Closed

Not able to connect with external database on 3306 port #534

FenilShah opened this issue Aug 8, 2016 · 10 comments

Comments

@FenilShah
Copy link

I am using amazon RDS in my application, and want to connect with amazon rds which is running on 3306 port number. It is getting time out.

@TylerJewell
Copy link
Contributor

@FenilShah - we do not do anything to block access to external ports from one of our hosted properties like codenvy.com or beta.codenvy.com. Are you accessing services that perhaps are behind a firewall? It may be RDS, but there may not be a clean connection from our servers to that endpoint.

@FenilShah
Copy link
Author

@TylerJewell I am trying to check port status on codenvy. But it is blocking with I don't have permission to access iptables. See the attached screenshot.
image 6

@ghost
Copy link

ghost commented Aug 9, 2016

@FenilShah there's nothing on beta.codenvy.com that blocks or somehow interferes with outbound connections.

Are you sure your database is set up to accept external connections?

@FenilShah
Copy link
Author

Yes. I did open it for all IP. I can connect it with my local machine but not able to connect with beta.codenvy.com. It is getting time out.

@ghost
Copy link

ghost commented Aug 9, 2016

@FenilShah I have just tested a simple php script that connects to a remote DB over 3306 port. No issues.

Can you connect to your DB from a local machine?

@FenilShah
Copy link
Author

Yes, I am able to connect amazon RDS from my local machine, same app is working in my local. Even I also tried to test my app by installing mysql server in codenvy. It works fine but I don't know why it is not able to connect to amazon RDS. Stuck with connectivity.

@ghost
Copy link

ghost commented Aug 9, 2016

Perhaps you have to whitelist beta.codenvy.com IP?

@FenilShah
Copy link
Author

Let me check. And will get back to you. Thanks.

@ghost ghost added the kind/question label Aug 10, 2016
@ghost
Copy link

ghost commented Aug 10, 2016

@FenilShah let me know if you need IP addresses of beta.codenvy.com machine nodes

@FenilShah
Copy link
Author

@eivantsov Yes, you were right. It was my RDS blocking this codenvy machine IP. That's ok, it's my just development database server. So I opened for all IPs, now I am able to connect. Thank you so much for your kind support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants