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.
samuel-p opened this issue
Dec 12, 2021
· 4 comments
Labels
P4(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patchesS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.
I tried running the synapse.app.admin_cmd to export the data for one of my users, but got the following error:
2021-12-12 17:09:12,104 - twisted - 275 - CRITICAL - sentinel - main function encountered error
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/twisted/internet/defer.py", line 662, in callback
self._startRunCallbacks(result)
File "/usr/local/lib/python3.8/site-packages/twisted/internet/defer.py", line 764, in _startRunCallbacks
self._runCallbacks()
File "/usr/local/lib/python3.8/site-packages/twisted/internet/defer.py", line 858, in _runCallbacks
current.result = callback( # type: ignore[misc]
File "/usr/local/lib/python3.8/site-packages/twisted/internet/defer.py", line 1751, in gotResult
current_context.run(_inlineCallbacks, r, gen, status)
--- <exception caught here> ---
File "/usr/local/lib/python3.8/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
result = current_context.run(gen.send, result)
File "/usr/local/lib/python3.8/site-packages/synapse/app/admin_cmd.py", line 241, in run
await args.func(ss, args)
File "/usr/local/lib/python3.8/site-packages/synapse/app/admin_cmd.py", line 80, in export_data_command
res = await hs.get_admin_handler().export_user_data(
File "/usr/local/lib/python3.8/site-packages/synapse/handlers/admin.py", line 174, in export_user_data
events = await filter_events_for_client(self.storage, user_id, events)
File "/usr/local/lib/python3.8/site-packages/synapse/visibility.py", line 259, in filter_events_for_client
return [ev for ev in filtered_events if ev]
File "/usr/local/lib/python3.8/site-packages/synapse/visibility.py", line 259, in <listcomp>
return [ev for ev in filtered_events if ev]
File "/usr/local/lib/python3.8/site-packages/synapse/visibility.py", line 149, in allowed
oldest_allowed_ts = storage.main.clock.time_msec() - max_lifetime
builtins.AttributeError: 'AdminCmdSlavedStore' object has no attribute 'clock'
Steps to reproduce
I just ran the following command in the main synapse Docker-Container on my Server:
Retention policies are still quite experimental, so we can't commit to supporting things that are broken by them, but we would absolutely accept a patch which resolved this issue.
As a workaround, temporarily disabling the retention policy may allow the command to succeed.
callahad
added
the
P4
(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches
label
Dec 16, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P4(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patchesS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
I tried running the
synapse.app.admin_cmd
to export the data for one of my users, but got the following error:Steps to reproduce
I just ran the following command in the main synapse Docker-Container on my Server:
Version information
If not matrix.org:
Version: 1.48.0
Install method: Docker
The text was updated successfully, but these errors were encountered: