Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved `mongo` binary appears to be missing from the Cloudron base image 4.0.0

    Support
    3
    7
    51
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ChristopherMag
      ChristopherMag last edited by

      Steps to reproduce:

      • Open web terminal for app that uses MongoDB
        • Example Wekan
      • Click the MongoDB button
        • This will insert the command mongo -u "${CLOUDRON_MONGODB_USERNAME}" -p "${CLOUDRON_MONGODB_PASSWORD}" ${CLOUDRON_MONGODB_HOST}:${CLOUDRON_MONGODB_PORT}/${CLOUDRON_MONGODB_DATABASE} into the terminal
      • Press Enter
      • This results in the error message bash: mongo: command not found

      This occurs with the latest version of wekan which has the new Cloudron base image to 4.0.0.

      I am guessing that the mongo binary is not present in the 4.0.0 base image.

      I have confirmed that the first version of Paperless-NGX with the 4.0.0 base image is also missing the mongo binary.

      Currently this is causing cron jobs which use this binary to now fail when they would have succeeded in the past.

      1 Reply Last reply Reply Quote 0
      • subven
        subven last edited by

        Since base image 4.0, MongoDB 6 is in use. Instead of using the binary (mongo) like before, you should be able to use mongosh. Please take a look at the documentation.

        ChristopherMag 1 Reply Last reply Reply Quote 0
        • ChristopherMag
          ChristopherMag @subven last edited by

          @subven Gotcha, working on using mongosh instead now.

          If this is now the correct way to access Mongo then the MongoDB button in the webterminal needs to be updated to use that as currently when clicked it still tries to use mongo.

          subven 1 Reply Last reply Reply Quote 1
          • subven
            subven @ChristopherMag last edited by

            @ChristopherMag said in `mongo` binary appears to be missing from the Cloudron base image 4.0.0:

            to access Mongo then the MongoDB button in the webterminal needs to be updated

            Thats a fair point and should be added to the todo list ^^

            ChristopherMag 1 Reply Last reply Reply Quote 0
            • ChristopherMag
              ChristopherMag @subven last edited by

              @subven Thanks for the help, using mongosh with everything else the same worked perfectly, cron jobs updated and things working as expected again aside from the MongoDB button not doing what it should 🙂.

              ChristopherMag 1 Reply Last reply Reply Quote 0
              • Topic has been marked as a question  nebulon nebulon 
              • Topic has been marked as solved  nebulon nebulon 
              • ChristopherMag
                ChristopherMag @ChristopherMag last edited by

                @nebulon Do I need to make a second post or add this somewhere else to get the MongoDB button in the web terminal fixed?

                nebulon 1 Reply Last reply Reply Quote 0
                • nebulon
                  nebulon Staff @ChristopherMag last edited by

                  @ChristopherMag I will fix it up now for the next release. We were kinda aware of this already, but wanted the last release out sooner rather than later.

                  1 Reply Last reply Reply Quote 2
                  • First post
                    Last post
                  Powered by NodeBB