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

DbError: "The database connection is closing" #452

Closed
asteintutao opened this issue Jul 10, 2018 · 13 comments
Closed

DbError: "The database connection is closing" #452

asteintutao opened this issue Jul 10, 2018 · 13 comments
Labels
bug broken functionality, usability problems, unexpected errors

Comments

@asteintutao
Copy link

before i got this error the client was open for several hours. Then after waking the pc this error occurred also i wanted to write an email after this error happend but clicking into the recipient files triggered the same error again. Error was gone after reloging.

error DbError: could not create transaction: InvalidStateError, Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.> Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
at https://mail.tutanota.com/worker.js:1:392192
at r (https://mail.tutanota.com/libs.js:32:9004)
at i._settlePromiseFromHandler (https://mail.tutanota.com/libs.js:31:14217)
at i._settlePromise (https://mail.tutanota.com/libs.js:31:15020)
at i._settlePromiseCtx (https://mail.tutanota.com/libs.js:31:15528)
at r._drainQueue (https://mail.tutanota.com/libs.js:30:3039)
at r._drainQueues (https://mail.tutanota.com/libs.js:30:3117)
at drainQueues (https://mail.tutanota.com/libs.js:30:1238)
at https://mail.tutanota.com/worker.js:1:392266
at r (https://mail.tutanota.com/libs.js:32:9004)
at i._settlePromiseFromHandler (https://mail.tutanota.com/libs.js:31:14217)
at i._settlePromise (https://mail.tutanota.com/libs.js:31:15020)
at i._settlePromiseCtx (https://mail.tutanota.com/libs.js:31:15528)
at r._drainQueue (https://mail.tutanota.com/libs.js:30:3039)
at r._drainQueues (https://mail.tutanota.com/libs.js:30:3117)
at drainQueues (https://mail.tutanota.com/libs.js:30:1238)

@asteintutao asteintutao added the bug broken functionality, usability problems, unexpected errors label Jul 10, 2018
@mpfau mpfau added this to the Out of beta bugfixing milestone Nov 1, 2018
@mpfau
Copy link
Contributor

mpfau commented Nov 6, 2018

@asteintutao does this error still occur?

@mpfau
Copy link
Contributor

mpfau commented Nov 12, 2018

related to #738

@armhub armhub changed the title "DbError" got an error msg after waking pc out of hibernation (energy saving mode) DbError: "The database connection is closing" Nov 15, 2018
@armhub
Copy link
Contributor

armhub commented Nov 15, 2018

Also occurs when trying to write the address in a new mail

@charlag
Copy link
Contributor

charlag commented Nov 15, 2018

Looks like
jensarps/IDBWrapper#80
pouchdb/pouchdb#3415 (comment) (ni Nolan!)

@charlag
Copy link
Contributor

charlag commented Nov 16, 2018

Cannot reproduce, assume tested

@charlag charlag added the state:tested We tested it and are about to release it label Nov 16, 2018
@charlag
Copy link
Contributor

charlag commented Nov 19, 2018

Still occurs in iOS app with 3.40.3

@charlag charlag reopened this Nov 19, 2018
@charlag
Copy link
Contributor

charlag commented Nov 19, 2018

"Connection closed on Chrome (IndexedDB) in long sessions" localForage/localForage#581
"try reconnect to the DB after InvalidStateError" localForage/localForage#694
"Chrome - Random Closing Database issue (hard/impossible to reproduce)" dexie/Dexie.js#613

@charlag
Copy link
Contributor

charlag commented Nov 19, 2018

Also occurs on Android 3.40.3

@armhub
Copy link
Contributor

armhub commented Nov 21, 2018

Was fixed in 3.41.1

@charlag
Copy link
Contributor

charlag commented Nov 28, 2018

.was just sending an email after clearing old emails to keep under 1Gb limit

Client: Browser
Tutanota version: 3.41.5
User agent: 
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Error message: 
could not create transaction: InvalidStateError, Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.> Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
at https://mail.tutanota.com/worker.js:1:413095
at a (https://mail.tutanota.com/libs.js:26:73165)
at F._settlePromiseFromHandler (https://mail.tutanota.com/libs.js:26:46542)
at F._settlePromise (https://mail.tutanota.com/libs.js:26:47342)
at F._settlePromiseCtx (https://mail.tutanota.com/libs.js:26:47848)
at h (https://mail.tutanota.com/libs.js:26:1699)
at p (https://mail.tutanota.com/libs.js:26:1585)
at a._drainQueues (https://mail.tutanota.com/libs.js:26:3078)
at drainQueues (https://mail.tutanota.com/libs.js:26:1327)

Stacktrace: 
DbError: could not create transaction: InvalidStateError, Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.> Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
at https://mail.tutanota.com/worker.js:1:413095
at a (https://mail.tutanota.com/libs.js:26:73165)
at F._settlePromiseFromHandler (https://mail.tutanota.com/libs.js:26:46542)
at F._settlePromise (https://mail.tutanota.com/libs.js:26:47342)
at F._settlePromiseCtx (https://mail.tutanota.com/libs.js:26:47848)
at h (https://mail.tutanota.com/libs.js:26:1699)
at p (https://mail.tutanota.com/libs.js:26:1585)
at a._drainQueues (https://mail.tutanota.com/libs.js:26:3078)
at drainQueues (https://mail.tutanota.com/libs.js:26:1327)
at https://mail.tutanota.com/worker.js:1:413286
at a (https://mail.tutanota.com/libs.js:26:73165)
at F._settlePromiseFromHandler (https://mail.tutanota.com/libs.js:26:46542)
at F._settlePromise (https://mail.tutanota.com/libs.js:26:47342)
at F._settlePromiseCtx (https://mail.tutanota.com/libs.js:26:47848)
at h (https://mail.tutanota.com/libs.js:26:1699)
at p (https://mail.tutanota.com/libs.js:26:1585)
at a._drainQueues (https://mail.tutanota.com/libs.js:26:3078)
at drainQueues (https://mail.tutanota.com/libs.js:26:1327)

and some other reports

@charlag
Copy link
Contributor

charlag commented Apr 9, 2019

Did not show up for some time

@charlag charlag closed this as completed Apr 9, 2019
@charlag
Copy link
Contributor

charlag commented May 22, 2019

Re-surfaced after 3.52.1

@charlag charlag reopened this May 22, 2019
@charlag charlag removed the state:tested We tested it and are about to release it label May 22, 2019
@charlag
Copy link
Contributor

charlag commented Feb 28, 2020

This is a different issue
#1855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug broken functionality, usability problems, unexpected errors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants