Dexie.js icon indicating copy to clipboard operation
Dexie.js copied to clipboard

UnknownError: Internal error opening backing store for indexedDB.open

Open mikeyyyzhao opened this issue 2 years ago • 22 comments
trafficstars

I know there was a similar bug report (#271 ) but I'm still seeing this reported in our sentry. We're seeing this every few days so it's not a common recurrence. We're running Electron 24.1 and have app.requestSingleInstanceLock() inside of our electron app. Any guidance on how to solve this?

mikeyyyzhao avatar Jul 17 '23 22:07 mikeyyyzhao

This could be anything I suppose (out of scope for what Dexie.js can control) such as the user deleting the physical file while electron is opening it, or that the user has a corrupt file system. But I would be curious to know how many users you have approximately? (to get a sense of how much every few days would be per user)

dfahlander avatar Jul 18 '23 07:07 dfahlander

At least according to sentry, it's 1 user every ~2 days off of thousands of users. The issue is that nothing else works until the user hits refresh

mikeyyyzhao avatar Jul 19 '23 14:07 mikeyyyzhao

We had a similar problem recently,When the function「bulkDelete」 is called in my code

The error message is : 「DatabaseClosedError UnknownError Internal error opening backing store for indexedDB.open. UnknownError: Internal error opening backing store for indexedDB.open.」

Occurred 24514 times in the past month, affecting 102 users,I don't even know how to reproduce and what is the actual impact on users

version: [email protected]

Charming2015 avatar Jul 25 '23 08:07 Charming2015

We had a similar problem recently,When the function「bulkDelete」 is called in my code

The error message is : 「DatabaseClosedError UnknownError Internal error opening backing store for indexedDB.open. UnknownError: Internal error opening backing store for indexedDB.open.」

Occurred 24514 times in the past month, affecting 102 users,I don't even know how to reproduce and what is the actual impact on users

version: [email protected]

What browser or platform are your users on (Electron, Capacitor or browsers?) and approx total number of users you have?

dfahlander avatar Jul 25 '23 08:07 dfahlander

According to sentry, it's been on chrome, safari and electron.

mikeyyyzhao avatar Jul 30 '23 16:07 mikeyyyzhao

What browser or platform are your users on (Electron, Capacitor or browsers?) and approx total number of users you have?

@dfahlander chrome 115.0.5790.114

Charming2015 avatar Aug 02 '23 02:08 Charming2015

the same issue, chrome V123.0.6312.86, window 11

wangmeijian avatar Mar 27 '24 07:03 wangmeijian

Same here, got DatabaseClosedError randomly. Can confirm that I initialized dexie with autoOpen: true and not call db.close() before.

CN-tan avatar Jul 30 '24 09:07 CN-tan

To anyone looking and commenting this, please provide dexie version you are using, along with the browser and its version. We have more workarounds in place for these kind of issues in dexie@4. (See also issue 543)

dfahlander avatar Jul 30 '24 10:07 dfahlander

To anyone looking and commenting this, please provide dexie version you are using, along with the browser and its version. We have more workarounds in place for these kind of issues in dexie@4. (See also issue 543)

dexie: "^4.0.8", chrome version from 107 to 124 os: ubuntu 18.04 / ubuntu 20.04

CN-tan avatar Jul 30 '24 11:07 CN-tan