Skip to main content

python flask app cannot connect to mLab

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! For the connection issue, you may want to try that work with the server's firewall disabled, as there wouldn't be anything on the cPanel side of things that keeps that from connecting properly. MongoDB is not something that is currently supported by cPanel, and due to the way the product is licensed at this time, we aren't looking to include that in a future release. You can find more details on that here:
    0
  • ntohidi
    Hey there! For the connection issue, you may want to try that work with the server's firewall disabled, as there wouldn't be anything on the cPanel side of things that keeps that from connecting properly. MongoDB is not something that is currently supported by cPanel, and due to the way the product is licensed at this time, we aren't looking to include that in a future release. You can find more details on that here:
    0
  • cPRex Jurassic Moderator
    Do you have root access to the server? If not, that's something you'd need to contact the hosting provider or datacenter to have them help with. If you have root access and are using CSF tools, we have more details on that here:
    0
  • ntohidi
    Do you have root access to the server? If not, that's something you'd need to contact the hosting provider or datacenter to have them help with. If you have root access and are using CSF tools, we have more details on that here:
    0
  • cPRex Jurassic Moderator
    There isn't a reason you would need to install CSF, although many people find that it makes managing the firewall on the system easier since it provides an interface in WHM that works with the firewall. Are you able to reach the mlab.com connection from outside your code? You could try digging that domain from the server, or you could try connecting with a telnet session if the code uses a custom port, just to see if the basic connection is working at all.
    0
  • ntohidi
    There isn't a reason you would need to install CSF, although many people find that it makes managing the firewall on the system easier since it provides an interface in WHM that works with the firewall. Are you able to reach the mlab.com connection from outside your code? You could try digging that domain from the server, or you could try connecting with a telnet session if the code uses a custom port, just to see if the basic connection is working at all.

    Yes, mlab connection is working. and I checked again, I don't have root access, and contacted GoDaddy and asked them to give me root access, but they said my hosting plan should be either vps or dedicated. my current plan is delux.
    0
  • ntohidi
    and i have a question, is it possible to use firebase instead?
    0
  • cPRex Jurassic Moderator
    Without root access there isn't going to be any troubleshooting you can do with the firewall level. I would expect Firebase to work in a similar fashion where you can connect to it remotely, although Google does provide entire hosting solutions based around Firebase as well.
    0

Please sign in to leave a comment.