question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

certain users can only be deleted with erase: false

See original GitHub issue

Description

I was purging a few thousand users an appbridge left behind, all with { "erase": true }, but got {"errcode":"M_UNKNOWN","error":"No row found (profiles)"} for a few dozen of them. Without erase: true, I could successfully deactivate them.

Steps to reproduce

  • Try to delete users with erase: true
  • Observe failure
  • Try to delete same users without erase: true
  • Observe success

Version information

  • Homeserver: synapse @ helsinki-systems.de
  • Version: {"server_version":"1.36.0","python_version":"3.8.9"}
  • Install method: NixOS module
  • Platform: NixOS 21.05

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dklimpelcommented, Jun 24, 2021

If you try to deactivate a user with { "erase": true }. Synapse try to unset avatar_url and displayname in profile table. If your user has no profile, it goes wrong. One solution is that set_avatar_url and set_displayname or the DeactivateAccountHandler have to catch this exception.

0reactions
ajs124commented, Jun 26, 2021

Not sure. I think in my case it might have been matrix-appservice-irc somehow screwing up? Although the users not having displaynames would also explain issues I was seeing when using it, at the time. Namely, those (bridged) users being displayed with their matrix ID(?) instead of a proper name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete, switch, or add users - Android Help - Google Support
Open the device's Settings app. · Tap System And then Multiple users. If you can't find this setting, try searching your Settings app...
Read more >
Why do users erase all the password when they hit one wrong ...
I think that in some cases the password is deleted as a whole because it's selected (usually shown as inverted white text on...
Read more >
Apple ID username or password is "incorrect" while trying to ...
Same problem here. I just erased the disk and tried instaling from the recovery partition, and it prompts for my Apple ID &...
Read more >
Remove-ADUser (ActiveDirectory) - Microsoft Learn
The Remove-ADUser cmdlet removes an Active Directory user. The Identity parameter specifies the Active Directory user to remove. You can identify a user...
Read more >
Your right to get your data deleted - ICO
The right to get your data deleted is also known as the 'right to erasure'. You can ask an organisation that holds data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found