Skip to content

Encryption is not available #1981

Open
Open
@TrayserCassa

Description

@TrayserCassa

🔍 Is there already an issue for your problem?

  • I have checked older issues, open and closed

📝 Description

I recently notice that I didn't get upgrades anymore and was logged out. I tried to login again but it seems my system has some missing dependencies.

I'm not able to login with OAuth or with the token method and in the logs I see the issue with Encryption is not available. I guess the storage system can't be encrypted which is an issue by my system but just wanted to ask if there is maybe a missing requirement or at least capture the error properly to show a hint.

My guess is that this pr is related to it #1800 but not 100% sure.

My system is ArchLinux
Node: v22.14.0

🪜 Steps To Reproduce

  1. Well install arch linux
  2. Have a missing dependency for electron
  3. Failed login without any warning or error (Besides terminal/Journal)

🪵 Log Excerpts

This error is the failed login for the browser session. If you want I can also add the logs for the PAT but I guess it's the same issue.

[98103:0429/114254.667532:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[98103:0429/114257.685543:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[98103:0429/114257.688279:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Opening in existing browser session.
11:43:01.305 › [main:second-instance] Second instance was launched.  extracting command to forward
11:43:01.308 › [main:handleUrl] forwarding URL gitify://auth?code=<some-code> to renderer process
11:43:01.308 › [renderer:auth-callback] received authentication callback URL gitify://auth?code=<some-code>
Error occurred in handler for 'gitify:safe-storage-encrypt': Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.
    at /usr/lib/gitify/app.asar/build/main.js:2:289919
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87415)
    at WebContents.emit (node:events:524:28)
11:43:01.615 › [loginWithGitHubApp] failed to login with GitHub Error: Error invoking remote method 'gitify:safe-storage-encrypt': Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.
    at IpcRenderer.invoke (node:electron/js2c/renderer_init:2:7076)
    at async t.encryptValue (file:///usr/lib/gitify/app.asar/build/renderer.js:61:469855)
    at async t.addAccount (file:///usr/lib/gitify/app.asar/build/renderer.js:61:499005)
    at async file:///usr/lib/gitify/app.asar/build/renderer.js:2:276348
    at async file:///usr/lib/gitify/app.asar/build/renderer.js:2:46655

Gitify Version

6.2.1

Operating System

Linux

GitHub Account

GitHub Cloud

📸 Screenshots

No response

Activity

setchy

setchy commented on Apr 29, 2025

@setchy
Member

Thanks for reporting.

I wonder what it is with your OS that causes the safeStorage API to fail

TrayserCassa

TrayserCassa commented on Apr 29, 2025

@TrayserCassa
Author

I thought somebody of you have already an idea about this, but I can have a look tomorrow to see what it is. With this issue I would aim for a better error message and maybe check beforehand if the safeStorage is working. But you should not fallback to insecure storage tbh. I guess it's a edge case issue so I will take a look and report it back.

added
help-wantedExtra attention is needed
priority:lowItems of low importance. Applicable to select few users or use-cases
on May 3, 2025
added theissue type on May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp-wantedExtra attention is neededplatform:linuxRelated to linux buildpriority:lowItems of low importance. Applicable to select few users or use-cases

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @setchy@TrayserCassa

        Issue actions

          Encryption is not available · Issue #1981 · gitify-app/gitify