EC2 Jasper to EC2 Mongo

Hello, I am trying to connect Jasper running on an EC2 instance to a Mongo server running on EC2.   I can connect to both servers externally with no issue.  I then unblocked all incoming TCP ports on the Mongo server for the Jasper EC2 instance IP address.  Jasper just tells me that connection failed. 

clifton.dillman's picture
Joined: Jan 23 2014 - 10:20am
Last seen: 9 years 6 days ago

Hi,

Can you please SSH to your instances and test ping to the respective instance? Also, can you share the connection configuration and error you get from Jaspersoft?

Thanks,

Assaf

abroitman - 9 years 2 months ago

2 Answers:

Assaf is right SSH to the instances and see if they can see each other. In a standard AWS deployment both will be in different networks and will not be able to see each other. If both are in the same account you can try using the internal AWS IP (check the AWS Management Console).

If you want to do a quick test you can try doing an SSH Tunnel from the Jasper machine to the Mongo Machine. See an example here: https://support.cloud.engineyard.com/entries/21009887-Access-Your-Databa...

marianol's picture
15734
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 5 months ago

Jaspersoft was not communicating with the mongo server over 27017 initially.  I had to open all ICMP ports for it to recognize the connection.  I can't find this in any documentation.

clifton.dillman's picture
Joined: Jan 23 2014 - 10:20am
Last seen: 9 years 6 days ago
Feedback
randomness