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
Failed to connect to Socket #592
Comments
This is a dbus issue, so not really something we have the best expertise on. That |
As per my post, the error began before that. The other help log said to
add it, but not where.
As I said, only one account isn't working. Do you have any ideas as to why
this one fails and the other accounts work?
…On Mon, Feb 5, 2018 at 2:12 AM, Pierre Ossman (Work account) < ***@***.***> wrote:
This is a dbus issue, so not really something we have the best expertise
on. That dbus-launch line is quite clearly wrong though as you're getting
errors in your log. So I would suggest removing that and then hopefully
things will work fine.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#592 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYyWn2AejQBowKs_4gt4nF4sHL4pqACIks5tRtQRgaJpZM4R3maW>
.
|
Not really. So we'll need a log without that line in and see if you get some other error. |
Ok, I removed the line and restarted the vncserver.
The log reads as follows:
Xvnc TigerVNC 1.1.0 - built May 11 2016 13:01:55
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11704000, The X.Org Foundation
Mon Feb 12 12:41:21 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5907
vncext: created VNC server for screen 0
gnome-session[4099]: WARNING: Could not make bus activated clients aware of
DISPLAY=:7 environment variable: Failed to connect to socket
/tmp/dbus-TAq3EF94t4: Connection refused
gnome-session[4099]: WARNING: Could not make bus activated clients aware of
GNOME_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Failed to
connect to socket /tmp/dbus-TAq3EF94t4: Connection refused
gnome-session[4099]: WARNING: Could not make bus activated clients aware of
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/4099,unix/unix:/tmp/.ICE-unix/4099
environment variable: Failed to connect to socket /tmp/dbus-TAq3EF94t4:
Connection refused
…On Mon, Feb 12, 2018 at 4:27 AM, Pierre Ossman (Work account) < ***@***.***> wrote:
Not really. So we'll need a log without that line in and see if you get
some other error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#592 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYyWn_CVK-t73Gn9albxlw3IU0w9BiSWks5tUC5AgaJpZM4R3maW>
.
|
Is Exactly how are you starting the VNC server? What are the steps? |
Yes, the config file is now the same as for other users. To start the
server I type 'sudo service vncserver restart'. The display goes through
each user and comes back with an [ok].
I made a new account for the user who's account broke. Not a sophisticated
answer, but the new account works. If it breaks for her again then I'll be
at a loss.
Thanks.
…On Mon, Feb 19, 2018 at 7:24 AM, Pierre Ossman (Work account) < ***@***.***> wrote:
Reopened #592 <#592>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#592 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AYyWn_yK7L8b37b2DvF5q72rav2affckks5tWZI3gaJpZM4R3maW>
.
|
Hi, excuse me for comment on a closed issue, but I came into the same issue. My server, Ubuntu 16.04.3 LTS crashed, and after reboot, one or two user could not connect to server via vnc because of this dbus or socket error. I found that this issue might help, I run this command:
before
and sucessfully to connect via vnc. But it seems that I have do that every time? I'm not familiar with dbus-daemon. It's said that systemd start dbus-daemon on boot for every user, maybe there is something wrong? I will check it later. Hope this might be help with someone who encounter same issue. |
Hello, I just try another way.
sudo mv /home/USER /home/USER-backup
sudo mkdir /home/USER
sudo chown USER:USER USER
ps aux | grep USER | grep daemon-dbus and kill them all.
I think just delete every files or dirs start with a dot |
It works for me, when I start XFCE with this command:
in |
If you use anaconda, you may try this way:
restart vnc and login in again. |
@mysteryzoz You mean conda break this? I don't see why anaconda/conda is related to this issue. |
@hubutui I think the |
@mysteryzoz You might wanna remove anaconda installation path from you |
That did the trick. Who would have thought... |
I had the same issue. Removing Anaconda 'dbus' solved it! |
I was ready to pull my hair out trying to fix this issue! I didn't remove Anaconda dbus. I just typed "conda deactivate" and then it seemed to work.. If I still have more issues I will look at uninstalling dbus. But I would rather not do that unless needed. |
Thanks to this issue, I was inspired, I just tried to use |
Hi I'm running TigerVNC on my centos server. I have 7 user accounts on the server but only ONE is not working. It was previously working just fine. Have tried connecting from multiple remote machines with vncviewer and restarted the vnc server and the physical server.
The error log from the failed account:
Error log from working account:
Found similar issues here:
Failed to connect to socket /tmp/dbus-xxx: Connection refused
[xfce4-session] dbus 1.10 prevents X starting correctly
vnc, Could not connect to session bus
VNC error: “Could not connect to session bus: Failed to connect to socket”
But I wasn't sure exactly which portions apply to me. Seems many of these people are using X11. I did add a line to the config file in
/home/user7/.vnc/xstartup
Based on the links above, I added:
dbus-launch xfce-session
after lines
entire config file reads:
Thanks. I don't often have to deal with sockets so this is outside my wheelhouse.
edit: formatting, clarification.
The text was updated successfully, but these errors were encountered: