You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
{
"errcode": "M_UNKNOWN",
"error": "Must provide a password to re-activate an account."
}
Giving it a password: curl 'https://<server_address>/_synapse/admin/v2/users/<user_name> -X 'PUT' -H 'authorization: Bearer <token>' --data-binary '{"deactivated":false,"password":"<password>"}'
Returns this (bad):
{
"errcode": "M_UNKNOWN",
"error": "Internal server error"
}
Log is really long, last couple lines are:
File "/usr/local/lib/python3.7/site-packages/twisted/enterprise/adbapi.py", line 306, in _runWithConnection
compat.reraise(excValue, excTraceback)
File "/usr/local/lib/python3.7/site-packages/twisted/python/compat.py", line 464, in reraise
raise exception.with_traceback(traceback)
File "/usr/local/lib/python3.7/site-packages/twisted/enterprise/adbapi.py", line 297, in _runWithConnection
result = func(conn, *args, **kw)
File "/usr/local/lib/python3.7/site-packages/synapse/storage/database.py", line 572, in inner_func
return func(conn, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/synapse/storage/database.py", line 416, in new_transaction
r = func(cursor, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/synapse/storage/databases/main/user_erasure_store.py", line 107, in f
self.simple_delete_one_txn(
AttributeError: 'DataStore' object has no attribute 'simple_delete_one_txn'
Fixes: matrix-org#8359
Trying to reactivate a user with the admin API (`PUT
/_synapse/admin/v2/users/<user_name>`) causes an internal server error
Seems to be a regression in matrix-org#8033
Fixes: #8359
Trying to reactivate a user with the admin API (`PUT /_synapse/admin/v2/users/<user_name>`) causes an internal server error.
Seems to be a regression in #8033.
Description
Trying to reactivate a user with the new admin API causes an internal server error
Steps to reproduce
This:
curl 'https://<server_address>/_synapse/admin/v2/users/<user_name> -X 'PUT' -H 'authorization: Bearer <token>' --data-binary '{"deactivated":false}'
Returns this (good):
Giving it a password:
curl 'https://<server_address>/_synapse/admin/v2/users/<user_name> -X 'PUT' -H 'authorization: Bearer <token>' --data-binary '{"deactivated":false,"password":"<password>"}'
Returns this (bad):
Log is really long, last couple lines are:
Version information
Homeserver: Personal Homeserver
Version: Python 3.7.9, Synapse Version 1.19.3
Install method/Platform: I'm using https://github.com/spantaleev/matrix-docker-ansible-deploy
The text was updated successfully, but these errors were encountered: