Hi everyone,
While creating a connection with external database I am getting following error in AEM;
{"jsonrpc":"2.0","id":"1592592345532","error":{"code":-32001,"message":"Could not establish connection: Could not create connection to database server. Attempted reconnect 3 times. Giving up.","data":{"exceptionTypeName":"org.apache.metamodel.MetaModelException","message":"Could not establish connection: Could not create connection to database server. Attempted reconnect 3 times. Giving up."}}}
FYI.., Database at localhost is working fine but while connecting database from another IP I am not able to create a connection.
Please help me to figure out the issue. I have not found any error in the logs but in the browser console I got the above mentioned error.
I just checked and found that the DB user I was using to connect with AEM data-source has no access to required database. Now issue has been resolved after giving database access permission to db user but only on AEM localhost but not on the AEM cloud instance. Now I am getting following error;
{"jsonrpc":"2.0","id":"1592596086498","error":{"code":-32001,"message":"Could not establish connection: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.","data":{"exceptionTypeName":"org.apache.metamodel.MetaModelException","message":"Could not establish connection: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server."}}}
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Communications link failure, then it means that the DB isn't reachable at all. This can have one or more of the following causes:
To solve the one or the other, follow the following advices:
Please check https://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-...
Views
Replies
Total Likes
Hi Ramandeep,
Are you using mysql DB? Can you check with the new mysql connector? Also, try restarting the server once.
https://mvnrepository.com/artifact/mysql/mysql-connector-java
Thanks,
Vaishali
Communications link failure, then it means that the DB isn't reachable at all. This can have one or more of the following causes:
To solve the one or the other, follow the following advices:
Please check https://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-...
Views
Replies
Total Likes
Agree with @arunpatidar In my opinion, it could be a firewall issue.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies