Hard times
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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 :|

    9
  • Weekly /c/china discussion post
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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.

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Jump
    Is there an easy way to know who is spamming from my instance and contact other admins?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Jump
    Is there an easy way to know who is spamming from my instance and contact other admins?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Is there an easy way to know who is spamming from my instance and contact other admins?

    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?)

    11
    8
    Can you help me deal with the bots?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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';

    1
  • Can you help me deal with the bots?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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

    5
  • Can you help me deal with the bots?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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!

    3
  • Can you help me deal with the bots?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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?

    2
  • Can you help me deal with the bots?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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....

    3
  • 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

    24
    28
    Self Hosted Lemmy instance comments terribly out of sync?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    We seem to be memleaking

    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

    20
    0
    while the china community here is still young....
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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....

    3
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Why am I getting reports from other instances?

    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?

    9
    0
    What are YOU self-hosting?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    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

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCA
    cats coffeeisnotlatte Now 100%
    Cat
    1
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFU
    funny coffeeisnotlatte Now 100%
    New hires...
    2
    0

    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.

    1
    4
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Comments aren't loading for other instances?

    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

    9
    3
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Testing

    Testing 123

    3
    10
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    Now
    12 45

    coffeeisnotlatte

    latte.isnot.coffee