vsivsi / meteor-file-collection

Extends Meteor Collections to handle file data using MongoDB gridFS.
http://atmospherejs.com/vsivsi/file-collection
Other
159 stars 37 forks source link

No longer works with Mongo 6 #176

Open dpatte opened 1 year ago

dpatte commented 1 year ago

[MongoError]: Unsupported OP_QUERY command: listIndexes

thumptech commented 1 year ago

I've made a fork that works with all the latest updates and removes coffeescript, it's probably a mess, but I had no choice as my app depends on it.

https://github.com/thumptech/meteor-file-collection

dpatte commented 1 year ago

Thanks. I am now considering migrating to ostrio:files which is well supported.

thumptech commented 1 year ago

I was going to go that way, but to get it to work was just as much mucking around as rewriting this package in my use case.

vsivsi commented 1 year ago

Hi yeah, it's been years since I've done any Meteor work at all (I long ago transitioned to Golang). I can't foresee ever spinning back up on the Meteor ecosystem at this point, so this repo is truly a historical artifact.

I've been considering just archiving it at this point to further warn people off, but that would shut down issue discussions like this allowing any remaining users to find each other here to exchange info.

Thoughts?

thumptech commented 1 year ago

I'm not sure which way to go, but I use this package for my company intranet, so I have to keep it running just for that purpose. I guess that means I have to maintain my own fork, but I really don't know how well it works outside my own environment. I'm happy to take issues on my fork, but can't guarantee the quality of my work is up to scratch.

My fork does seem to work, but I had to pull in your other submodules and decaffeinate to be able to get my head around it. I also just disabled the locking system as I just could not seem to get it working properly. I think the later versions of mongo/gridfs may mean this isn't a problem anyway.

ostrio:files is one way of going, but still need to write a gridfs driver and then come up with an HTTP access server. These are the reasons I persevered with this.

dpatte commented 1 year ago

its worth keeping it here, so we can thank you, Vaughn, for the module, even if it is no longer maintained by you. It has worked for me until I tried running it with an early release of Mongo 6 - so thats quite the achievement.

dpatte commented 1 year ago

Matthew. I'll do more research on ostrio:files and see how that goes. I suspect my primary issue is trying to use Mongo 6 in Meteor before its officially supported by Meteor. Rolling my setup back to Mongo 5 may still work for me.