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

Error launching browser process in AWS Azure Login due to missing libnss3.so library #292

Open
sriit93 opened this issue Jun 22, 2023 · 0 comments

Comments

@sriit93
Copy link

sriit93 commented Jun 22, 2023

When attempting to use the aws-azure-login command, the following error is encountered:

Error: Failed to launch the browser process!
/snap/aws-azure-login/7/node_modules/puppeteer/.local-chromium/linux-884014/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

The error indicates that the libnss3.so shared library is missing, which is required by Chromium used by Puppeteer.

Steps to reproduce -

  1. Install aws-azure-login using the following command:
    sudo apt-get install aws-azure-login
    
  2. Run the aws-azure-login command:
    aws-azure-login
    
  3. Observe the error message mentioned below.

Error: Failed to launch the browser process!
/snap/aws-azure-login/7/node_modules/puppeteer/.local-chromium/linux-884014/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

Expected Behavior

The aws-azure-login command should launch the browser process successfully without any shared library errors.

Environment Information

  • Operating System: Ubuntu 22.04 LTS (jammy)
  • AWS Azure Login Version

Troubleshooting Steps Attempted

  1. Checked the installation of the aws-azure-login package using the following command:

    dpkg -s aws-azure-login | grep Version
    

    Result: dpkg-query: package 'aws-azure-login' is not installed and no information is available

  2. Tried installing the package using apt-get:

    sudo apt-get install aws-azure-login
    

    Result: E: Unable to locate package aws-azure-login

  3. Checked the existence of the aws-azure-login package files using the following command:

    ls -l /var/lib/dpkg/info/aws-azure-login*
    

    Result: ls: cannot access '/var/lib/dpkg/info/aws-azure-login*': No such file or directory

  4. Attempted to locate the libnss3.so library:

    sudo find / -name "libnss3.so"
    

    Result: /usr/lib/x86_64-linux-gnu/libnss3.so
    /usr/lib/thunderbird/libnss3.so
    find: ‘/run/user/1001/doc’: Permission denied
    find: ‘/run/user/1001/gvfs’: Permission denied
    /snap/gnome-42-2204/105/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/gnome-42-2204/111/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/cups/872/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/cups/950/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/slack/71/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/slack/79/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/firefox/2710/usr/lib/firefox/libnss3.so
    /snap/firefox/2760/usr/lib/firefox/libnss3.so
    /snap/chromium/2497/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/chromium/2477/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/snap-store/959/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/snap-store/638/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/postman/207/usr/lib/x86_64-linux-gnu/libnss3.so
    /snap/postman/209/usr/lib/x86_64-linux-gnu/libnss3.so

  5. Set the LD_LIBRARY_PATH environment variable to include the library path:

    export LD_LIBRARY_PATH=/path/to/libnss3.so:$LD_LIBRARY_PATH
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant