Update SOAJS mongo

SOAJS Kanyu is using mongo v 3.6.8 however SOAJS stingray is now using mongo 4.2.7.

You need to download the new installer from soajs.installer.zip unzip it and them download soajs.installer.include.zip unzip it and copy its content to soajs.installer/include/

Here are the step how to upgrade:

  • First you should stop SOAJS console & mongo:

    • sudo soajs console stop

    • sudo soajs mongo stop

  • Now you need to upgrade to mongo v 4.0.18 as follow:

    • run mongo binary version 4.0.18 first as follow:

      • for mac: sudo /opt/demo/soajs.installer/include/mongo-4.0.18/mongodb-osx-x86_64/bin/mongod --dbpath /usr/local/var/soajs/mongodb/ --port 32017

      • for linux: sudo /opt/demo/soajs.installer/include/mongo-4.0.18/mongodb-linux-x86_64-ubuntu1604/bin/mongod --dbpath /var/soajs/mongodb --port 32017

    • run the mongo cli as follow: mongo --port 32017

      • then run the following commands

      • > db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )

        • you should get: { "featureCompatibilityVersion" : { "version" : "3.6" }, "ok" : 1 }

      • > db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )

        • you should get: { "ok" : 1 }

    • Now that featureCompatibilityVersion is set to 4.0 as the MongoDB official documentation suggests. here is the link https://docs.mongodb.com/manual/release-notes/4.2-upgrade-standalone/

  • Shutdown mongo v 4.0.18

  • Now run mongo v 4.2.7 as follow:

    • run mongo binary version 4.2.7 first as follow:

      • for mac: sudo /opt/demo/soajs.installer/include/mongo-4.2.7/mongodb-osx-x86_64/bin/mongod --dbpath /usr/local/var/soajs/mongodb/ --port 32017

      • for linux: sudo /opt/demo/soajs.installer/include/mongo-4.2.7/mongodb-linux-x86_64-ubuntu1604/bin/mongod --dbpath /var/soajs/mongodb --port 32017

    • run the mongo cli as follow: mongo --port 32017

      • then run the following commands

      • > db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )

        • you should get: { "featureCompatibilityVersion" : { "version" : "4.0" }, "ok" : 1 }

      • > db.adminCommand( { setFeatureCompatibilityVersion: "4.2" } )

        • you should get: { "ok" : 1 }

  • Shutdown mongo v 4.2.7

  • This is it. now you can start mongo and SOAJS console as follow:

    • sudo soajs mongo start

    • sudo soajs console start