[-] Nothing4You@programming.dev 4 points 2 years ago

deleted the database

this is generally something you should avoid doing with activitypub software, as there is no clearly defined way to deal with changed private keys and it is handled differently depending on the software. with lemmy it should more or less resolve itself after some time, as instances will refresh public keys from time to time. after a few days of being alive again and having activities federate out it that part should start working properly again.

Subscription Pending Issue

check if your instance is considered dead, it may take sending some activities (e.g. subscribing, posting, commenting) and a bit of waiting to get your instance considered reachable again. you can use https://phiresky.github.io/lemmy-federation-state/site to check the instance you're expecting data from and look for where your instance is listed.

Old Content Persisting

as @asudox@lemmy.asudox.dev already mentioned, all you did was disappear. how would anyone know that your intention was to delete data?

while you can't force other instances to respect your deletion requests, it would still be possible to ask them for it, but this is not an easy task once they're no longer in your database. the most effective/efficient way to do this would probably to first get your overall federation fixed/not considered dead anymore, then delete the account using the same name, and never use the username again on the same domain in the future, as deletions are more pretty much irreversible and depending on the software on the other side may permanently block the username from being used, even if you change this in your database. another option could be creating posts/comments with matching ids in the database and then deleting them via api, but this is also rather fiddly and a lot easier to fuck things up with. i don't recommend editing the db directly without good understanding of lemmy's internals.

Old Replies Resurfacing

Lemmy uses numeric incremental ids for posts and comments, so when you started with a fresh database these ids are getting reused. this will break your posts and comments from properly federating to instances that have seen them with the same id before.

the easiest and lowest tech solution to deal with this would be to simply move to a different domain/subdomain for a proper new instance experience. alternatively you could consider adjusting the sequences in the database used for new post, comment and pm ids, to ensure that they are higher than any number your instance may have previously seen. as they are incremented not only by local content, but also by content retrieved via federation, these numbers will be significantly higher than the amount of content you had posted in the past, but it will be hit or miss whether they will overlap with ids that were for old local content.

based on counts from lemmy.ml and lemmy.world, it seems that a post sequence starting at 55m is likely safe to use, 20m for comments. pm ids are not publicly visible, but unless you sent or received many in the past, something like 1k or 10k are probably still safe bets. this is a db modification that you will need for sure if you want to minimize federation issues while using the same domain.

looking at your instance i'm not sure if this is what you mean by replies resurfacing, as i don't see any replies by remote users on your comments, but what i described is otherwise going to cause issues randomly in the future if you happen to hit a previously locally used id on a new local post/comment.

[-] Nothing4You@programming.dev 4 points 2 years ago

honestly at this point I don't consider it worth continuing the discussion here, as it doesn't seem that you understand enough of what you're talking about, despite your claims of dealing with it for "years", yet you keep implying that i'm likely the one being wrong or even lying/misrepresenting things.

the second screenshot is from the same browser as the first, both are in firefox, using the tor browser variant in safest mode, which blocks even more than the average noscript installation in firefox. tor browser is a hardened variant of firefox esr. if it works in tor browser without loading js from third parties it'll very much do so in any other browser. the screenshot is from macos, which is probably why you're not used to it, but that's just what firefox on macos looks like. this is my standard firefox install:

besides, if lemmy was loading and executing javascript from other instances, this would be a massive security issue, which is yet another reason why your claim of loading js from other instances is ludicrous for someone who knows how these things work, at least when you keep insisting on it.

as i mentioned before, noscript is not an extension that is easy to use without some basic understanding of how websites work. if you've been having issues for years due to not understanding these things and how to deal with them properly that suggests that it'd probably be better for you to just switch to something like ublock origin with anti-tracking filter lists if you're not planning to spend some time learning how websites work and what the different types of blocked resources do.

i don't even see how you would be blocking images with noscript, as there doesn't even seem to be an option for it. unless of course you're confusing noscript with something like umatrix, which does allow blocking images by default as well, but it would also clearly show that there is media blocked and not scripts:

anyway, if you're truly interested in understanding these things and not just rant about them please do some research on the technology being used.

[-] Nothing4You@programming.dev 4 points 2 years ago

seems like just nobody thought of closing it before, it was already implemented.

[-] Nothing4You@programming.dev 4 points 2 years ago

instance bans currently generally don’t federate and won’t show in the modlog of your home instance, but recent lemmy versions are automatically issuing community bans for all communities on that instance that you participated in, which allows you to at least see this in some cases indirectly.

1.0 will federate instance bans, but i haven't looked at the implementation in detail yet and i'm not sure if this is already implemented to be shown in the modlog.

[-] Nothing4You@programming.dev 4 points 2 years ago

I messaged @supakaity@lemmy.blahaj.zone on matrix about this a while back already, before it was published. this is easily backported to 0.19.8, most likely even with the custom blahaj patches. i'm not sure it was applied though, as i didn't hear back from her unfortunately.

[-] Nothing4You@programming.dev 4 points 2 years ago

slur filters are a commonly used method on lemmy to deal with certain types of spam.

there are lots of spammers posting links to blog spot subdomains all the time, i think there were at least two new ones just today.

unfortunately, the amount of malicious links (random spam posts) to blog spot significantly outranks the amount of legitimate links, which is likely why this was added to blahaj's slur filter.

[-] Nothing4You@programming.dev 4 points 2 years ago

while this is generally what most people talk about when speaking of defederation, admins can also decide to remove communities locally without blocking the entire instance.

[-] Nothing4You@programming.dev 4 points 2 years ago

this is the important part.

when an account is deleted the associated private key used for signing activities is deleted as well. the activitypub protocol does not really define how software is supposed to deal with deleted and recreated actors (which includes users), so some software has been built with the assumption that any change of encryption keys for a user means it's an invalid signature and will prevent activities involving that user to federate to that software.

[-] Nothing4You@programming.dev 4 points 2 years ago

fwiw, for Sync users the update to 0.19.5 is not that great, as @ljdawson@lemmy.world still hasn't updated Sync to use the updated APIs for marking posts as read :(

[-] Nothing4You@programming.dev 4 points 2 years ago

it contains turtle and crazy

[-] Nothing4You@programming.dev 4 points 2 years ago

I've submitted a PR to fix this, it might still make it into 0.19.4.

fyi @DABDA@lemm.ee

[-] Nothing4You@programming.dev 4 points 2 years ago

lemmy's current federation implementation works with a sending queue, so it stores a list of activities to be sent in its database. there is a worker running for each linked instance checking if an activity should be sent to that instance, and if it should, then send it. due to how this is currently implemented, this is always only sending a single activity at a time, waiting for this activity to be successfully sent (or rejected), then sending the next one.

an activity is any federation message when an instance informs another instance about something happening. this includes posts, comments, votes, reports, private messages, moderation actions, and a few others.

let's assume an activity is generated on lemmy.world every second. now every second this worker will send this activity from helsinki to sydney and wait for the response, then wait for the next activity to be available. to simplify things, i'll skip processing time in this example and just work with raw latency, based on the number you provided. now lemmy.world has to send an activity to sydney. this takes approximately 160ms. aussie.zone immediately responds, which takes 160ms for the response to get back to helsinki. in sum this means the entire process took 320ms. as long as only one activity is generated per second, this is easy to keep up with. still assuming there is no other time needed for any processing, this means about 3.125 activities can be transmitted from lemmy.world to aussie.zone on average.

the real activity generation rate on lemmy.world is quite a bit higher than 3.125 activities per second, and in reality there are also other things that take up some time during this process. over the last 7 days, lemmy.world had an average activity generation rate of about 5.45 activities per second. it is important to note here that not all activities generated on an instance will be sent to all other linked instance, so this isn't a reliable number of how many activities are actually supposed to be sent to aussie.zone every second, rather an upper limit. for example, for content in a community, lemmy will only send these activities to other instances that have at least one subscriber on the remote instance. although only a fraction of the activities, private messages are another example of an activity that is only sent to a single linked instance.

to answer the original question: the week of delay is simply built up over time, as the amount of lag just keeps growing.

additionally, lemmy also discards its queued activities that are older than a week once a week, so if you go over 7 days of lag for too long you will start completely missing activities that were over the limit. as previously explained, this can be any kind of federated content. it can be posts, comments, votes, which are usually not that important, but it can also affect private messages, which are then just lost without the sender ever knowing.

view more: ‹ prev next ›

Nothing4You

0 post score
0 comment score
joined 2 years ago