electron-release-server
electron-release-server copied to clipboard
Error on using Mongodb, outdated packages
I tried using mongodb instead of Postgres and ran into some errors.
Changed sails.config.model.connection
to mongodb
. Installed sails-mongo
latest version. On running the server, I got following error
error: Error:
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Cannot initialize Waterline.
The installed version of adapter `sails-mongo` is too new!
Please try installing a version < 1.0.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
at /release-server/node_modules/waterline/lib/waterline.js:90:15
at /release-server/node_modules/waterline/node_modules/lodash/index.js:3073:15
at baseForOwn (/release-server/node_modules/waterline/node_modules/lodash/index.js:2046:14)
at /release-server/node_modules/waterline/node_modules/lodash/index.js:3043:18
at Function.<anonymous> (/release-server/node_modules/waterline/node_modules/lodash/index.js:3346:13)
at module.exports.Waterline.initialize (/release-server/node_modules/waterline/lib/waterline.js:86:7)
at buildWaterlineOntology (/release-server/node_modules/sails-hook-orm/lib/build-waterline-ontology.js:45:19)
at Array.async.auto._buildOntology (/release-server/node_modules/sails-hook-orm/lib/initialize.js:388:7)
at listener (/release-server/node_modules/sails-hook-orm/node_modules/async/lib/async.js:605:42)
at /release-server/node_modules/sails-hook-orm/node_modules/async/lib/async.js:544:17
at _arrayEach (/release-server/node_modules/sails-hook-orm/node_modules/async/lib/async.js:85:13)
at Immediate.taskComplete (/release-server/node_modules/sails-hook-orm/node_modules/async/lib/async.js:543:13)
at processImmediate (internal/timers.js:461:21)
at process.topLevelDomainCallback (domain.js:138:15)
at process.callbackTrampoline (internal/async_hooks.js:124:14)
I don't think trying to install the version < 1.0 makes sense because the supported mongodb version for that would be <3.6 which mongodb has stopped supporting. The minimum required mongodb supported version must be 4.0. So that brings us to make the code work for latest sails mongo version (2.x or at least 1.x). This might require upgrading the sails version to v1.x as well.
Hi, I've pushed some major changes in addition to bringing in PRs that others had contributed. Please test with v2.1.0 and let me know how it goes :) https://github.com/ArekSredzki/electron-release-server/releases/tag/v2.1.0