Deletion of user accounts is running into timeout error
When the admin is deleting one or more user accounts a timeout error occurs. Deleting accounts seems therefore impossible.
When the trash can icon is clicked or the batch deletion is used some error pops up in browser console:
accounts:384 Uncaught SyntaxError: Invalid or unexpected token
main.js?v=5.2.1:1743 {network: {…}, dm: {…}, home: {…}, notify: {…}, intros: {…}, …}
jquery.js?v=5.2.1:2 XHR finished loading: POST "https://hub.libranet.de/sse_bs".
send @ jquery.js?v=5.2.1:2
ajax @ jquery.js?v=5.2.1:2
sse_bs_counts @ main.js?v=5.2.1:1738
sse_bs_init @ main.js?v=5.2.1:1728
updateInit @ main.js?v=5.2.1:900
(anonymous) @ main.js?v=5.2.1:215
e @ jquery.js?v=5.2.1:2
t @ jquery.js?v=5.2.1:2
setTimeout (async)
(anonymous) @ jquery.js?v=5.2.1:2
c @ jquery.js?v=5.2.1:2
fireWith @ jquery.js?v=5.2.1:2
fire @ jquery.js?v=5.2.1:2
c @ jquery.js?v=5.2.1:2
fireWith @ jquery.js?v=5.2.1:2
ready @ jquery.js?v=5.2.1:2
B @ jquery.js?v=5.2.1:2
The spinner on the browser tab is indicating that something is processed and the browser does wait for a response from the server. After approx. 5 minutes a timeout error occurs.
261:1 Failed to load resource: the server responded with a status of 504 ()
On rare occasions it works w/o a timeout error. I guess this depends on the amount of data that has to be deleted or something.
When I later visit the accounts page again it looks like some of the deleted accounts are in fact gone - but not all.
However, that error shouldn't happen. Also, it would be great if the whole account deletion would be processed as a background task w/o any long running frontend process.
Hubzilla 5.2.1 - 1240
Apache 2.4
PHP 7.4 (FPM)
MariaDB 10.3