How to install MongoDB database server in Plesk?

Follow

Comments

8 comments

  • Avatar
    Alvaro Garcia

    Hi Robert, i have done what you say and I get the following error, what can it be?

    Error: {"message":"driver failed programming external connectivity on endpoint mongo (ee36c8720ed12a1cd8b3cac64bdcd552544415f64be1ea0e6b998ebf49fd75c6): (COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 27017 -j ACCEPT' failed: iptables: No chain/target/match by that name.\n)"}

     

     

    Thanks!!

  • Avatar
    Ivan Postnikov

    Hello @Alvaro, as I can see the same error was discussed here: https://talk.plesk.com/threads/docker-doesnt-start-any-single-image-iptables-error-bug.341757/

    As a resolution, the server was restarted, have you tried it?

     

    Another workaround was discussed here: https://github.com/moby/moby/issues/1871

  • Avatar
    Alvaro Garcia

    Thanks @Ivan, one last question, how to enable the auth on the mongodb instance?

    With the enviroment variable AUTH = yes ?

  • Avatar
    Ivan Postnikov

    Hello @Alvaro,

    Please, check this link.

    If it would not help, contact the container developers.

  • Avatar
    Mattia Di Giuseppe

    How can i configure mongo shell? If i type mongo the shell tell me to install mongo from apt.

    Thanks

  • Avatar
    Alexandr Bashurov

    @Mattia Di Giuseppe

    The shell client has to be installed on the host server indeed. You may do it as follows:

    # apt install -y mongodb-clients

    Article was updated to mention it.

  • Avatar
    Mattia Di Giuseppe

    @Alexandr Bashurov

    Yes I have fixed it but now I have problems with web client for Mongo. I have installed pecl extension but any of web clients works. Can u help me? Thanks 

  • Avatar
    Alisa Kasyanova

    @Mattia Di Giuseppe

    Hi! You may search for any errors in log files and check them in our KB articles or MongoDB documentation. You may also contact MongoDB support since they are experts in MongoDB and can help you with the setup.

Please sign in to leave a comment.

Have more questions? Submit a request