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

Manually deleted IndexedDB/log database not created from scratch on next load #9560

Closed
andreygursky opened this issue Apr 25, 2019 · 2 comments
Labels

Comments

@andreygursky
Copy link

andreygursky commented Apr 25, 2019

Description

Using browser developer tools it is possible to delete IndexedDB/log database manually. Then there is a persistent error during loading riot-web:

rageshake.js:107 Failed to open log database: AbortError
e.(anonymous function) @ rageshake.js:107
t.onerror @ rageshake.js:203
error (async)
(anonymous) @ rageshake.js:201
n._execute @ bluebird.js:985
R._resolveFromExecutor @ bluebird.js:3268
R @ bluebird.js:2864
value @ rageshake.js:193
init @ rageshake.js:543
(anonymous) @ rageshakesetup.js:32
(anonymous) @ rageshakesetup.js:53
o @ bootstrap:63
(anonymous) @ index.js:29
(anonymous) @ index.js:431
o @ bootstrap:63
(anonymous) @ server.js:3
o @ bootstrap:63
(anonymous) @ bootstrap:196
(anonymous) @ bootstrap:196

and immediately after that:

rageshake.js:107 Failed to initialise rageshake: Error: Failed to open log database: AbortError
e.(anonymous function) @ rageshake.js:107
(anonymous) @ rageshakesetup.js:45
c @ bluebird.js:5276
R._settlePromiseFromHandler @ bluebird.js:3297
R._settlePromise @ bluebird.js:3354
R._settlePromise0 @ bluebird.js:3399
R._settlePromises @ bluebird.js:3475
(anonymous) @ bluebird.js:175
Promise.then (async)
a @ bluebird.js:4504
s.hasDevTools.l.settlePromises @ bluebird.js:174
R._reject @ bluebird.js:3442
R._rejectCallback @ bluebird.js:3259
(anonymous) @ bluebird.js:3271
t.onerror @ rageshake.js:204
error (async)
(anonymous) @ rageshake.js:201
n._execute @ bluebird.js:985
R._resolveFromExecutor @ bluebird.js:3268
R @ bluebird.js:2864
value @ rageshake.js:193
init @ rageshake.js:543
(anonymous) @ rageshakesetup.js:32
(anonymous) @ rageshakesetup.js:53
o @ bootstrap:63
(anonymous) @ index.js:29
(anonymous) @ index.js:431
o @ bootstrap:63
(anonymous) @ server.js:3
o @ bootstrap:63
(anonymous) @ bootstrap:196
(anonymous) @ bootstrap:196

Steps to reproduce

  • navigate developer tools --> application --> storage --> IndexedDB
  • delete log database
  • reload riot.im/app (again and again)

Expected: log database is created from scratch if it could not be found.

Log: not sent

Version information

  • Platform: web (in-browser)
  • Browser: Chromium 73.0.3683.75-1
  • OS: Debian testing
  • URL: riot.im/develop and riot.im/app
@jryans
Copy link
Collaborator

jryans commented Apr 25, 2019

After testing here, the log database is re-created after these steps. I believe (since you're also on #7769) this is just another version of hitting the storage space limits. Since Chrome thinks you're out of space, it's refusing to allow the database to be created.

Let's consider this a variant of #7769.

@jryans jryans closed this as completed Apr 25, 2019
@andreygursky
Copy link
Author

Thanks for trying out.

Regarding the message "Error: Failed to open log database: AbortError". Since something like "failed to create" is missing, it could mean there is some open() function that implicitly creates a database if no existing is found. So if open() fails it means actually not only opening but also re-creating has failed. Maybe the error message can then be improved to reflect this?

Since Chrome thinks you're out of space, it's refusing to allow the database to be created.

That's strange, since matrix-js-sdk:crypto and matrix-js-sdk:riot-web-sync are re-created.

su-ex added a commit to SchildiChat/element-web that referenced this issue Nov 25, 2022
* Make clear notifications work with threads ([\element-hq#9575](matrix-org/matrix-react-sdk#9575)). Fixes element-hq#23751.
* Change "None" to "Off" in notification options ([\element-hq#9539](matrix-org/matrix-react-sdk#9539)). Contributed by @Arnei.
* Advanced audio processing settings ([\element-hq#8759](matrix-org/matrix-react-sdk#8759)). Fixes element-hq#6278. Contributed by @MrAnno.
* Add way to create a user notice via config.json ([\element-hq#9559](matrix-org/matrix-react-sdk#9559)).
* Improve design of the rich text editor ([\element-hq#9533](matrix-org/matrix-react-sdk#9533)). Contributed by @florianduros.
* Enable user to zoom beyond image size ([\element-hq#5949](matrix-org/matrix-react-sdk#5949)). Contributed by @jaiwanth-v.
* Fix: Move "Leave Space" option to the bottom of space context menu ([\element-hq#9535](matrix-org/matrix-react-sdk#9535)). Contributed by @hanadi92.
* Make build scripts work on NixOS ([\element-hq#23740](element-hq#23740)).
* Fix integration manager `get_open_id_token` action and add E2E tests ([\element-hq#9520](matrix-org/matrix-react-sdk#9520)).
* Fix links being mangled by markdown processing ([\element-hq#9570](matrix-org/matrix-react-sdk#9570)). Fixes element-hq#23743.
* Fix: inline links selecting radio button ([\element-hq#9543](matrix-org/matrix-react-sdk#9543)). Contributed by @hanadi92.
* Fix wrong error message in registration when phone number threepid is in use. ([\element-hq#9571](matrix-org/matrix-react-sdk#9571)). Contributed by @bagvand.
* Fix missing avatar for show current profiles ([\element-hq#9563](matrix-org/matrix-react-sdk#9563)). Fixes element-hq#23733.
* Fix read receipts trickling down correctly ([\element-hq#9567](matrix-org/matrix-react-sdk#9567)). Fixes element-hq#23746.
* Resilience fix for homeserver without thread notification support ([\element-hq#9565](matrix-org/matrix-react-sdk#9565)).
* Don't switch to the home page needlessly after leaving a room ([\element-hq#9477](matrix-org/matrix-react-sdk#9477)).
* Differentiate download and decryption errors when showing images ([\element-hq#9562](matrix-org/matrix-react-sdk#9562)). Fixes element-hq#3892.
* Close context menu when a modal is opened to prevent user getting stuck ([\element-hq#9560](matrix-org/matrix-react-sdk#9560)). Fixes element-hq#15610 and element-hq#10781.
* Fix TimelineReset handling when no room associated ([\element-hq#9553](matrix-org/matrix-react-sdk#9553)).
* Always use current profile on thread events ([\#9524](matrix-org/matrix-react-sdk#9524)). Fixes element-hq#23648.
* Fix `ThreadView` tests not using thread flag ([\element-hq#9547](matrix-org/matrix-react-sdk#9547)). Contributed by @MadLittleMods.
* Handle deletion of `m.call` events ([\element-hq#9540](matrix-org/matrix-react-sdk#9540)). Fixes element-hq#23663.
* Fix incorrect notification count after leaving a room with notifications ([\element-hq#9518](matrix-org/matrix-react-sdk#9518)). Contributed by @Arnei.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants