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

AppImage doesn't start on linux due to NSS cert error #3211

Closed
isysd-mirror opened this issue Dec 22, 2021 · 6 comments
Closed

AppImage doesn't start on linux due to NSS cert error #3211

isysd-mirror opened this issue Dec 22, 2021 · 6 comments
Assignees
Labels
bug Something isn't working stale Stale Issue

Comments

@isysd-mirror
Copy link
Contributor

Context

Complete and adjust the contents leaving the information that fits your case and deleting the information that doesn't.

Operating System: Linux (Xubuntu x64 20.04)

Software version: today's develop branch, Dec 20 nightly, Dec 22 nightly

Reproducible: the issue may? be reproduced.

Explain your issue

1. Explain what the problem seems to be.

I have tried running the AppImage on linux in various ways, and it never fully loads the app. The window opens, but the canvas either remains white or stuck on "The UI is loading..."

I have tried building the AppImage locally and running different nightly builds. In all cases, when the AppImage is run from command line, an error like this is thrown:

$ ~/Downloads/Superalgos-1.0.1-20211222.AppImage
Checking for update
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[800605:1222/093633.030066:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[800561:1222/093633.435757:ERROR:nss_util.cc(286)] After loading Root Certs, loaded==false: NSS error code: -8018
Update for version 1.0.1-20211222 is not available (latest version: 1.0.1-20211222, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null

After discussing with @NAmorim, it seems like there's an issue with a check for new releases on github.com. This fits with the error message, which seems to relate to x509 certificate databases (NSS). Presumably the electron client needs to be provided with an NSS database which includes the root key which signed the x509 cert for github.com.

2. Clearly explain what you wish to accomplish.

Start the electron app on linux. Specifically, I wish to use the User Profile builder.

@isysd-mirror
Copy link
Contributor Author

On further research, it seems node also maintains an NSS database... Perhaps that is where we should be looking. See:

nodejs/node#35546

@isysd-mirror
Copy link
Contributor Author

More debugging indicates that this isn't the reason the app won't load. Catching the error, and also simply commenting out the autoUpdater.checkForUpdatesAndNotify() line still result in the same hung loading screen. Perhaps there are two issues here.

@isysd-mirror
Copy link
Contributor Author

@NAmorim I'm stumped on this, could you please take a look? I'm going to use the web app to begin my work on multiple-blockchain support for the SA token. Not urgent, I think.

@NAmorim NAmorim added the bug Something isn't working label Jan 5, 2022
@NAmorim NAmorim self-assigned this Jan 5, 2022
@NAmorim
Copy link
Contributor

NAmorim commented Jan 6, 2022

Did some tests but on my Ubuntu LTS it did work.
Reading about this in the AppImage issue list, this might be related to not having the latest versions of nss.
So my first try would be "sudo apt install libnss3"

@isysd-mirror
Copy link
Contributor Author

@NAmorim I already had the latest libnss3 version. Really stumped on this one. :/

@stale
Copy link

stale bot commented Jul 20, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale Issue label Jul 20, 2022
@stale stale bot closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Stale Issue
Projects
None yet
Development

No branches or pull requests

2 participants