-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with MongoDB 6.0.2 #7275
Comments
@milarevictor Thanks for posting! We'll take a look as soon as possible. In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
My workaround was migrating to a dedicated MongoDB cluster that I could configure to run Mongo 4.4. This works so far, but, I will have to pay around 50 usd / month extra (it used to be free) + I think Mongo 4.4 support will not last more than 2 years. Not ideal but works. Edit: to add some more feedback, as far as I can see this issue means sails will no longer with free versions of MongoDB Atlas. |
It's loos like sails-mongo is using an old mongo driver :-( |
@vidueirof @ebarojas @milarevictor @tedkulp |
I tried this workaround and it worked. I will use this in the mean time while I look up alternatives. |
I'm working on a update to sails-mongo with mongodb driver 4.8.1, min version with mongo 6 support (https://www.mongodb.com/docs/drivers/node/current/compatibility/). |
balderdashy/sails-mongo#497 but it requires to deprecate node 10 support. |
this is super duper not cool. my apps dont work.... and i dont have money to pay for a dedicated server. can we please figure out a solution to work with mongo db 6 |
@tonysparksUC you can temporally try the fix that it is in my fork: https://github.com/vidueirof/sails-mongo/tree/upgrade-mondgo-driver Try updating your package.json like this
|
@tonysparksUC I would recommend you just to switch to another normal modern alive framework. |
But moving to a dedicated cluster as much as I know is an irreversible action. You'll keep paying as much as you are currently paying. So, it's not really a temporary fix. |
@sailsbot Do we have any hopes of getting a fix to this outdated sails-mongo adapter soonest? |
@vidueirof |
Is this update supposed to happen at the app root folder package.json file? I don't seem to be getting this right. Thanks |
@jogbuwa, yes I have this fix working on some projects. You have to replace where you usually have sails-mongo import, and run |
I see. I'll give that a try and let you know how it goes. |
Hey @vidueirof Thanks |
@jogbuwa the only thing, as far we know, with this update we are dropping node 10 support. Maybe you want to test it in development a bit more to be sure it's stable before going to production (or other environments). |
@vidueirof Noted with thanks. |
@vidueirof thank you for making the fork and @jogbuwa please post here and let me know if the fork works well. id like to help you and your apps if I'm able. what your other pain points in life or businesses? |
Hey all. I'm just getting more acquainted with this issue and I really think like you all we should look at this to upgrade sails-mongo to support the latest version of MongoDB I'll update this issue with progress as we look to resolve this. |
Hey @vidueirof how is your availability like for next week? I think we can pair on this one to move this adapter to the latest and greatest MongoDB driver. We discussed this in core and we are happy to move forward with this but want an input from a Sails user shipping MongoDB with Sails so we can test it a great deal. Are you up for it @vidueirof? |
Also @jogbuwa would you be open to also dogfooding when we release a major for |
Hey @milarevictor, @jogbuwa and @vidueirof just a heads up, work has already begun on this to move https://github.com/DominusKelvin/sails-mongo/tree/feat/upgrade-to-mongo-6 |
Hey all, here is the WIP PR. This is looking to be a significant upgrade especially since we are moving from the callback based API that was previously supported by |
As mentioned on that PR: @DominusKelvin I've been spending a lot of time working on first cleaning up sails-mongo code to more current one, removing travis and appveyor and using github actions. We have been talking with @Josebaseba (who has been a long time maintainer/contributor, like me) to sails-mongo. We are all wasting time working on the same things in parallel. Please check: #498 @mikermcneil We really need to get together and have a real action plan here. |
Hi Dom, yes sure https://calendly.com/d/3cw-qyk-xbb/dom-sails-sails-mongo
|
Hello, any news about a potential release ? Regards, |
Hi @marecatg not yet. But I'll leave an update soon. Thanks for your patience on this one |
Hey @milarevictor, @marecatg, @jogbuwa, @tonysparksUC, @ebarojas, @NachtRitter, I'll be closing this issue as this PR has implemented the upgrade and it has been merged. Thank you for waiting on this 💙 Also you can check here for the upgrade information. 👇🏾 |
@DominusKelvin Glad to hear! Kudos to you and the team for upgrading the Sails Mongo adapter! Currently, my team and I are contemplating using Sails or another popular framework for a new, robust project for the reason above. Prior to now, it was always a no-brainer for us to use Sails. I'm hoping this feedback would get a warm reception from the Sails team. Thanks! |
Looking forward to implementing this new update. |
Hey I understand it was a long wait and definitely frustrating. I apologize for this. We plan to be more swift with the changes and upgrades as needed but rest assured work is actively being done on the framework(both maintenance and adding new features.) Thanks for your patience. |
[incompatibility with mongodb 6.0.2]
Node version:
Sails version 1.5.4:
ORM hook version 4.0.2:
Sockets hook version 2.0.3:
Organics hook version 2.2.1:
Grunt hook version 5.0.0:
Uploads hook version 0.4.3:
DB adapter & version [email protected]:
Hi,
The current version is throwing an error when trying to connect to MongoDB 6.0.2 server.
2023-04-12T18:59:07.015417+00:00 app[web.1]: AdapterError: Unexpected error from database adapter: Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal
The text was updated successfully, but these errors were encountered: