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
Vncserver wont stay running using domain user account, local account works as expected #1355
Comments
The last line of the domain user log file should say: |
Hmm... I'm guessing the desktop environment is crashing somehow, and its logging is in the journal instead of in the vnc log file. Could you run |
I hope I entered the command correctly:
Let me know if this looks wrong. :-)
So it looks like no luck there. |
Ok, so after thinking about it some some more I realized I should probably run: Doing so, yielded the following log entries:
So, I guess the question to be solved is why the connection is refused. I am weak on the GUI in Linux but I am trying to learn. In fairness to the TigerVNC team, maybe my issue is with gnome and not tigervnc? |
I think it is complaining about d-bus, which is supposed to be started by systemd for the user. Are those every line you got from the log? Or have you removed some things? Have you tried reporting this bug to CentOS/Red Hat? This looks more like a bug in something in the system rather than TigerVNC. @grulja, anything that looks familiar? |
Hi, sorry for late answer. Unfortunately it doesn't look familiar, to me it looks like issue related to the system and not to TigerVNC. I would try to investigate this myself, but I've been recently quite busy. |
Okay. @jeremytourville, please report the issue to Red Hat and we'll see if we can get one of their experts to have a look at this. Most of the errors are from gnome-session, so that's probably a good start as the component to use. |
I had a similar issue on Xubuntu. And I found this issue because it also reported
In the end my mistake was that I missed the following line in the HOWTO.md:
Just for the record if someone else stumbles upon this. |
Describe the bug
Using a domain user account to start vncserver@.service file does not error but does not start successfully either. The directrions from HOWTO.md file were followed.
Using a local account works as written in HOWTO.md
To Reproduce
Steps to reproduce the behavior:
ipa-client-installl --mkhomedir
WaylandEnable=false
su - jeremyt
orsu - user
sudo systemctl start vncserver@:x
(where x is display number from vncserver.users file)Expected behavior
systemctl status vncserver@:x should display active (running) status
Screenshots
N/A.
Client (please complete the following information):
N/A - server won't start so client is not relevant at this point
Server (please complete the following information):
sudo systemctl start vncerver@:2
Additional context
/etc/tigervnc/vncserver.users config:
I have also tried specifying:
:2=jeremyt
This results in the same issue and makes no difference
Both the domain user and local user have only two files in .vnc, the passwd file and the log file
Contents of the domain user log:
Contents of local user log file:
[root@vnc ~]# systemctl start vncserver@:2
[root@vnc ~]# systemctl status vncserver@:2
● vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Oct 11 10:42:16 vnc.idm.nac-issa.org systemd[1]: Starting Remote desktop service (VNC)...
Oct 11 10:42:16 vnc.idm.nac-issa.org systemd[1]: Started Remote desktop service (VNC).
Oct 11 10:42:18 vnc.idm.nac-issa.org systemd[1]: vncserver@:2.service: Succeeded.
Oct 11 12:06:04 vnc.idm.nac-issa.org systemd[1]: Starting Remote desktop service (VNC)...
Oct 11 12:06:04 vnc.idm.nac-issa.org systemd[1]: Started Remote desktop service (VNC).
Oct 11 12:06:05 vnc.idm.nac-issa.org systemd[1]: vncserver@:2.service: Succeeded.
[root@vnc ~]# systemctl start vncserver@:3
[root@vnc ~]# systemctl status vncserver@:3
● vncserver@:3.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; vendor preset: disabled)
Active: active (running) since Mon 2021-10-11 12:08:56 CDT; 3s ago
Process: 2564 ExecStart=/usr/libexec/vncsession-start :3 (code=exited, status=0/SUCCESS)
Main PID: 2571 (vncsession)
Tasks: 0 (limit: 50559)
Memory: 1.0M
CGroup: /system.slice/system-vncserver.slice/vncserver@:3.service
‣ 2571 /usr/sbin/vncsession user :3
Oct 11 12:08:56 vnc.idm.nac-issa.org systemd[1]: Starting Remote desktop service (VNC)...
Oct 11 12:08:56 vnc.idm.nac-issa.org systemd[1]: Started Remote desktop service (VNC).
The text was updated successfully, but these errors were encountered: