Issues with Tuta mail client

Hello everyone,

The last version of Tutamail is throwing this errors at me:

Could not access secret storage

and

Feedback v3.119.3 - DeviceStorageUnavailableError - UNKNOWN - linux



 Client: linux
 Type: UNKNOWN
 Tutanota version: 3.119.3
 Timestamp (UTC): Tue, 19 Dec 2023 16:59:15 GMT
 User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop/3.119.3 Chrome/116.0.5845.228 Electron/26.6.1 Safari/537.36
DeviceStorageUnavailableError
 Error message: failed to resolve/generate key> DeviceStorageUnavailableError: safeStorage API is not available
    at Cw.assertAvailable (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:193395)
    at async Cw.getPassword (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:192606)
    at async Z_.fetchKey (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:210883)
    at async Z_.fetchOrGenerateKey (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:210597)
    at async db.decryptUsingKeychain (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:281703)
    at async ipc (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:292047)
Stacktrace: 
DeviceStorageUnavailableError: failed to resolve/generate key> DeviceStorageUnavailableError: safeStorage API is not available
    at Cw.assertAvailable (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:193395)
    at async Cw.getPassword (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:192606)
    at async Z_.fetchKey (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:210883)
    at async Z_.fetchOrGenerateKey (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:210597)
    at async db.decryptUsingKeychain (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:281703)
    at async ipc (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:292047)
    at Z_.fetchOrGenerateKey (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:210784)
    at async db.decryptUsingKeychain (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:281703)
    at async ipc (/app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:292047)

What I notice is that this error contains paths that my system does not have like /app/tutanota/resources/app.asar/desktop/DesktopMain.js:5:193395. I don’t have an app directory in root.

I have read their FAQ. I haven’t modified my integration with KeePassXC. Upgrading to version 3.119.8 caused the problem.

What I have tried

  • Reinstalling org.freedesktop.secrets
  • The flatpak and the bin packages to no avail.
  • Downgrading, but downgrade tutanota-desktop or any of the alternative packages throws the following error at me
"No results found
Unable to downgrade tutanota-desktop

Got any hints as to what I might try next? Thank you in advance :pray:t2:

I can neither reproduce the issue with tutanota-desktop nor tutanota-desktop-bin.

EDIT: See below. :point_down:

Try upgrading to v3.119.8 (available in the AUR repository), which should have fixed the problem:

I don’t know why it said 3.119.3 in here (I am sure I was running a version listed as 3.119.8 when I created the post, so that is a bit strange). I am currently running 3.119.8 and I get a similar error but with different paths:

Feedback v3.119.8 - DeviceStorageUnavailableError - UNKNOWN - linux



 Client: linux
 Type: UNKNOWN
 Tutanota version: 3.119.8
 Timestamp (UTC): Tue, 19 Dec 2023 17:55:22 GMT
 User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop/3.119.8 Chrome/116.0.5845.228 Electron/26.6.2 Safari/537.36
DeviceStorageUnavailableError
 Error message: failed to resolve/generate key> Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at Nw.getPassword (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:192988)
    at async tR.fetchKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:211097)
    at async tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210825)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:287120)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297338)
Stacktrace: 
DeviceStorageUnavailableError: failed to resolve/generate key> Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at Nw.getPassword (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:192988)
    at async tR.fetchKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:211097)
    at async tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210825)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:287120)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297338)
    at tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210998)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:287120)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297338)

@Centaro We moved your topic to AUR because you’re using AUR packages. The Software & Applications category is only for help with packages in the repos. :wink:

1 Like

Noted, thank you! :star_struck:

The suggested workaround worked for me

Edit
Only works from shell: tutanota-desktop --password-store=“kwallet5”

Now on version 3.119.10, I get these errors in the terminal:

tutanota-desktop --password-store="kwallet5" --trace-deprecation                        ✔  14:42:22 
the monkey has been patched pid: 5147
(node:5147) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    at showFlaggedDeprecation (node:buffer:202:11)
    at new Buffer (node:buffer:286:3)
    at /opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:11:8023
    at Object.<anonymous> (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:11:47358)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at node:electron/js2c/browser_init:2:122709
version:   3.119.10
config up to date
[2023-12-23T13:46:36.925Z] Create tray:true
libva error: /usr/lib/dri/i965_drv_video.so init failed

and the legacy error in the GUI, which seems to be related:

Feedback v3.119.10 - DeviceStorageUnavailableError - UNKNOWN - linux



 Client: linux
 Type: UNKNOWN
 Tutanota version: 3.119.10
 Timestamp (UTC): Sat, 23 Dec 2023 13:42:21 GMT
 User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop/3.119.10 Chrome/116.0.5845.228 Electron/26.6.2 Safari/537.36
DeviceStorageUnavailableError
 Error message: failed to resolve/generate key> Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at Nw.getPassword (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:192988)
    at async tR.fetchKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210954)
    at async tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210682)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:286977)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297195)
Stacktrace: 
DeviceStorageUnavailableError: failed to resolve/generate key> Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at Nw.getPassword (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:192988)
    at async tR.fetchKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210954)
    at async tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210682)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:286977)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297195)
    at tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210855)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:286977)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297195)

I solved it by deleting the safe_storage folder in. .config/tutanota-desktop/ which was then recreated the next time the application was launched

this was my error and i am using xfce

Feedback v3.119.10 - DeviceStorageUnavailableError - UNKNOWN - linux



 Client: linux
 Type: UNKNOWN
 Tutanota version: 3.119.10
 Timestamp (UTC): Fri, 12 Jan 2024 10:48:56 GMT
 User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop/3.119.10 Chrome/116.0.5845.228 Electron/26.6.2 Safari/537.36
DeviceStorageUnavailableError
 Error message: failed to resolve/generate key> Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at Nw.getPassword (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:192988)
    at async tR.fetchKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210954)
    at async tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210682)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:286977)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297195)
Stacktrace: 
DeviceStorageUnavailableError: failed to resolve/generate key> Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at Nw.getPassword (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:192988)
    at async tR.fetchKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210954)
    at async tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210682)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:286977)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297195)
    at tR.fetchOrGenerateKey (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:210855)
    at async Sb.decryptUsingKeychain (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:286977)
    at async ipc (/opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:5:297195)
2 Likes

Amazing! Thank you, Gionno! I was waiting for an update that fixed it, but 10 updates in and the bug persisted. Your solution works in KDE too.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.