grimzy / laravel-mysql-spatial

MySQL Spatial Data Extension integration with Laravel.
Other
790 stars 309 forks source link

Getting "SQLSTATE[HY000] [2002] Connection refused" when trying to deploy on AWS #176

Open PedroReichert opened 3 years ago

PedroReichert commented 3 years ago

Greetings, I'm trying to deploy my commit to an AWS EC2 running docker (same config as my local docker) through CodePipeline, but I'm getting the error of the image below.

Locally, everything runs fine, and when I uninstall the laravel-mysql-spatial package from the commit and send it to AWS, it's successfully installed, meaning the problem has to do with the packaged and something in AWS. But I tried everything I know, and now I'm running out of ideas, that's why I came for you wizards of GitHub!

Thank you for tour attention!

image

aprivette commented 2 years ago

I had the same issue except in Github Actions. In my case I was able to get around this issue by switching away from the database cache driver. I'm still not super sure why this is a conflict, but I'm happy with moving to Redis!