-
Notifications
You must be signed in to change notification settings - Fork 8
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
Keyring for headless Linux installation #63
Comments
Hey @tanto259, thanks for reporting. We'll take a look at this issue. |
@tanto259 Do you have the libsecret library installed on WSL? This is one of the prerequisites for using the extension on Linux. |
I do, a full log is linked. I have libsecret-1-0 version 0.20.4-0ubuntu1. Also, on a somewhat-similar issue, I was helping an individual with the IBM Z Xplore courses, and one of the courses uses this extension. The person encounter the same error message on a M1 Macbook Air with OpenJDK 11.0.12 build 11.0.12+7-LTS. Their log message is also attached on the GitHub Gist linked above as the file macbook-log. As far as I know, no one on the IBM Z Xplore platform encounter the issue on a Macbook with Intel processor. However, the person seems to be the only one reporting the issue so far. |
Thanks for the logs. Do you also have the |
I'm currently at version 3.36.0-1ubuntu1 of gnome-keyring |
Hi @tanto259, after our investigation, we presume what is happening here is the user that is starting vscode is unable to access the keyring, resulting in the error shown. You can verify this by running the following command
An incorrect output would show
Please try running the command on the user which starts vscode or code-server. |
Unfortunately, running the command on the VSCode terminal seems to work:
|
Hi @tanto259, can you also try this command
If gnome-keyring-daemon is not running, you can launch dbus and start gnome-keyring-daemon like in these issues: |
Sorry to keep you waiting. Unfortunately, it seems that The way the daemon was set up follows the Zowe SCS instruction, which is adding the following to
Thank you and happy holidays! |
@tanto259 Happy holidays! Hope you had a great break. To recap on the problem so far: Do you think you could provide a docker image with the linux environment you're running with the setup as close as possible? |
I am hitting the same Issue using the Microsoft Node Docker Image (VS Code Dev Container):
|
Hi @tanto259 and @ben-j-herbertz, We were able to identify the To do this in WSL2 with Zowe SCS plugin installed, you will need to run For the VS Code dev container, you will need to use the following ARG VARIANT="16-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends openjdk-11-jdk libsecret-1-0 gnome-keyring dbus-x11 devcontainer.json // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/javascript-node
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon.
"args": { "VARIANT": "16-bullseye" }
},
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
// "ibm.db2forzosdeveloperextension"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
"postCreateCommand": "dbus-daemon --session --fork --address=${DBUS_SESSION_BUS_ADDRESS} --print-pid --print-address && echo \"<RANDOM-PASSPHRASE>\" | gnome-keyring-daemon -r -d --unlock",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"runArgs": [
"--privileged"
],
"containerEnv": {
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/tmp/dbus-session"
}
} Unfortunately, after resolving the initial error, we hit a new |
Thank you @katsoohoo! Just for your information, on the IBM Z Xplore forum page, we have 2 reports of users with the M1 Macbook getting the same no available keyring backend found. Both of them are also using the Azul Zulu build of OpenJDK 11. Since I have no M1 Macbook, I couldn't replicate this, but I thought I'll let y'all know just in case. OS Info of Individual 1:
OS Info of Individual 2 (not sure on the exact macos version that this person use):
Some logs:
|
This issue occurs because the extension currently does not support remote development environments. Closing this issue since #70 will address this as an enhancement. |
Development environment where the bug occurred
java -version
and paste the details here): JDK 14.0.2 build 14.0.2+12-46Problem description
Detailed steps for reproducing the problem:
I'm able to replicate this issue in code-server on a headless Ubuntu Server 20.04 installation as well.
Observed behavior
ERROR: com.github.javakeyring.BackendNotSupportedException: No available keyring backend found
Expected behavior
The text was updated successfully, but these errors were encountered: