Skip to content
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

[Bug]: purge-histroy timeout #256

Open
4 tasks done
MichaelSasser opened this issue Oct 26, 2021 · 0 comments
Open
4 tasks done

[Bug]: purge-histroy timeout #256

MichaelSasser opened this issue Oct 26, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@MichaelSasser
Copy link
Owner

MichaelSasser commented Oct 26, 2021

Problem description

See logs, this is, wenn the purge is still in progress and a timeout happened.

MatrixCtl version

0.10.3

Python version

3.9.7

Operating System version

Linux ms-thinkpad 5.14.14-arch1-1 #1 SMP PREEMPT Wed, 20 Oct 2021 21:35:18 +0000 x86_64 GNU/Linux

Relevant log output at debug level.

2021-10-26 20:05:01 matrixctl.addons.purge_history.addon:67 [addon] DEBUG request_body = {'purge_up_to_event_id': '$D-0k8h6PnnG6RF1eGTinHwXDYaYaQ5YyVv6ILspB1JI'}
2021-10-26 20:05:01 matrixctl.handlers.api:536 [_request] DEBUG repr: RequestBuilder(POST https://matrix.michaelsasser.org/_synapse/admin/v1/purge_history/!oDasMUFucrxlJunrda:michaelsasser.org {headers={}, params={}, data=None success_codes=(200, 201, 202, 203, 204, 205, 206, 207, 226), json={'purge_up_to_event_id': '$D-0k8h6PnnG6RF1eGTinHwXDYaYaQ5YyVv6ILspB1JI'}, token=[redacted (length=284)], timeout=5.0, concurrent_limit=4)}
2021-10-26 20:05:02 hpack.table:199 [maxsize] DEBUG Resizing header table to 0 from 4096
2021-10-26 20:05:02 httpx._client:990 [_send_single_request] DEBUG HTTP Request: POST https://matrix.michaelsasser.org/_synapse/admin/v1/purge_history/!oDasMUFucrxlJunrda:michaelsasser.org "HTTP/2 400 Bad Request"
2021-10-26 20:05:02 matrixctl.handlers.api:574 [_request] DEBUG JSON response: {'errcode': 'M_UNKNOWN', 'error': 'History purge already in progress for !oDasMUFucrxlJunrda:michaelsasser.org'}
2021-10-26 20:05:02 matrixctl.handlers.api:576 [_request] DEBUG Response Status Code: 400
Traceback (most recent call last):
  File "/home/michael/repos/matrixctl/matrixctl/addons/purge_history/addon.py", line 79, in addon
    response: JsonDict = request(req).json()
  File "/home/michael/repos/matrixctl/matrixctl/handlers/api.py", line 517, in request
    return _request(request_config)
  File "/home/michael/repos/matrixctl/matrixctl/handlers/api.py", line 587, in _request
    raise InternalResponseError(payload=response)
matrixctl.errors.InternalResponseError: If you discover this message, please try updating MatrixCtl. If you see this message again, we would be glad, if you would run the same command again in debug-mode (matrixctl -d [...]) and hand in a "Bug report" at https://github.com/MichaelSasser/matrixctl/issues with the complete output.

Python version: 3.9.7 final
MatrixCtl version: 0.10.3


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/michael/.cache/pypoetry/virtualenvs/matrixctl-bgeLX2r0-py3.9/bin/matrixctl", line 5, in <module>
    main()
  File "/home/michael/repos/matrixctl/matrixctl/__main__.py", line 178, in main
    return int(addon.addon(args, yaml))  # type: ignore
  File "/home/michael/repos/matrixctl/matrixctl/addons/purge_history/addon.py", line 82, in addon
    if e.payload["errcode"] == "M_UNKNOWN":
TypeError: 'Response' object is not subscriptable

Screenshots

No response

Additional context

No response

I have

  • read the README.md,
  • read the docs,
  • searched for similar issues.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MichaelSasser MichaelSasser added the bug Something isn't working label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant