delendum

joined 1 year ago
MODERATOR OF
[–] delendum@lemdit.com 2 points 1 year ago (1 children)

Hey,

I don't there's much more you can do other than to get in touch with that instance's admin. I suggest sending them a direct message, they should be able to help by modifying stuff directly in the database.

The 2FA implementation is unfortunately pretty buggy still.

[–] delendum@lemdit.com 15 points 1 year ago* (last edited 1 year ago) (5 children)

I have a Lenovo ThinkPad T430 that is by now almost 10 years old, it runs perfectly on Linux and is a fantastic choice even today. It's built like a tank and that Intel i5 powering it is immortal. DDR3 RAM is dirt cheap now and it takes up to 16Gb, you can swap its HDD to a SATA SSD (if not done already) and batteries for it are still cheap and plentiful.

If you're looking for something affordable for software dev, I can't think of a better choice for $200-$300

https://www.lenovo.com/lt/lt/laptops/thinkpad/t-series/t430/

They really built this one right, they don't make them like this anymore.

[–] delendum@lemdit.com 6 points 1 year ago (1 children)

This is a Lemmy-ui bug, not related to CDN/cache.

I had submitted a bug report for it some time ago but it's not that urgent in the great scheme of things so they didn't get around to it yet: https://github.com/LemmyNet/lemmy-ui/issues/1865

(the report speaks about this happening after you log in, but it's the same thing).

[–] delendum@lemdit.com 13 points 1 year ago (13 children)

Awesome project and the tool looks great - nice work!

There was an existing tool which was similar: https://federation-checker.vercel.app/

Yours is definitely nicer.

[–] delendum@lemdit.com 2 points 1 year ago* (last edited 1 year ago) (1 children)

Hey, thanks for your feedback.

Good point on the Admin account potentially not being e-mail verified, I'll add that bit in there.

Lemmy stores a record of users in two places:

  • local_user is where local accounts are stored. Each entry has an id and a person_id.
  • person gets an entry for every user@instance that your Lemmy instance learns about, including users which were created on your instance. local_user entries are mapped to person entries using the person_id.
  • local_user doesn't actually keep track of user@instance - it's all stored under person and referenced via the person_id.

This means that to free up the user names, you would also need to delete the respective entry from person. There are a few ways you can achieve this:

  • You could grab a list of all person_id numbers where email_verified='f', then use this list to delete from person.
  • You could just delete the specific username you want to free up from person (where name='username').

Edit: This also explains your confusion around the id of the Admin username - id would've been '1' and that's the one that matters. person_id was '2' because your instance likely learnt of another user before the Admin somehow. I just checked mine and person_id is also 2, so it seems like the standard thing it does.

I didn't worry about this too much since these were all randomly generated junk usernames that nobody would ever miss and I didn't think it was worth the extra hassle to try and delete them from person too, since it would be a bit cumbersome especially if there's a lot of them.

Anyway, to free up those usernames just delete them from person using one of the options above.

I hear you on the need to delete junk data, my hope is the devs will eventually include some decent tools for that. It's a good suggestion, I may put something together when I have a bit of time.

A solution you can try meanwhile is to use an admin account to 'purge' the stuff you want to delete - purging does remove everything from the server. Annoyingly you don't get the option to purge your own posts as the admin, but you can use a second admin account to work around this.

[–] delendum@lemdit.com 2 points 1 year ago* (last edited 1 year ago) (1 children)

That project is a great find, thanks! A real time saver, I should have these marked up shortly.

I'll do some more thinking on how we represent Cloudflare instances in general, I think for the time being I may just include a short note for them as people will wonder why they're marked anyway.

Edit: This is now done, all Cloudflare instances marked and an explanation added.

[–] delendum@lemdit.com 2 points 1 year ago (3 children)

Hey, thanks for your feedback. I like your idea of labeling Cloudflared services, reporting is indeed a bit tricky for those especially if they use "Always online" to serve cached copies while the instance is down. I have some ideas on how to combat that, but labeling them also makes sense.

I can add tags against services - I have done this for ani.social as a proof of concept, I think it works but I welcome feedback. Sorting through the entire list is a bit daunting and will take me a while, but I'll get there.

Manually adjusting availability is a can of worms that I don't want to open, I'd rather we try to find other ways to level the playing field.

[–] delendum@lemdit.com 3 points 1 year ago (1 children)
[–] delendum@lemdit.com 2 points 1 year ago (3 children)

I think you're one "active user" short of being back on there:

I believe you need 5 to be listed.

[–] delendum@lemdit.com 3 points 1 year ago (1 children)

I've updated the post to include clickable URLs. Lesson learnt that I shouldn't rely on clients to treat domain names as links.

[–] delendum@lemdit.com 6 points 1 year ago

Thanks for your feedback. I like your idea, I'll have a look into what I can do to make it happen.

[–] delendum@lemdit.com 7 points 1 year ago

Absolutely!

Uptime Kuma Github: https://github.com/louislam/uptime-kuma

Note that I am not the creator of Uptime Kuma, https://github.com/louislam gets all the credit there.

 

cross-posted from: https://lemdit.com/post/408034

I like keeping across what is happening with other Lemmy instances so lestat.org was born out of this curiosity.

URL: https://lestat.org

It's similar to lemmy-status.org but with a few notable differences:

Criteria for adding instances to Lestat

I will add any instance to Lestat based on these prerequisites:

  • The instance is listed on join-lemmy.org
  • The instance doesn't host anything illegal in New Zealand

Free services for admins

If you are an instance admin, I can set you up with the following:

  • Automatic e-mail notifications when the status of your instance changes (e.g. it goes up or down).
  • An uptime badge for your instance in this style:

Send me a message if you'd like any of the above.

I hope you find Lestat useful!

Edit: Added clickable URL and expanded on free admin services to include badges.

124
submitted 1 year ago* (last edited 1 year ago) by delendum@lemdit.com to c/fediverse@lemmy.ml
 

cross-posted from: https://lemdit.com/post/44993

It looks like lemmy.world had been hacked.

The instance has been defaced, the site is only intermittently accessible, sometimes it redirects to a random video or other nasty URLs

DO NOT ATTEMPT TO LOG INTO LEMMY.WORLD UNTIL THIS IS CLEARED UP AND OFFICIAL ANNOUNCEMENTS ARE MADE BY ITS ADMIN.

My recommendation is to stay away entirely for the time being and monitor other large instances for updates.

Edit: Please refer to https://lemmy.ml/post/1895271 or https://lemdit.com/post/44993 for further updates.

 

Most instances have suffered from an influx of bot usernames being created automatically. If you have e-mail verification turned on, then this is mostly just a nuisance since none of these bot account pass e-mail verification and they can't post anything until they do.

This also makes it realatively easy to remove them, since we can target non-verified users. This guide will show you how.

Note: If you don't have e-mail verification turned on, then this guide will not help you. This guide also won't help with more sophisticated bots that have passed e-mail verification.

DO NOT attempt this if you have real users that signed up before you had e-mail verification enabled! If you do and they still don't have a verified e-mail, then you will end up deleting them also.

To play it safe, I recommend you back up your database before you attempt this.

I also recommend you stop the lemmy service while you perform this operation, especially if you have a busy instance.

Instructions for Lemmy installed with Docker


Note: I'm assuming that your DB name and user are both called lemmy - replace with their actual names if required.

  1. Find the Postgres container ID:

sudo docker ps -a

You will see something like this:

In this example 492c37ca28d9 is the container ID we're looking for.

  1. Make sure the Admin username is e-mail verified:

Note: Replace 492c37ca28d9 with your actual container ID!

sudo docker exec -it 492c37ca28d9 psql -U lemmy -d lemmy -c "UPDATE local_user SET email_verified='t' WHERE id='1';"

  1. Delete all users which haven't passed e-mail verification:

sudo docker exec -it 492c37ca28d9 psql -U lemmy -d lemmy -c "DELETE FROM local_user WHERE email_verified = 'f';"

  1. Display how many users are left after the purge:

sudo docker exec -it 492c37ca28d9 psql -U lemmy -d lemmy -c "SELECT COUNT (*) from local_user;"

  1. Update your site Users counter so that it displays the correct number of users:

Note: Replace `` with the actual number we got above, e.g. users = '5'

sudo docker exec -it 492c37ca28d9 psql -U lemmy -d lemmy -c "UPDATE site_aggregates SET users = '' WHERE id = 1;"

And you're done!

Instructions for Lemmy installed from scratch:


Note: I've only tested this on Debian 12, use on other distros at your own risk. I'm assuming that your DB name and user are both called lemmy - replace with their actual names if required.

  1. You may have to update pg_hba.conf before you can log in to the database with user 'lemmy'. In Debian 12, the location is /etc/postgresql/15/main/pg_hba.conf

sudo nano /etc/postgresql/15/main/pg_hba.conf

Add an entry for the user lemmy as seen below:

Hit Ctrl+X followed by Y to save.

  1. Restart Postgresql

sudo systemctl restart postgresql

  1. Log in to psql:

psql -U lemmy -d lemmy -W

Enter your database password when prompted.

  1. Make sure the Admin username is e-mail verified:

UPDATE local_user SET email_verified='t' WHERE id='1';

  1. Delete all users which haven't passed e-mail verification:

DELETE FROM local_user WHERE email_verified = 'f';

  1. Display how many users are left after the purge:

SELECT COUNT (*) from local_user;

  1. Update your site Users counter so that it displays the correct number of users:

Note: Replace `` with the actual number we got above, e.g. users = '5'

UPDATE site_aggregates SET users = '' WHERE id = 1;

  1. Exit psql:

\q

And you're done!

What not to do


  1. Please do not ban these usernames. They can't post anyway and with federation, all instances get clogged with junk data.

  2. Please don't ignore the problem. Having an accurate view of real user numbers is important and will benefit your instances in the long run.

I hope you found this guide useful!

Lemmy Help

view more: next ›