coffeeisnotlatte Now • 100%
I got march of shamed once because I genuinely forgot, it somehow shortcircuits my brain when I need to wait for approval, thinking I've already paid and walk out after waiting for the person to come tap some buttons :|
coffeeisnotlatte Now • 100%
That sounds like a particularly horrible idea, there's no way to know. I would take the risk on electronics, not something you actually put into your body.
coffeeisnotlatte Now • 100%
Not super easily. It can be done by querying the postgresql dabase, but there is no built-in method to do it using the browser interface at the moment. When anyone from any instance does report them, you will see the report.
Do you have an example of a query I could use? I'm a bit rusty with databases :) with an example I can get chatgpt to build me something better
coffeeisnotlatte Now • 100%
I see, occasionally I get reports from local users about something elsewhere from a 'foreign' user... which I can then delete. I assume that's not deleting from their server?
For example I get a report from a local user about a lemmy.ml user with a post in lemmy.world
coffeeisnotlatte Now • 100%
I don't unfortunately, I deliberately don't log that due to some of the sensitive stuff on my own instance (we're China based)
After the bot attacks I've cleaned up and implemented some additional measures thanks to some helpful users, but I'd also like to monitor the situation in case someone from my server decides to go on a spam rampage... Is there a way to: 1) Easily get a list of comments from all my users locally and across the 'verse? 2) If I purge/ban these users, is there a protocol for letting other Lemmy admins know? I assume I have no power to delete things from their instances (just my copy of their instance?)
coffeeisnotlatte Now • 100%
From ChatGPT and a huge thank you to @sunaurus@lemm.ee who reached out to us initially about the issue. Unfortunately the SQL he provided seemed a bit of a nuke so I modified it a bit using chatgpt and got the below which got us to 335 users. I will keep a close eye on the ones left
This got most of them (27k+)
SELECT lu.id, p.name, lu.email FROM local_user lu JOIN person p ON lu.person_id = p.id LEFT JOIN community_follower cf on p.id = cf.person_id LEFT JOIN comment c on p.id = c.creator_id LEFT JOIN post on p.id = post.creator_id WHERE cf.id is null AND c.id is null AND post.id is null AND lu.validator_time >= '2023-06-19' AND lu.email IS NOT NULL AND lu.email <> '' AND lu.email ~ '[0-9]{5,}' ORDER BY lu.id DESC;
This got 1000 or so left by lowering to 4 numbers after an email
DELETE FROM local_user WHERE id IN (SELECT lu.id FROM local_user lu JOIN person p ON lu.person_id = p.id LEFT JOIN community_follower cf on p.id = cf.person_id LEFT JOIN comment c on p.id = c.creator_id LEFT JOIN post on p.id = post.creator_id WHERE cf.id is null AND c.id is null AND post.id is null AND lu.validator_time >= '2023-06-19' AND lu.email IS NOT NULL AND lu.email <> '' AND lu.email ~ '[0-9]{4,}');
And this got 500 by looking for usernames with 2 digits after their username. If you're worried about hitting actual users here use the joins
SELECT p.name, lu.email FROM local_user lu JOIN person p ON lu.person_id = p.id WHERE lu.person_id >= 356 AND p.name ~ '\d';
coffeeisnotlatte Now • 100%
Yup I've got them, luckily 5 or more repeating numbers in their email pretty much identified 99% of them. Would you like me to send the CSV somewhere? 27k+ bots
coffeeisnotlatte Now • 100%
That's okay I found it, luckily there's a pattern here too... I dug up 27k with repeating numbers on emails which is a good start!
coffeeisnotlatte Now • 100%
Huh adminer would definitely be an easier way to do this, do you have the part of the docker-compose you used with the env vars etc?
coffeeisnotlatte Now • 100%
Yeah that's the issue I'm having, someone sent me a postgres command in DM earlier but it does seem to be a bit of a nuke/picking up ordinary users....
coffeeisnotlatte Now • 100%
Nevermind, I'm in with user 'lemmy' :) I will start cleaning this up now...
Trying to purge them and set up with Lemmy Ansible, I've disabled signups without admin approval for now. I see a postgres container and a password but I'm not very familiar with postgres, I tried psql but can't get access Edit: Also anyone who's de-federated with us, please reconsider. We're a small server with active admin and will get a handle on this, I promise! We had an easy process to sign up for a few days while I got my users over and forgot to turn it off Edit2: Looking much more healthy now, I will put the commands I've used in a comment below
coffeeisnotlatte Now • 100%
Yeah I started on a dinky little server and now it's massive.... mostly seems to be a memleak or something going on though that's causing OOM and a massive CPU spike. Anyone know anything? 4GB of RAM getting eaten for breakfast... just had to up it to 8
coffeeisnotlatte Now • 100%
Damn, I've got to look into that myself. Mine's currently on AWS and costing me a small fortune
coffeeisnotlatte Now • 100%
I just put my instance through cloudflare, it seems okay. I would guess cloudflare won't be that fussed considering it's federated/easily accessible from others.
On 0.17.4, has anyone else noticed this? The last few days the server chewed through 2GB of RAM... then yesterday it chewed through 4GB after an upgrade in about 2 days and now seems to be chewing through about 100MB/hour with no sign of stopping. I put in a bug report but thought I'd ask if anyone else is having the issue too: https://github.com/LemmyNet/lemmy/issues/3183
coffeeisnotlatte Now • 95%
You could, but the API for Reddit won't work in two weeks... and tbh I like the fact we're building something new here
coffeeisnotlatte Now • 100%
This server does work in China, however I would still advise a VPN for anyone coming here from within authoritarian regimes. I've taken precautions and mask IPs in the logs but still....
I'm not on either the instance reported from or the instance reported to, I have my own instance. Why am I getting these reports/would care about them?
coffeeisnotlatte Now • 100%
I would, but unfortunately r/jailbreak is closed where I got the instructions :(
coffeeisnotlatte Now • 100%
It's like everyone saw what Twitter did, and thought they could get away with doing the same
coffeeisnotlatte Now • 100%
I could live without youtube for sure, I have more of a Reddit problem than a YouTube problem... but it seems they fixed that for me.
coffeeisnotlatte Now • 100%
Mine is actually also a VPS, my electricity is too unstable to host at home :')
It's pretty light though, 2GB RAM and 2vCPUs and about 10GB of space. It shot up to 9.5GB over a few days as people added more communities, then slowed down a lot. We have ~60 users as of now
This is a general discussion thread for any questions or topics that you feel don't deserve their own thread, or just for random thoughts and comments. The sidebar guidelines apply here too and these threads will be closely moderated, so please keep the discussions civil, and try to keep top-level comments China-related.
As you can see in the screenshot, most communities I put in yesterday (except this one) have zero comments. Any idea why that would be? If I go to the instance itself I see comments