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

Full indexedDB breaks element web #20931

Closed
Yoric opened this issue Feb 5, 2022 · 15 comments
Closed

Full indexedDB breaks element web #20931

Yoric opened this issue Feb 5, 2022 · 15 comments
Labels
A-Storage Storage layer of the app, including IndexedDB, local storage, etc. T-Defect Z-Rageshake Has attached rageshake (not for log submission process)

Comments

@Yoric
Copy link
Contributor

Yoric commented Feb 5, 2022

Steps to reproduce

I first noticed this in a fosdem room, but this sems to be generalized across rooms. I cannot send messages at all, afaict.

chat.element.io works, though

Outcome

Cannot send messages. Messages show as "Failed to send".

Operating system

Ubuntu

Browser information

Firefox 96.0 (64-bit)

URL for webapp

develop.element.io

Application version

Element version: 64242a0-react-7f3f18604417-js-2d23330b74da Olm version: 3.2.8

Homeserver

matrix.org

Will you send logs?

Yes

@Yoric Yoric added the T-Defect label Feb 5, 2022
@Yoric
Copy link
Contributor Author

Yoric commented Feb 5, 2022

Ah, I find in the logs

Uncaught (in promise) DOMException: The quota has been exceeded.

So I guess it's a matter of localStorage/indexedDB being full. We should find a way to fix this.

@Yoric Yoric changed the title Element web develop seems broken today Full indexedDB breaks element web Feb 5, 2022
@Yoric
Copy link
Contributor Author

Yoric commented Feb 5, 2022

I've removed my indexedDB manually. Unfortunately, Element Web won't launch at all now.

Uncaught (in promise) Error: No connected database
    flushPromise rageshake.ts:246
    flush rageshake.ts:243
    flush rageshake.ts:509
    initRageshake rageshakesetup.ts:45

@aaronraimist aaronraimist added Z-Rageshake Has attached rageshake (not for log submission process) A-Storage Storage layer of the app, including IndexedDB, local storage, etc. labels Feb 6, 2022
@aaronraimist
Copy link
Collaborator

aaronraimist commented Feb 6, 2022

Duplicate of #18423. Related: #7465 #13290 #12131 #12625

To get back in maybe going to the Lock icon in the URL bar and clicking Clear cookies and site data will help.

@Yoric
Copy link
Contributor Author

Yoric commented Feb 6, 2022

Ok, restarting Firefox after removing indexedDB seems to have done the trick.
However, my Element Web self-destructed again 10 minutes before my Fosdem talk. Not ideal.

@Yoric
Copy link
Contributor Author

Yoric commented Feb 6, 2022

Duplicate of #18423

To get back in maybe going to the Lock icon in the URL bar and clicking Clear cookies and site data will help.

I can do that. Random user can't.

@aaronraimist
Copy link
Collaborator

Which is why #18423 is open

@aaronraimist
Copy link
Collaborator

However, my Element Web self-destructed again 10 minutes before my Fosdem talk. Not ideal.

Delete some stuff from your disk so you have some free space

@Yoric
Copy link
Contributor Author

Yoric commented Feb 6, 2022

Note that I have 300Gb available on my hd, so that's not the issue.

@Yoric
Copy link
Contributor Author

Yoric commented Feb 10, 2022

As suggested by @novocaine , this issue should NOT be closed as dup to #18423 as the hard drive was NOT full.

@novocaine
Copy link
Contributor

novocaine commented Feb 10, 2022

Yikes, apologies I might have been unclear - if its a result of the browser allocated disk space filling up, then I think that is part of #18423 .

I'm not sure I quite trust the quota message though - are you able to check the size of your IndexDB ?

@Yoric
Copy link
Contributor Author

Yoric commented Feb 11, 2022

I'm not sure I quite trust the quota message though - are you able to check the size of your IndexDB ?

Not a few days after cleaning it up, I'm afraid.

@jlemangarin
Copy link

jlemangarin commented Feb 24, 2022

I confirm this issue happens with a lot of disk space available and with no information in the client, just the message not sending.

ead68e72-9afe-4397-a005-b58b1383dfb9

It happens with actually not a lot of tabs opened (like 5) and with a decent amount of rooms (~100). I'm concerned about this hard limitation in IndexDB also, do you know about any issue opened outside of Element ?

Also maybe Element should clear some space when it's reaching the limit, even if it has to download again some resources later.

I also confirm that this modification (#18423 (comment)) in Firefox resolves the issue but that's not something a end user can do.

@turt2live
Copy link
Member

Mine managed to break in such a way where I got notifications but not messages in the timeline. No obvious errors presented to me as a user that would suggest anything was wrong (not even a "disconnected from homeserver" warning)

@richvdh
Copy link
Member

richvdh commented Jan 12, 2023

I'm not really clear how this is different from #18423 - can anyone clarify? Otherwise suggest we close this once more.

@t3chguy
Copy link
Member

t3chguy commented Mar 16, 2023

Closing in favour of #18423

@t3chguy t3chguy closed this as completed Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Storage Storage layer of the app, including IndexedDB, local storage, etc. T-Defect Z-Rageshake Has attached rageshake (not for log submission process)
Projects
None yet
Development

No branches or pull requests

7 participants