-
Notifications
You must be signed in to change notification settings - Fork 304
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
dbus session error when installing code server tunnel as service #7778
Comments
I ran into the same issue attempting to install the tunnel service on Debian 10 on a Tinkerboard (arm64), but found a workaround.
Example
Hope this helps! |
My issue is different from original poster, but similar to previous comment. Running service install did write
In my case, it worked after running:
|
I have the same quetion in code-cli version 1.75.0 (commit e2816fe719a4026ffa1ee0189dc89bdfdbafb164) |
I have the same issue. Throws this error regardless of being in home directory or The tunnel starts up just fine with |
Installing sudo apt install dbus-user-session
sudo reboot After rebooting the container, the service was successfully installed in user context.
However, what I noticed is that this service would only auto-start when logged in to that host/container. Enabling user lingering compensates this: sudo loginctl enable-linger username |
Thanks for all the reports and steps here! I've made the error much more helpful in this case. For when the dbus connection fails (WSL section is only printed when running the CLI on WSL): If the user is connected via SSH, then I print @jpawlowski's tip too after the service is installed: |
VSCode Version: Visual Studio Code CLI 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161)
Local OS Version: Mac OS 13.0.1 (22A400)
Remote OS Version: Ubuntu 22.04.1
Remote Extension/Connection Type: Code-Server
Logs:
Steps to Reproduce:
/usr/local/bin/code
code tunnel service install
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
The text was updated successfully, but these errors were encountered: