New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something went wrong during account migration - lost followers #23594
Comments
Yes, there is a frustrating lack of feedback when migrating followers. I want a list of the followers who couldn't be migrated and why, and what the system is going to do about it (if anything)! |
Its purpose is to sign “anonymous” queries. I'm really surprised |
Hi @ClearlyClaire and thanks for the explanation :) So is it normal to see 404s for those requests? Sounds like it would mean that those instances are running Mastodon < 4.1.0 but most of the instances still generating those requests show 4.1.0 in the user agent. Is there anything I can do to "instruct" those instance which is the correct user so not to lose those followers? |
@ClearlyClaire btw this is a totally new instance Edit: but I had an instance with the same domain 1-2 months ago. is that why? |
I'm very sorry, everyone but those 12 followers has stopped following your old account, and by now should have given up following your new account. #21957 would fix that behavior
No, that wouldn't be it, it's the actor your instance is advertising. So the other servers' version has no bearing there.
ohh… yeah, that would be why, I think! I think as a band-aid you can redirect the webfinger replies for |
@ClearlyClaire Is it enough to do the redirection you suggest directly in nginx? |
I think so. |
OK I added this redirection in Nginx. Will this help the instances who are trying to follow me at the new account? |
It should, but all instances that tried to follow you as a result of the migration have probably given up by now, unfortunately. |
I did the migration 3 days ago. How long do instances keep trying before giving up? If it's the standard Sidekiq job retry thing I think it would be 21 days max |
It's about 2 days IIRC. It's using default delay and jitter but “only” 16 tries. See #21956 |
Ah :( |
Is |
I hope that's the case https://github.com/sidekiq/sidekiq/wiki/Error-Handling#automatic-job-retry So they should keep trying with exponential back off for around 20 days. Is my assumption that no explicit retry number = default correct? Edit: just realized that that worker uses the Delivery worker which does have the 16 limit set. I guess I'm screwed :D |
For the record, I believe the issue regarding the
Mastodon has some code to handle username changes, although that is not considered normal behavior. However, I think because of Mastodon's behavior in step 3, this code is very difficult to actually trigger, and the behavior in step 3 needs to be changed to make it possible. And I think by adding a redirect as you did, this would allow Mastodon to go through the account renaming code that didn't happen in 3. |
Gotcha. I wish I had opened this issue 2 days ago. I would have probably recovered the lost followers... |
|
I know this is old but I seem to be having the same or similar issue. I created a new Mastodon instance earlier today and went through the migration process where only 1/3 of my followers moved. I've previously setup an instance using the same domain, so it seems like some other instances are trying to connect with my new instance using old information. In the access logs of the nginx server I'm seeing the following:
I replaced my server with 'server.com' and the other instance as 'other.server' above. I'm unable to follow anybody on other.server, and they're unable to follow me. I have this error showing up every few seconds from a variety of instances. It looks like my new sever has the location acct:server.com@server.com, so I'm trying to find a way off redirecting people from acct:mastodon.internal@server.com to that, but I'm not sure how. I've tried various redirects in the nginx configuration file but have got nowhere. |
Hi! You seem to have a related issue indeed, but I'm pretty confused: a recently-reinstalled server would have |
I installed a brand new server without restoring an old database. I've now installed a new instance at 'new.server.com', the domain of which hasn't been used before so it works perfectly well. To be able to return to using the original domain, I'm now running the 'tootctl self-destruct' command to try and remove any connections to other instances (and vise versa) before reinstalling the server. I used this guide on setting up the Mastodon server, if it helps: https://cyberhost.uk/mastodon-docker-compose/ |
That is weird, a new server should be using
This seems to use a non-official docker image, I don't know if there's been any change to it. |
I didn't change anything. Any reference to |
Steps to reproduce the problem
...
Expected behaviour
Migration completed with no loss of followers
Actual behaviour
Something went wrong during the migration and I lost most of the followers
Detailed description
When I did the migration almost 3 days ago 41 followers were migrated right away, and then the migration of followers (totalling around 350 or something like that, can't remember exactly) stopped for some reason. I knew you need to wait for the migration to complete but 3 days seems a long time.
In the meantime in my Nginx's logs (for the botta.social instance, the new one) I see requests with a 404 status code for the path
/.well-known/webfinger?resource=acct:botta.social@botta.social
- see the account namebotta.social@botta.social
is wrong here, and I don't know why the domain was used as account name because when I did the migration I definitely entered vito@ruby.social as the new account. Also because botta.social is not even a valid username since it contains a dot, and that account didn't exist on the new instance so there was no alias on it for the old account vitobotta@ruby.social, so the migration would have not been allowed if I had mistakenly entered botta.social@botta.social as the new account name.I still see those requests to the wrong webfinger URL, so in an attempt to "fix" I configured a redirect in Nginx from that URL to the one for the correct account. The requests get now redirected correctly, but I don't see any change in my followers yet.
What else can I try? The old account vitobotta@ruby.social shows just 12 followers now as if most of them had already been migrated. I even tried cancelling the redirect so that I could attempt a new migration, but it seems I'd have to wait for 28 days so I created just a redirect for now.
So, to recap:
/.well-known/webfinger?resource=acct:botta.social@botta.social
wherebotta.social@botta.social
is not the correct account, which isvito@botta.social
Specifications
Mastodon 4.1.0 on Docker, latest image
The text was updated successfully, but these errors were encountered: