mostlycoolmark

Results comments of mostlycoolmark

Try changing your MONGO_OPLOG_URL to this: `mongodb://user:pwd@localhost/oplogdb?authSource=dbname` I have been struggling with this for a while and this is what got it to work for me. I'm also configured with...

Did you find an answer to this? Is your mongodb running a replicaset? What is your MONGO_OPLOG_URL set to?

I am able to reproduce this on RocketChat 0.55.1 also.

It looks like there may be a way to do this through the api. What criteria are you looking for to delete these DM channels? For example, are you hoping...

Here's a sample script to get you started. You probably want to iterate through ALL rooms, though, right? [rocketchat_delete_old_messages.txt](https://github.com/RocketChat/Rocket.Chat/files/1078342/rocketchat_delete_old_messages.txt) @waveyuk

[powershell_remove_old_messages.txt](https://github.com/RocketChat/Rocket.Chat/files/1081620/powershell_remove_old_messages.txt) Unfortunately, it doesn't look like there's a way through the api to query for direct messages. It's doable directly in the database, but I'm not inclined to go down...

Actually, looks like there may be a way to get a list of all direct messages? https://rocket.chat/docs/developer-guides/rest-api/im/list-everyone I'll take a closer look at that.

[rocketchat_delete_old_messages.txt](https://github.com/RocketChat/Rocket.Chat/files/1086092/rocketchat_delete_old_messages.txt) OK, here's an updated bash script that will iterate through all channels. Unfortunately, while the api allows you to grab a list of the direct message rooms, the api...

Yeah, I don't really want to do that because of how inefficient it would be. We'd have to: - get a list of the direct message rooms from `im.list.everyone` https://rocket.chat/docs/developer-guides/rest-api/im/list-everyone...

Well, I realized I am using this wrong! Sorry about the issue, looks like this is entirely a misunderstanding on my part of the laravel queues.