`mongo` binary appears to be missing from the Cloudron base image 4.0.0
-
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
- This will insert the command
- 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.
- Open web terminal for app that uses MongoDB
-
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.
@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 usemongo
. -
@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 usemongo
.@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 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 ^^
@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.
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
-
@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.
@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 Do I need to make a second post or add this somewhere else to get the
MongoDB
button in the web terminal fixed?