Hi Noomen, Welcome!

I’m wondering if the IP address on your app instance changed… and the new IP is not allowed in your MongoDB Atlas IP access list.

To check… Go to your MongoDB Atlas dashboardNetwork AccessIP Whitelist, and make sure your cPanel server’s IP address is added. If the server’s IP changes frequently, you might want to consider using 0.0.0.0/0 temporarily (this allows all IPs), but this should be done with caution for security reasons.

Next, I’d verify that the user you’re using to connect from your app still has the correct permissions. If for some reason, the user’s role was modified, it could result in denied access.

In the Atlas dashboard, go to Database Access and ensure your user still has the readWrite role or whatever roles are necessary for your app.

Hope this helps… let us know how you make out.
Mike

1 Like